Git Product home page Git Product logo

clones's People

Contributors

kingcons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

kwccoin

clones's Issues

What is the clones project used for ?

Me again. Build the test script and whilst cl-6502 at least I can use it to test 6502 codes, what is this clones can do?

  • generate rom?
  • running nes (but where is the graphics) ...

Wonder

my test script is as below:

; rlwrap sbcl --script fc1<tab>

(format t "~a~%" (+ 1 2))

(require :sb-posix)
(load "~/quicklisp/setup.lisp")
(format t "~a~%" (sb-posix:getcwd))

; not using local-project to ease amendment and testing
; both cl-6502 and clones are in my own git directories ... 
(pushnew (sb-posix:getcwd) quicklisp:*local-project-directories* :test #'equalp)
; seems it will get all asd even in sub-directory

(ql:quickload :prove)
(ql:quickload :SPLIT-SEQUENCE)
(ql:quickload :clones)
(let ((prove:*enable-colors* nil)) (asdf:test-system :clones))
; seems would have issues if you do no disable colors even in normal terminal
; not just emacs 

(ql:quickload :clones-test)
(clones-test.helpers:run-file "cpu")
(clones-test.helpers:run-file "helpers")
(clones-test.helpers:run-file "mappers")
(clones-test.helpers:run-file "memory")
(clones-test.helpers:run-file "rom")


(format t "---------- test clones done ---------~%")

(ql:quickload 'cl-6502)
(ql:quickload 'cl-6502-test)

(in-package :6502-tests)

;(progn (speedrun-brk) (sb-ext:quit))
; will hang --> (speedrun)
(speedrun-brk) 
;(sb-ext:exit)

(in-package :cl-6502)

(setf *print-base* 16)
(setf *read-base* 16)
(format t "~A~%" *CPU*)

(setf (get-range FD)  '(A9 FF 
                        8D 00 06  
                        A9 FE
                        8D 01 06
                        A9 FD
                        8D 02 06
                        A9 FC
                        8D 03 06
                        00 
                        60) )
(disasm FD 112)
(get-range 600 610)
(format t "~A~%" *CPU*)
(asm "JMP $FD")
(setf (get-range FFFC) '(4C FD 0))
(get-range FFFC FFFF)
(disasm FFFC FFFF)
(setf (get-range 0) '(4C FD 0))
(get-range 0 9) ; A ok but not the next step
(disasm 0 9) ; cannot do to A; has issue ??
(format t "~A~%" *CPU*)
(execute *cpu*)
(get-range 600 610)
; cannot do this --> (disasm 600 610) ??
(format t "~A~%" *cpu*)
; (jit-cpu *cpu* FD) <-- cannot do; jit-cpu not defined ...

;(sb-ext:exit)
(format t "---------- cl:6502 test done ---------~%")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.