mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 15:48:05 +11:00
fc67b88720
I have a working offset-by-0x100 stage0 now.
16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
L3 BSET PC ORG @ 0x34 + ! ( execute )
|
|
EXDEHL, ( HL now points to wordref )
|
|
( We don't apply BIN( reliably on stable ABI stuff, we
|
|
might need to adjust addr. Ugly, but well... )
|
|
BIN( @ [IF]
|
|
A XORr, H ORr, IFZ, H BIN( @ 256 / LDrn, THEN,
|
|
[THEN]
|
|
E (HL) LDrr,
|
|
D BIN( @ 256 / LDrn,
|
|
EXDEHL,
|
|
( HL points to code pointer )
|
|
DE INCss,
|
|
( DE points to PFA )
|
|
JP(HL),
|
|
|