mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 21:20:55 +11:00
a36db99651
This fixes weird glitches I had on trs80. It's *always* a matter of RAM initialization. By now, I should know...
6 lines
149 B
Plaintext
6 lines
149 B
Plaintext
: FILL ( a n b -- )
|
|
SWAP 2 PICK + ( a b a+n ) ROT ( b a+n a ) DO ( b )
|
|
DUP I C!
|
|
LOOP DROP ;
|
|
: ALLOT0 ( n -- ) H@ OVER 0 FILL ALLOT ;
|