mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 18:18:05 +11:00
295b4b6e0a
Will be useful for assembling binaries for the TRS-80 which can't start at addr 0.
17 lines
263 B
Plaintext
17 lines
263 B
Plaintext
CODE _find ( cur w -- a f )
|
|
HL POPqq, ( w )
|
|
DE POPqq, ( cur )
|
|
chkPS,
|
|
( 3 == find )
|
|
3 BCALL,
|
|
IFNZ,
|
|
( not found )
|
|
HL PUSHqq,
|
|
PUSH0,
|
|
JPNEXT,
|
|
THEN,
|
|
( found )
|
|
DE PUSHqq,
|
|
PUSH1,
|
|
;CODE
|