mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 14:28:06 +11:00
bf289b0a67
Use straight VARIABLE instead of Z80MEM+. Initially, I used this system to allow z80a to be embedded in a system binary, but now I don't think it's worth it. Compiled, z80a is 2.5k. Sure, it's a sizeable amount of RAM, but I think that even with it in RAM, I'll manage a bootstrap within my most constrained machine, the SMS with 8K.
9 lines
273 B
Plaintext
9 lines
273 B
Plaintext
VARIABLE ORG
|
|
VARIABLE BIN( 0 BIN( !
|
|
VARIABLE L1 VARIABLE L2 VARIABLE L3 VARIABLE L4
|
|
: A 7 ; : B 0 ; : C 1 ; : D 2 ;
|
|
: E 3 ; : H 4 ; : L 5 ; : (HL) 6 ;
|
|
: BC 0 ; : DE 1 ; : HL 2 ; : AF 3 ; : SP AF ;
|
|
: CNZ 0 ; : CZ 1 ; : CNC 2 ; : CC 3 ;
|
|
: CPO 4 ; : CPE 5 ; : CP 6 ; : CM 7 ;
|