aboutsummaryrefslogtreecommitdiff
path: root/tests/unused_macro_arg.s
blob: fe4d7f02f441fbf29bbc74c7e4ea474e2f8b4226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.segment "HEADER"
    .byte 'N', 'E', 'S', $1A
    .byte $02, $01
    .byte $00
    .byte $00

.segment "CODE"

;;; asan:stack full

.macro BCD_ADD ADDR
    adc ADDR
    bcc :+
    nop
:
.endmacro

.proc add_to_player_y
    BCD_ADD additions

    rts

additions:
    .byte $FF
.endproc

jsr add_to_player_y