Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Has been cancelled
- Bit instruction now sets Z flag correctly - DMA is no longer handled by cpu.rs
37 lines
273 B
ArmAsm
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
|