Removed temp var. Fixed PC.

Changed PC to be 8bits and checking for alignment.
Introduced x/y vars.
This commit is contained in:
2018-10-16 22:25:27 +01:00
parent 0359d4e0b2
commit 40a1add41d
4 changed files with 51 additions and 33 deletions

2
vm.h
View File

@@ -39,7 +39,7 @@ typedef struct VM_Instruction_t VM_Instruction;
struct VM_t {
uint8_t R[VM_REG_SIZE];
uint16_t PC;
uint8_t PC;
uint8_t M[VM_MEM_SIZE];
uint8_t carry;
bool halted;