;; Removes useless (jumped over) instructions
;; Replace sequence:
;; jp X | jr X
;; YYYY
;;
;; With:
;; jp X | jr X
;;
;; YYYY must not be a label

OLEVEL: 1
OFLAG: 31

REPLACE {{
  $1 $2
  $3
}}

IF {{
  (($1 == jp) || ($1 == jr)) && (!IS_LABEL($3)) && (LEN($2) == 1) && (!IS_ASM($3))
}}

WITH {{
  $1 $2
}}
