skx / z80-cpm-scripting-interpreter Goto Github PK
View Code? Open in Web Editor NEWA trivial I/O language, with repl, written in z80 assembler to run under CP/M.
A trivial I/O language, with repl, written in z80 assembler to run under CP/M.
Suggest we use "M" to set the memory-address, "R"/"W" to allow reading/writing and use J to jump to new code.
This would look like this:
3000M ; set the memory address to be 3000
c30W ; write 30 to 3000
c40W ; write 40 to 3001
c3000MJ ; Jump to the code at address 3000
NOTE: We auto-increment the memory-address when (r)eading or (w)riting.
This is currently capped to 8-bit only.
Thinking about this we should also overhaul our I/O to read/write in hex only.
We use the CP/M bios for:
We should ensure we make it easy to swap those out, to ease porting to single-board computers that run standalone, without CP/M.
Something like this:
ld IX, a_register
ld h, (IX+0)
ld l, (IX+1)
Is shorter than the indirect use we use right now.
It might also be worth thinking about register usage more generally; currently we go through a dance to preserve the contents of the string to interpret - which we keep in hl
- but we don't do anything for the other registers which get juggled back and forth..
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.