Memory Menu


The main memory of the simulator is used to store data and machine language programs. Machine language program files have an "ijvm" extension (see machine language file format).

Load Memory

Load the contents of a machine language program file into main memory. Only files with an "ijvm" extension will show up in the load machine language dialog. When a machine language program has been successfully loaded, the disassembled code is displayed in the disassembler window and the name of the program file appears in the application's title bar:

Clear Memory

Clear the contents of main memory. This will set the contents of main memory to all zeroes. When main memory is cleared, 'None' appears as the machine language file name:

Why No Save Options?

Keeping in mind that the purpose of the load operation is to load a machine language program, it stands to reason that the purpose of a save operation would be to save a modified machine language program. While it is possible to enter machine language code directly by editing main memory, the better approach is to write an assembly language program and let the assembler generate the machine language program file. It is easier to write code in assembly language than in machine language. Furthermore, the machine language file format includes the number of bytes of constant data and the number of bytes of code data, neither of which can be determined solely from the contents of main memory.