blob: 35915d6ac3e994d7302ce6bb5d322a3c70ba2e53 [file] [log] [blame]
swissChilia4f49b52020-08-16 17:35:37 -07001;;; This file is meant to test the parsing capabilities of the assembler.
2;;; It should contain every address mode to its parsing, as well as a
3;;; range of instructions to test.
4
5;;; When the assembler supports macros, those will be tested here as well.
6
swissChili97b5d8b2020-08-15 20:00:54 -07007start:
8 lda #$32 ; Store $32 in a
9 tax ; Transfer a to x
10 stx $200 ; Store x at $200
11 jmp ($FFAA) ; Jump to the address at $FFAA
swissChilia4f49b52020-08-16 17:35:37 -070012second_label:
13 lda $30, X
14 inc
15 adc #$3
16 bne start
17 jsr another_subroutine
18 tax
swissChili7acb4ce2020-08-16 20:16:10 -070019 brk
swissChilia4f49b52020-08-16 17:35:37 -070020
21another_subroutine:
swissChili7acb4ce2020-08-16 20:16:10 -070022 rts