GithubHelp home page GithubHelp logo

cl-z80's People

Contributors

samsaga2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hyphz

cl-z80's Issues

Syntax errors: ORG, LABEL

Hello,

I tried example.lisp but I got two syntax errors for ORG and LABEL asm instructions. Interestingly, output files .rom and .lst are produced.

My setup:

  • Win10
  • SBCL 1.4.14 64 bit
  • Quicklisp, (ql:client-version) is "2017-03-06"
  • cl-z80 located in Quicklisp's local-projects folder

Here's the full log. Does anyone replicate these errors?

This is SBCL 1.4.14, an implementation of ANSI Common Lisp.
.....

* (ql:quickload "cl-z80")
To load "cl-z80":
  Load 1 ASDF system:
    cl-z80
; Loading "cl-z80"
..
("cl-z80")
*
(defpackage #:example
  (:use #:cl #:cl-z80))
#<PACKAGE "EXAMPLE">
*
(in-package #:example)
#<PACKAGE "EXAMPLE">
*
(asm (org #x4000)
     (dw start 0 0 0 0 0 0))
syntax error (ORG 16384)
NIL
*
(asmproc start
  (ld hl 0)
  (halt))
NIL
*
(asmproc silly-infinite-loop
  (ld a 0)
  (label loop
    (inc a)
    (jp loop)
    (label silly-label))
  (nop)
  (ret))
syntax error (LABEL LOOP (INC A) (JP LOOP) (LABEL SILLY-LABEL))
NIL
*
(asmproc label-namespaces
  (jp silly-infinite-loop.loop)
  (jp silly-infinite-loop.loop.silly-label))
NIL
*
(asmproc lisp-code-inside
  (ld hl 0)
  (ld hl (* 1 2 3 4 5 6))
  (ret))
NIL
*
(asmproc sprite
  (struct x 2 y 2 color 1))
NIL
*
(save-image "test.rom")
label SILLY-INFINITE-LOOP.LOOP.SILLY-LABEL not found
debugger invoked on a SIMPLE-TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {10012E0613}>:
  NIL does not designate a condition class.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-KERNEL:ALLOCATE-CONDITION NIL)
0] 0

*

Cheers, Andrea

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.