=====asm Keyword 1===== CPU Registers ====Definition==== A CPU register is effectively how the CPU manipulates given data. The CPU can use load commands to bring data from memory, into a register. The register is the fastest part of a computer - it's where the CPU can do work with the greatest speed. Once some data is loaded into a register, the CPU can then manipulate that data. Add, subtract, all of these things happen in the register. Once the instruction is done, another command can be used to push that data back into memory and then the register is available for use once again. For the z80 CPU simulator, the registers will be represented by text files. A combination of scripts and C programs will be used to load data from a memory file into a register, then perform the desired operation, and then move the result in whatever way was intended. It will end up being a ton of different scripts and programs, because there are many different combinations - as there are multiple registers, and we need a way to move values between registers, move values from registers to memory, from memory to registers, etc. ====References==== =====asm Keyword 1 Phase 2===== CPU Registers ====Definition==== A CPU register is effectively how the CPU manipulates given data. The CPU can use load commands to bring data from memory, into a register. The register is the fastest part of a computer - it's where the CPU can do work with the greatest speed. Once some data is loaded into a register, the CPU can then manipulate that data. Add, subtract, all of these things happen in the register. Once the instruction is done, another command can be used to push that data back into memory and then the register is available for use once again. For the z80 CPU simulator, the registers will be represented by text files. A combination of scripts and C programs will be used to load data from a memory file into a register, then perform the desired operation, and then move the result in whatever way was intended. It will end up being a ton of different scripts and programs, because there are many different combinations - as there are multiple registers, and we need a way to move values between registers, move values from registers to memory, from memory to registers, etc. ====References====