blob: 66ca0957c6f9c4c48e1432dd658a3574afe9aa41 [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
19 hlt
20
21another_subroutine:
22 ret