Files
nes-emu/src/test_roms/alu_bit.s
Matthew Pomes 7b76026ade
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Has been cancelled
Minor refactors and bug fixes
- Bit instruction now sets Z flag correctly
- DMA is no longer handled by cpu.rs
2026-01-26 01:25:23 -06:00

37 lines
273 B
ArmAsm

; Verifies that reset doesn't alter any RAM.
.include "testing.s"
zp_res VAL
RAM = $300
reset:
sei
cld
ldx #$FF
txs
lda #$F0
sta VAL
lda #$0F
bit VAL
php
pla
sta RAM+0
lda #$F0
sta $400
lda #$0F
bit $400
php
pla
sta RAM+1
stp
nmi:
stp
irq:
stp