mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
11 lines
243 B
Smalltalk
11 lines
243 B
Smalltalk
|
#
|
||
|
# MEMORY test
|
||
|
#
|
||
|
FORWARD success;
|
||
|
FORWARD failure;
|
||
|
: try_free FREE ;
|
||
|
: read_space >s ;
|
||
|
: write_space 0 72 PUT 1 69 PUT 2 76 PUT 3 76 PUT 4 79 PUT ;
|
||
|
: try_malloc 64 MALLOC ;
|
||
|
: MAIN try_malloc write_space read_space try_free " - " >s success ;
|