Can someone post some code that would check if greater than in Z80 Assembly?
I know CP if I want to check if say A = ? but how do you find out if a number is > or <.
I looked it up on google and I get no examples.
BOB: EQU 100
LD A, BOB
CP A, 100
JP Z, YAKITY
If BOB was greater than 100 without CP 101, 102, 103 and so on.
And equally if BOB Was less than 100
Figured a solution but I welcome alternatives. Maybe there is a better way.
Edited by Mike Harris, Thu May 16, 2019 7:38 PM.