mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 12:18:07 +11:00
de7cb4a80f
This would be useful, for example, to allow the assembler to write straight to an AT28 EEPROM without going to RAM. This would be a life saver in machines with tight RAM such as the SMS.
17 lines
390 B
Plaintext
17 lines
390 B
Plaintext
: LOAD+ BLK> @ + LOAD ;
|
|
( b1 b2 -- )
|
|
: LOADR 1+ SWAP DO I DUP . NL LOAD LOOP ;
|
|
: LOADR+ BLK> @ + SWAP BLK> @ + SWAP LOADR ;
|
|
( Now, adev stuff )
|
|
SYSVARS 0x3e + :** A@
|
|
SYSVARS 0x40 + :** A!
|
|
SYSVARS 0x42 + :** A,
|
|
|
|
( src dst u -- )
|
|
: AMOVE
|
|
( u ) 0 DO
|
|
SWAP DUP I + A@ ( dst src x )
|
|
ROT TUCK I + ( src dst x dst )
|
|
A! ( src dst )
|
|
LOOP 2DROP ;
|