Skip to content

XRD0

Usage

Check if a key is pressed

Example

  .include "telestrat.inc"

  BRK_TELEMON XRD0 ; primitive exits even if no key had been pressed
  bcs   @no_key_pressed
  ; When a key is pressed, A contains the ascii of the value
@here_a_key_is_pressed:
    rts
@no_key_pressed:
    rts

Last update: 2024-02-15