1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 12:48:05 +11:00
collapseos/blk/249
Virgil Dupras fc67b88720 Make BIN( offsetted binaries closer to working at all
I have a working offset-by-0x100 stage0 now.
2020-04-28 21:12:52 -04:00

12 lines
388 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, ;
: LDDE(HL), E (HL) LDrr, HL INCss, D (HL) LDrr, ;
: OUTHL, DUP A H LDrr, OUTnA, A L LDrr, OUTnA, ;
: OUTDE, DUP A D LDrr, OUTnA, A E LDrr, OUTnA, ;