langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
14
Task/Memory-allocation/Retro/memory-allocation.retro
Normal file
14
Task/Memory-allocation/Retro/memory-allocation.retro
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
( display total memory available )
|
||||
@memory putn
|
||||
|
||||
( display unused memory )
|
||||
@memory here - putn
|
||||
|
||||
( display next free address )
|
||||
here putn
|
||||
|
||||
( allocate 1000 cells )
|
||||
1000 allot
|
||||
|
||||
( free 500 cells )
|
||||
-500 allot
|
||||
Loading…
Add table
Add a link
Reference in a new issue