mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10187 91177308-0d34-0410-b5e6-96231b3b80d8
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 ;
|