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

.segment "CODE"

CONST = $02

zp_var         = $00    ; asan:reserve CONST
zp_another     = $01
zp_yet_another = $02
zp_and_yet     = $03

lda zp_var
lda zp_another
lda zp_yet_another
lda zp_and_yet

;;; asan:stack full