RosettaCodeData/Task/Integer-comparison/8051-Assembly/integer-comparison.8051
2016-12-05 23:44:36 +01:00

17 lines
200 B
Text

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