 }
 
 // Read IMMEDIATE 16-bits
-def mmu_next16(): uint8 {
+def mmu_next16(): uint16 {
   let value = mmu_read16(PC);
   PC += 1;
 


// CPU
let ram: *uint8;
let PC: uint16 = 0;
let AF: uint16 = 0;
let A: *uint8 = (&AF as *uint8);


def init_cycletable() {
  cycletable = malloc(0x1_00) as *uint8;
  memset(cycletable as *uint8, 0, 0x1_00);

  *(cycletable + 0x00) = 4;
  *(cycletable + 0x01) = 12;
