Minor changes

This commit is contained in:
Loïc Guégan 2023-12-25 10:07:12 +01:00
parent 7642efad5a
commit 3b9170b54b
2 changed files with 3 additions and 2 deletions

View file

@ -35,11 +35,11 @@ void VCPUDecode(){
void VCPUExecute(){
// VCPUDump();
switch(State.opcode >> 12){
case 0x0:
case 0x0: // Clear screen
ScreenClear();
break
;;
case 0x1:
case 0x1: // Jump
State.PC=State.NNN;
break
;;

View file

@ -11,6 +11,7 @@ typedef struct VCPU_State {
// Stack register (16 bits)
unsigned short S;
unsigned short stack[100]; // Emulated stack
// General purpose registers (8 bits each)
// Note last one often used as a flag register