17 lines
200 B
Text
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
|