mirror of
https://github.com/ksherlock/minix.fst.git
synced 2024-06-14 02:29:27 +00:00
_rts.cc -> return if cc.
This commit is contained in:
parent
b6be03a174
commit
66a91ae8fc
41
fst.macros
41
fst.macros
|
@ -220,3 +220,44 @@
|
|||
pha
|
||||
|
||||
MEND
|
||||
|
||||
|
||||
; _rts.cc -> return iff carry clear
|
||||
macro
|
||||
&l _rts.&cond
|
||||
|
||||
if &cond='cc' THEN
|
||||
bcs @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='cs' THEN
|
||||
bcc @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='eq' THEN
|
||||
bne @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='ne' THEN
|
||||
beq @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='mi' THEN
|
||||
bpl @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='pl' THEN
|
||||
bmi @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='vs' THEN
|
||||
bvc @ok
|
||||
ENDIF
|
||||
|
||||
if &cond='vc' THEN
|
||||
bvs @ok
|
||||
ENDIF
|
||||
|
||||
rts
|
||||
@ok
|
||||
mend
|
Loading…
Reference in New Issue
Block a user