RosettaCodeData/Task/Integer-comparison/8051-Assembly/integer-comparison.8051

18 lines
200 B
Plaintext

compare:
push psw
cjne a, b, clt
; a == b
; implement code here
jmp compare_
clt:
jc lt
; a > b
; implement code here
jmp compare_
lt:
; a < b
; implement code here
compare_:
pop psw
ret