Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 2.74 KB

features.md

File metadata and controls

42 lines (40 loc) · 2.74 KB

Features

List of all chip8 opcodes and their chip8-script equivalent

Under construction 🚧

Supported Opcode Type C Chip-8 script
0NNN Call RCA 1802 at address NNN. todo
00E0 Displ disp_clear() todo
00EE Flow return; todo
1NNN Flow goto NNN; todo
2NNN Flow *(0xNNN)() todo
3XNN Cond if(Vx==NN) IF x==1: [..] ENDIF
4XNN Cond if(Vx!=NN) IF x!=1: [..] ENDIF
5XY0 Cond if(Vx==Vy) IF x==y: [..] ENDIF
6XNN Const Vx = NN VAR x = 0, x = 10
7XNN Const Vx += NN a += 8
8XY0 Assig Vx=Vy VAR a = b, a = b
8XY1 BitOp Vx=Vx|Vy a |= b
8XY2 BitOp Vx=Vx&Vy a &= b
8XY3 BitOp Vx=Vx^Vy a ^= b
8XY4 Math Vx += Vy a += b
8XY5 Math Vx -= Vy a -= b
8XY6 BitOp Vx>>=1 a >>= 1
8XY7 Math Vx=Vy-Vx todo
8XYE BitOp x<<=1 a <<= 1
9XY0 Cond i (Vx!=Vy) todo
ANNN MEM I = NNN todo
BNNN Flow PC=V0+NNN todo
CXNN Rand Vx=rand()&NN todo
DXYN Disp draw(Vx,Vy,N) todo
EX9E KeyOp if(key()==Vx) todo
EXA1 KeyOp if(key()!=Vx) todo
FX07 Timer Vx = get_delay() todo
FX0A KeyOp Vx = get_key() todo
FX15 Timer delay_timer(Vx) todo
FX18 Sound sound_timer(Vx) todo
FX1E MEM I +=Vx Adds VX todo
FX29 MEM I=sprite_addr[Vx] todo
FX33 BCD set_BCD(Vx); todo
FX55 MEM reg_dump(Vx,&I) todo
FX65 MEM reg_load(Vx,&I) todo