Add test programs
This commit is contained in:
36
hw/efinix_fpga/test_programs/runram.s
Normal file
36
hw/efinix_fpga/test_programs/runram.s
Normal file
@@ -0,0 +1,36 @@
|
||||
.code
|
||||
|
||||
loadaddr = $1000
|
||||
|
||||
|
||||
main:
|
||||
ldx #(loadend-loadstart)
|
||||
loadloop:
|
||||
lda loadstart,x
|
||||
sta loadaddr,x
|
||||
dex
|
||||
bpl loadloop
|
||||
|
||||
jsr loadaddr
|
||||
|
||||
end: bra end
|
||||
|
||||
|
||||
loadstart:
|
||||
|
||||
stacktest:
|
||||
lda #$55
|
||||
pha
|
||||
lda #$00
|
||||
pla
|
||||
sta $efff
|
||||
rts
|
||||
|
||||
loadend:
|
||||
|
||||
|
||||
.segment "VECTORS"
|
||||
|
||||
.addr main
|
||||
.addr main
|
||||
.addr main
|
||||
Reference in New Issue
Block a user