billvanleeuwen424 / Chip-8-Emulator

0 stars 0 forks source link

Implement 1,2,3,4 Instructions #14

Closed billvanleeuwen424 closed 2 years ago

billvanleeuwen424 commented 2 years ago

1nnn - JP addr Jump to location nnn.

The interpreter sets the program counter to nnn.

2nnn - CALL addr Call subroutine at nnn.

The interpreter increments the stack pointer, then puts the current PC on the top of the stack. The PC is then set to nnn.

3xkk - SE Vx, byte Skip next instruction if Vx = kk.

The interpreter compares register Vx to kk, and if they are equal, increments the program counter by 2.

4xkk - SNE Vx, byte Skip next instruction if Vx != kk.

The interpreter compares register Vx to kk, and if they are not equal, increments the program counter by 2.