📄 testutils.inc
字号:
.syntax no_register_prefix .macro start .text .global mainmain: .endm .macro quit jump pass nop .endm .macro pass jump pass nop .endm .macro startnostack start .endm .macro fail .data99: .asciz " checkr3 failed" .text move.d 99b, $r10 jsr _fail nop .endm .macro checkr3 val cmp.d 0x\val, $r3 beq 100f nop .data99: .asciz "checkr3 failed" .text move.d 99b, $r10 jsr _fail nop100: .endm; Test the condition codes .macro test_cc N Z V C .if \N bpl 9f nop .else bmi 9f nop .endif .if \Z bne 9f nop .else beq 9f nop .endif .if \V bvc 9f nop .else bvs 9f nop .endif .if \C bcc 9f nop .else bcs 9f nop .endif ba 8f nop9: .data99: .asciz "test_move_cc failed" .text move.d 99b, $r10 jsr _fail nop8: .endm .macro test_move_cc N Z V C .if \N bpl 9f nop .else bmi 9f nop .endif .if \Z bne 9f nop .else beq 9f nop .endif ba 8f nop9: .data99: .asciz "test_move_cc failed" .text move.d 99b, $r10 jsr _fail nop8: .endm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -