ANESE/roms/tests/cpu/blargg_nes_cpu_test5/source/09-branches.a
Daniel Prilik 5c19d78761 more tests
2017-12-12 16:56:26 -08:00

48 lines
733 B
Text
Vendored

;CALIBRATE=1
.include "instr_test.a"
instrs:
entry $90,"BCC r" ; PC = PC op flags
entry $50,"BVC r"
entry $D0,"BNE r"
entry $30,"BMI r"
entry $10,"BPL r"
entry $F0,"BEQ r"
entry $B0,"BCS r"
entry $70,"BVS r"
instrs_size = * - instrs
zp_byte operand
instr_template:
bne :+
sta operand
: jmp instr_done
instr_template_size = * - instr_template
values2:
.byte 0,$FF,$01,$02,$04,$08,$10,$20,$40,$80
values2_size = * - values2
.macro set_in
sta in_p
set_paxyso
.endmacro
.define check_out check_paxyso
.include "instr_test_end.a"
test_values:
test_normal
rts
correct_checksums:
.dword $D5B22EE0
.dword $9CEB0A7E
.dword $DE8DEFE5
.dword $D704F89C
.dword $AD3F7EB0
.dword $A4B669C9
.dword $AF89A8CC
.dword $E6D08C52