mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 13:28:05 +11:00
forth: slightly improve assembler
This commit is contained in:
parent
ab98e9bcd1
commit
8d8e1d93da
Binary file not shown.
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
( Splits word into msb/lsb, lsb being on TOS )
|
( Splits word into msb/lsb, lsb being on TOS )
|
||||||
: SPLITB
|
: SPLITB
|
||||||
DUP 0x100 /
|
256 /MOD SWAP
|
||||||
SWAP 0xff AND
|
|
||||||
;
|
;
|
||||||
|
|
||||||
( To debug, change C, to .X )
|
( To debug, change C, to .X )
|
||||||
@ -166,7 +165,7 @@
|
|||||||
: OP2r
|
: OP2r
|
||||||
CREATE ,
|
CREATE ,
|
||||||
DOES>
|
DOES>
|
||||||
@ 256 /MOD ( r lsb msb )
|
@ SPLITB SWAP ( r lsb msb )
|
||||||
A, ( r lsb )
|
A, ( r lsb )
|
||||||
SWAP 8 * ( lsb r<<3 )
|
SWAP 8 * ( lsb r<<3 )
|
||||||
OR A,
|
OR A,
|
||||||
|
Loading…
Reference in New Issue
Block a user