This is a more realistic version of air_processor1, and should be a little more powerful, considering that I added a few registers. One of the biggest changes for realism is that you now have to use the RAM to hold temporary data, and you cannot replace items in the ROM. Also the entire execute function was remade from scratch to make it a little easier and more realistic to use. It has 16 new commands from air_processor1, and has many of the same commands from it. Some of the commands have been removed for realism though. NOTE: The CPU's are not compatible with each other. If you wrote a program in air_processor1, it will not work in air_processor2. This is a very basic, but powerful cpu. I will keep building it, but for now it has some functions: 'execute' - executes stuff from the input list. 'store' - stores inputted text into binary in the hard drive. 'get' - gets a inputted index from the hard drive. ----------------------------- You have: 512 bytes of RAM 32768 bytes of storage --------- OP Codes are inside of the project
This processor is more than 1 second faster than air_processor1, and is much more efficient. As you can see, it runs this hello world program instantly, while it took air_processor1 1 second to run the script. This CPU also allows the user to modify indexes in the RAM, which allows the user to create user inputs and check the RAM to see if the user has made the input (ex: if button pressed: set index 1 to 1, else set index 1 to 0; and you can check that index with the program)