Toerktumlare / chip8-emulator

An emulator for the Chip8 https://en.wikipedia.org/wiki/CHIP-8
3 stars 0 forks source link

Implement opcode FX33 #11

Closed Toerktumlare closed 5 years ago

Toerktumlare commented 5 years ago

set_BCD(Vx); (I+0)=BCD(3); (I+1)=BCD(2); *(I+2)=BCD(1);

Stores the binary-coded decimal representation of VX, with the most significant of three digits at the address in I, the middle digit at I plus 1, and the least significant digit at I plus 2. (In other words, take the decimal representation of VX, place the hundreds digit in memory at location in I, the tens digit at location I+1, and the ones digit at location I+2.)