9 posts
Posted 02 March 2014 - 04:20 PM
Hello! What type of memory is using in CC? Memory cells or stack? I want to write Assembler-like language interpreter for the CC but it will be based on controlling memory.
1140 posts
Location
Kaunas, Lithuania
Posted 02 March 2014 - 07:52 PM
The only thing you can do with memory in ComputerCraft is to create, read, delete, list files and folders (and fill RAM when creating infinitely long string or a bunch of variables, etc…). We don't have any access to RAM in CC. I guess it uses whatever your OS uses. Note that Java may do something too.
Note: I don't know what 'memory cells and stacks' are, but after a quick Google search I understood that it has something to do with the actual memory management which we can't do in CC.
108 posts
Posted 02 March 2014 - 10:33 PM
I'd like to mention that while this is
technically possible (using loadstring) it isn't really recomended. If you really want to though, you might try reading
ANoFrillsIntroToLua51VMInstructions.