You have chosen to sponsor your bid up to a maximum amount of .
CPU reads program from File
File TokenizerDemo.java (1.014 KB)
File FileReaderDemo.java (1.165 KB)
File aProgram.asm (0.049 KB)
Modify the CPU program so that it reads its program from a file, and places the program in its memory array then executes the program.
1 Prompt the user for a file name (your program's program, JOptionPane is a good choice)
2 Load the file into memory.
3 Execute the program that was just loaded in your Virtual Machine.
A demo program that uses Java's Tokenizer class to "parse" a string is attached.