##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November 2016 # Modified: 2016-11-25/23:14-0500 ##+ # # GetSpace.icn, an MS-DOS specific memory region allocator # # This sample is UNTESTED, which means it counts as broken. # procedure main() s := "Hello, distant past" # get some memory, the size of s mem := GetSpace(*s) Poke(mem, s) from := Peek(mem, *s) write(image(from)) FreeSpace(mem) end