Do the Even questions from section 10.4.6.
(It wouldn't hurt if you studied the answers to the odd questions as well.)
In addition, do these problems:
; make macros for signed comparison jumps to targets which may be
; too far away
IRP x, <le, ng, l, nge, nl, ge, nle, g, e, ne>
Jfar&x macro targ
LOCAL t2,t3
IF (($-targ) GT 128) OR ;; back further than 128 bytes
((targ-$) GT 127) ;; forward more than 127 bytes
j&x t2 ;; jump short if so
jmp t3 ;; skip long jump
t2: jmp targ ;; long jump
t3: ;; back to local program
ELSE
j&x targ ;; range okay...
ENDIF
endm
endm
This assignment is Level 3.5.