diff --git a/linker.conf b/linker.conf index 64101fe..4279b51 100644 --- a/linker.conf +++ b/linker.conf @@ -7,6 +7,7 @@ MEMORY { VIA1: start = $6000, size = $000f, type = rw, file = "", fill = yes; VIA2: start = $7000, size = $000f, type = rw, file = "", fill = yes; ROM: start = $8000, size = $8000, type = ro, file = %O, fill = yes; + TEST: start = $9000, size = $1000, type = rw, file = "../test.bin"; } SEGMENTS { VIA1: load = VIA1, type = bss; @@ -16,5 +17,6 @@ SEGMENTS { CODE: load = ROM, type = ro; RODATA: load = ROM, type = ro; RESET_VECTOR: load = ROM, type = ro, start = $FFFA; - SPI: load = SPI, type = rw; + SPI: load = SPI, type = rw, define = yes; + TEST: load = TEST,type = rw; } diff --git a/test.s65 b/test.s65 index da4faae..481902d 100644 --- a/test.s65 +++ b/test.s65 @@ -1,55 +1,8 @@ -;.include "system/system.h65" -;.segment "CODE" - -;;******************************************************************************** -;; Interrupts -;;******************************************************************************** -;nmi: -; rti -;irq: -; .repeat 20 -; .endrepeat -; rti - -;;******************************************************************************** -;; Reset sequence -;;******************************************************************************** -;reset: -; sei -; ; setup io2 bank a 1-3 -; lda #%11111111 -; sta IO1 + IO_DDRA -; sta IO1 + IO_DDRB - -;@loop: -; lda #%00000000 -; sta IO1 + IO_RA -; .repeat 3 -; nop -; .endrepeat -; lda #%11111111 -; sta IO1 + IO_RA -; .repeat 15 -; nop -; .endrepeat - -; lda #%00000000 -; sta IO1 + IO_RB -; .repeat 5 -; nop -; .endrepeat -; lda #%11111111 -; sta IO1 + IO_RB -; .repeat 10 -; nop -; .endrepeat -; bra @loop - -;;******************************************************************************** -;; reset vector -;;******************************************************************************** -;.segment "RESET_VECTOR" -; .word nmi -; .word reset -; .word irq +.include "system/system.h65" +.segment "TEST" +label: + JsrIndirect $2022 + .byte 0,1,2,3,4 + JsrIndirect {($2022,x)}, label + .byte 5,6,7,8,9