Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to do what you said but fail. Any comment which the command should be ??? #16

Open
kwccoin opened this issue Nov 14, 2023 · 3 comments

Comments

@kwccoin
Copy link

kwccoin commented Nov 14, 2023

Really need at least a few or even one example.

You casually talk about it but it does not work based on what you said.

Please include some examples how to use it.



    (ql:quickload "cl-6502") ; :6502)
    (in-package :cl-6502)
    (asm "brk")
    
    (setf (get-range 0) *my-bytevector*)
    ; my-bytevector is unbound
    (setf (6502:cpu-pc *cpu*) 0)
    (run *cpu*)
    ; error (run *cpu*)
    (step-cpu *cpu* (get-byte (cpu-pc *cpu*)))
    ; error (step-cpu *cpu* (get-byte (cpu-pc *cpu*)))
    (reset)
    ; error (reset)

I guess experience lisp user know what you said but beginner like me can't. Not sure what I should do next.

BTW, I did can load the cl-6502 and amending your readme using "test" instead of "tests" it seems sort of ok as below.

Still not sure how to proceed ... <---

@kwccoin
Copy link
Author

kwccoin commented Nov 19, 2023

After correcting the spelling (reading your quicklisp doc), the followings are ok

** but still not sure how to proceed with actually using the package. <--**

(ql:quickload :cl-6502)
(ql:quickload :cl-6502-test) ; note no "s" here unlike readme
(ql:quickload :fiveam) ; seems ok
(asdf:oos 'asdf:test-op 'cl-6502) ; ok but not test anything
CL-USER> (ql:quickload :cl-6502-test)
To load "cl-6502-test":
  Load 1 ASDF system:
    cl-6502-test
; Loading "cl-6502-test"
.....
(:CL-6502-TEST)
CL-USER> (asdf:oos 'asdf:test-op 'cl-6502)
WARNING: PARSE-VERSION: "0.9.8-dev" doesn't follow asdf version numbering convention
WARNING: Invalid :version specifier "0.9.8-dev" for component "cl-6502" from file #P"/Users/ngcchk/quicklisp/local-projects/cl-6502/cl-6502.asd", using NIL instead
WARNING: Invalid :version specifier "0.9.8-dev" for component "cl-6502" from file #P"/Users/ngcchk/quicklisp/local-projects/cl-6502/cl-6502.asd", using NIL instead
WARNING: System definition file #P"/Users/ngcchk/quicklisp/local-projects/cl-6502/cl-6502.asd" contains definition for system "cl-6502-test". Please only define "cl-6502" and secondary systems with a name starting with "cl-6502/" (e.g. "cl-6502/test") in that file.
WARNING: PARSE-VERSION: "0.9.8-dev" doesn't follow asdf version numbering convention
WARNING: Invalid :version specifier "0.9.8-dev" for component "cl-6502" from file #P"/Users/ngcchk/quicklisp/local-projects/cl-6502/cl-6502.asd", using NIL instead
WARNING: Invalid :version specifier "0.9.8-dev" for component "cl-6502" from file #P"/Users/ngcchk/quicklisp/local-projects/cl-6502/cl-6502.asd", using NIL instead
WARNING: System definition file #P"/Users/ngcchk/quicklisp/local-projects/cl-6502/cl-6502.asd" contains definition for system "cl-6502-test". Please only define "cl-6502" and secondary systems with a name starting with "cl-6502/" (e.g. "cl-6502/test") in that file.
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                      "cl-6502") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "fixtures"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                  "cl-6502-test"
                                                                                  "packages") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "assembler"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                   "cl-6502-test"
                                                                                   "fixtures") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "disassembler"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                      "cl-6502-test"
                                                                                      "assembler") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "parser"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                "cl-6502-test"
                                                                                "disassembler") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "opcodes"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                 "cl-6502-test"
                                                                                 "parser") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "jit"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                             "cl-6502-test"
                                                                             "opcodes") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:PREPARE-OP
                                                     "cl-6502-test"
                                                     "perf"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                              "cl-6502-test"
                                                                              "jit") wasn't done yet!

Running test suite NIL
 Didn't run anything...huh?
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:TEST-OP
                                                     "cl-6502"), but dependency (ASDF/LISP-ACTION:LOAD-OP
                                                                                 "cl-6502") wasn't done yet!
WARNING:
   Computing just-done stamp in plan NIL for action (ASDF/LISP-ACTION:TEST-OP
                                                     "cl-6502"), but dependency (ASDF/FIND-SYSTEM:DEFINE-OP
                                                                                 "cl-6502") wasn't done yet!
#<ASDF/LISP-ACTION:TEST-OP >
#<ASDF/PLAN:SEQUENTIAL-PLAN {70098002F3}>

@kwccoin
Copy link
Author

kwccoin commented Nov 19, 2023

This run ok and may start to de-structure the whole package to see how it can be used now:

; see .travis.yml
(ql:quickload '(:cl-6502 :cl-6502-test))
(6502-tests:run! '6502-tests:6502-tests) ; can run ok as well

@kwccoin
Copy link
Author

kwccoin commented Nov 19, 2023

Trying whole morning
giving the test work and hence the bin can be run, I tried to do strangely from that path

well I cannot find the memory (example.cfg in the function test ca65 sites under amb51) and the binary even though is 16 KB ended prematurely and hence really no vector at the end but it is 100 byte short.

Trying but so far cannot .

Back to squire one, how to run a simple assembler 6502 using these codes.

May have to give up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant