mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 23:38:05 +11:00
10 lines
248 B
Plaintext
10 lines
248 B
Plaintext
|
CODE _find ( cur w -- a f )
|
||
|
SI POPx, ( w ) DI POPx, ( cur )
|
||
|
CALLn, lblfind @ RPCn,
|
||
|
IFNZ, ( not found )
|
||
|
SI PUSHx, AX AX XORxx, AX PUSHx,
|
||
|
JMPn, lblnext @ RPCn,
|
||
|
THEN, ( found )
|
||
|
DI PUSHx, AX 1 MOVxI, AX PUSHx,
|
||
|
;CODE
|