samsaga2 / cl-z80 Goto Github PK
View Code? Open in Web Editor NEWZ80 assembler for common lisp
Z80 assembler for common lisp
This is the stub README.txt for the "cl-z80" project.
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:
(ql:client-version)
is "2017-03-06"cl-z80
located in Quicklisp's local-projects
folderHere'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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.