mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-29 02:38:05 +11:00
295b4b6e0a
Will be useful for assembling binaries for the TRS-80 which can't start at addr 0.
9 lines
240 B
Plaintext
9 lines
240 B
Plaintext
( Macros )
|
|
( clear carry + SBC )
|
|
: SUBHLss, A ORr, SBCHLss, ;
|
|
: PUSH0, BC 0 LDddnn, BC PUSHqq, ;
|
|
: PUSH1, BC 1 LDddnn, BC PUSHqq, ;
|
|
: PUSHZ, BC 0 LDddnn, IFZ, BC INCss, THEN, BC PUSHqq, ;
|
|
: HLZ, A H LDrr, L ORr, ;
|
|
: DEZ, A D LDrr, E ORr, ;
|