Skip to content

Commit

Permalink
Implement missing op code 0xF033
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscodelahoz committed Mar 15, 2024
1 parent 44cd7ea commit 46ea126
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/scripts/emulator/cpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,15 @@ export class CPU {
break;
}

/**
* Fx30 - LD HF, Vx
* Set I = location of 10-byte font for digit Vx (Super Chip-8).
*/
case 0x30: {
this.I = this.registers[x] * 10 + 80;
break;
}

/**
* Fx33 - LD B, Vx
* Store BCD representation of Vx in memory locations I, I+1, and I+2.
Expand Down

0 comments on commit 46ea126

Please sign in to comment.