2019-09-20 22:29:34 +00:00
|
|
|
.setcpu "65C02"
|
2018-09-28 17:05:11 +00:00
|
|
|
REALLYLONGLABELNAME = $8888 ;that's a long name
|
|
|
|
|
2018-11-18 22:36:03 +00:00
|
|
|
; .segment "SEG000"
|
2018-09-28 17:05:11 +00:00
|
|
|
.org $1000
|
|
|
|
nop
|
2018-10-24 03:29:24 +00:00
|
|
|
_start: lda @start
|
|
|
|
lda X_start
|
2018-09-28 17:05:11 +00:00
|
|
|
lda pastglob
|
2018-10-24 03:29:24 +00:00
|
|
|
lda @__nopped
|
|
|
|
@start: nop
|
|
|
|
@__nopped:
|
2018-09-28 17:05:11 +00:00
|
|
|
nop
|
2018-10-24 03:29:24 +00:00
|
|
|
X_start: nop
|
2018-09-28 17:05:11 +00:00
|
|
|
pastglob:
|
|
|
|
nop
|
|
|
|
lda nlocal
|
|
|
|
nlocal: lda #$11
|
|
|
|
reach1G: nop
|
|
|
|
lda reach1G+1
|
|
|
|
lda @reach2+2
|
|
|
|
@reach2: nop
|
|
|
|
reach3G: nop
|
2018-10-24 03:29:24 +00:00
|
|
|
@_reach4:
|
|
|
|
nop
|
|
|
|
lda @_reach4-2
|
2018-09-28 17:05:11 +00:00
|
|
|
lda $00
|
|
|
|
beq @L102D
|
2018-10-24 03:29:24 +00:00
|
|
|
jsr @_reach4
|
|
|
|
jsr _start
|
2018-09-28 17:05:11 +00:00
|
|
|
@L102D: lda #$22
|
|
|
|
lda gtest2
|
|
|
|
gtest1: nop
|
|
|
|
lda gtest3
|
|
|
|
gtest2: nop
|
|
|
|
gtest3: nop
|
|
|
|
lda #$33
|
|
|
|
lda $1041
|
|
|
|
topglob: nop
|
|
|
|
lda @L1043
|
|
|
|
nop
|
|
|
|
nop
|
|
|
|
@L1043: nop
|
|
|
|
lda #$44
|
2018-10-24 03:29:24 +00:00
|
|
|
globalnm:
|
2018-09-28 17:05:11 +00:00
|
|
|
jsr @L104A
|
|
|
|
nop
|
|
|
|
@L104A: nop
|
|
|
|
nop
|
|
|
|
nglobal: nop
|
|
|
|
globlat: jsr nglobal
|
|
|
|
bra end
|
|
|
|
|
|
|
|
end: nop
|
|
|
|
EXCESSIVELY_LONG_LABEL:
|
|
|
|
lda REALLYLONGLABELNAME
|
2019-09-20 22:29:34 +00:00
|
|
|
@_uname: nop
|
|
|
|
@X_uname11:
|
|
|
|
nop
|
|
|
|
@X_uname1:
|
|
|
|
nop
|
|
|
|
@X_uname:
|
|
|
|
nop
|
|
|
|
lda #$00
|
|
|
|
@AND: bne @AND ;local
|
2019-11-18 00:05:51 +00:00
|
|
|
JMP1: bne JMP1 ;global
|
|
|
|
jmp1: bne jmp1
|
|
|
|
TSB1: bne TSB1
|
2019-09-20 22:29:34 +00:00
|
|
|
XCE: bne XCE
|
2018-09-28 17:05:11 +00:00
|
|
|
rts
|
|
|
|
|