       bit(gpu_line == gpu_line_compare, 2) |
       uint8(gpu_mode)
     );
+  } else if address == 0xFF42 {
+    // SCY – Scroll Y (R/W)
+    return gpu_scy;
+  } else if address == 0xFF43 {
+    // SCX – Scroll X (R/W)
+    return gpu_scx;
   } else if address == 0xFF44 {
     // LY – LCDC Y-Coordinate (R)
     return gpu_line;

let joy_state_right = false;

def joy_reset() {
  joy_sel_button = false;
  joy_sel_direction = false;

  joy_state_start = false;
  joy_state_sel = false;

}

def reset() {
  joy_reset();
  gpu_reset();
  cpu_reset();
}

def fini() {
