mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 23:29:43 +00:00
A 6502 assembly script to test AUXMOVE and RAMRD boundary execution
This commit is contained in:
parent
418509f2c1
commit
615204ebc9
33
src/test/testauxmove.asm
Normal file
33
src/test/testauxmove.asm
Normal file
@ -0,0 +1,33 @@
|
||||
REM Script can be loaded from apple2ix from debugger console with "LOAD path/to/thisfile"
|
||||
REM
|
||||
REM Tests program execution across the main/aux memory RAMRD boundary (C003 enables aux, C002 enables main)
|
||||
REM * 1E00 is the test script that will place a $96 result at 1FFF (in main)
|
||||
REM * 1E80 calls AUXMOVE (C311) to load the 1E00 page to auxmem
|
||||
REM
|
||||
|
||||
CALL-151
|
||||
!
|
||||
1E00: NOP
|
||||
STA $C003
|
||||
LDA #$96
|
||||
STA $1FFF
|
||||
STA $C002
|
||||
RTS
|
||||
1E80: LDA #$00
|
||||
STA $3C
|
||||
LDA #$1E
|
||||
STA $3D
|
||||
LDA #$FF
|
||||
STA $3E
|
||||
LDA #$1E
|
||||
STA $3F
|
||||
LDA #$00
|
||||
STA $42
|
||||
LDA #$1E
|
||||
STA $43
|
||||
SEC
|
||||
JSR $C311
|
||||
RTS
|
||||
|
||||
1E80G
|
||||
1E00G
|
Loading…
x
Reference in New Issue
Block a user