1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-30 19:58:05 +11:00
collapseos/blk/163

7 lines
238 B
Plaintext
Raw Normal View History

: aspe@ ( addr -- byte, read from EEPROM )
0 SWAP 256 /MOD ( 0 lsb msb ) SWAP
0xa0 ( 0 msb lsb 0xa0 ) _cmd ;
: aspe! ( byte addr --, write to EEPROM )
256 /MOD ( b lsb msb ) SWAP
0xc0 ( b msb lsb 0xc0 ) _cmd DROP asprdy ;