This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DigitalMisha's profile picture

Memory

Started by DigitalMisha, 02 March 2014 - 03:20 PM
DigitalMisha #1
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.
MKlegoman357 #2
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.
natedogith1 #3
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.