[A83] Multiple Keypresses (Diagonal Movement) 83+ Using keys.inc


[Prev][Next][Index][Thread]

[A83] Multiple Keypresses (Diagonal Movement) 83+ Using keys.inc



Using keys.inc, how can I do multiple keypresses, in this format?
  ld   a,kReset
  out  (1),A
  ld   a,Group1
  out  (1),A
  in   a,(1)
  cp   kLeft
  call z,move_left
  cp   kRight
  call z,move_right
  cp   kUp
  call z,move_up
  cp   kDown
  call z,move_down
  ld   a,kReset
  out  (1),A
  ld   a,Group2
  out  (1),A
  in   a,(1)
  cp   kClear
  ret  z
Thanks,
 Darkfire139





Follow-Ups: