Add test programs
This commit is contained in:
23
hw/efinix_fpga/test_programs/stacktest.s
Normal file
23
hw/efinix_fpga/test_programs/stacktest.s
Normal file
@@ -0,0 +1,23 @@
|
||||
.code
|
||||
|
||||
|
||||
main: lda #$ff
|
||||
jsr stacktest
|
||||
end: bra end
|
||||
|
||||
|
||||
|
||||
stacktest:
|
||||
lda #$55
|
||||
pha
|
||||
lda #$00
|
||||
pla
|
||||
sta $efff
|
||||
rts
|
||||
|
||||
|
||||
.segment "VECTORS"
|
||||
|
||||
.addr main
|
||||
.addr main
|
||||
.addr main
|
||||
Reference in New Issue
Block a user