2019-08-04 21:48:42 +00:00
|
|
|
!cpu 65816
|
2020-05-14 23:37:33 +00:00
|
|
|
* = $0000
|
|
|
|
!pseudopc $1000 {
|
2019-08-04 21:48:42 +00:00
|
|
|
!as
|
|
|
|
!rs
|
|
|
|
load11 lda #$11
|
2019-11-17 01:15:03 +00:00
|
|
|
@L1002 ldx #$22
|
|
|
|
@load33 ldy #$33
|
|
|
|
@L1006 lda #$44
|
|
|
|
@predat bra @L1042
|
2019-08-04 21:48:42 +00:00
|
|
|
|
|
|
|
!word $0123
|
2019-11-17 01:15:03 +00:00
|
|
|
@dat1 !word $4567
|
2019-08-04 21:48:42 +00:00
|
|
|
!word $89ab
|
2019-11-17 01:15:03 +00:00
|
|
|
@L1010 !word $cdef
|
|
|
|
@L1012 !word $0011
|
|
|
|
@L1014 !word $2233
|
2019-08-04 21:48:42 +00:00
|
|
|
!byte $80
|
|
|
|
!text "The quick brown fox"
|
|
|
|
!byte $80
|
2019-11-17 01:15:03 +00:00
|
|
|
!word @L1042
|
|
|
|
!word @L1041
|
|
|
|
!word @L1042+1
|
|
|
|
@fill0 !fill 16,$00
|
|
|
|
@L1041 !byte $80
|
2019-08-04 21:48:42 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
@L1042 lda @predat+2
|
|
|
|
lda @L1041
|
|
|
|
asl @dat1
|
|
|
|
rol @dat1+2
|
|
|
|
ror @L1010
|
|
|
|
and @L1012
|
|
|
|
ora @L1014
|
|
|
|
lda @fill0
|
|
|
|
sta @fill0+4
|
|
|
|
lda @fill0+8
|
|
|
|
sta @fill0+12
|
|
|
|
jsr @L1002
|
|
|
|
lda @L1006
|
|
|
|
@L1069 pea @L1069-1
|
|
|
|
per @L1069-1
|
|
|
|
lda @L1069+1
|
|
|
|
lda @L1069+2
|
2019-08-04 21:48:42 +00:00
|
|
|
lda #$ea
|
2019-11-17 01:15:03 +00:00
|
|
|
@L1077 sta @L1077
|
|
|
|
@L107A sta @L107A+1
|
2019-10-30 01:12:22 +00:00
|
|
|
sta $107f ;self-ref; operand format refs nonexistent symbol
|
2019-11-17 01:15:03 +00:00
|
|
|
brl @L2002
|
2019-08-04 21:48:42 +00:00
|
|
|
|
|
|
|
!byte $80
|
2019-11-17 01:15:03 +00:00
|
|
|
@dat81 !byte $81
|
2020-05-14 23:37:33 +00:00
|
|
|
} ;!pseudopc
|
2019-08-04 21:48:42 +00:00
|
|
|
!pseudopc $2000 {
|
2019-11-17 01:15:03 +00:00
|
|
|
@L2000 !byte $82
|
2019-08-04 21:48:42 +00:00
|
|
|
!byte $83
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
@L2002 bit @L2002
|
|
|
|
lda @dat81
|
|
|
|
lda @L2000
|
|
|
|
bra @L2018
|
2019-10-30 01:12:22 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
@L200D !byte $7c
|
|
|
|
@L200E !byte $7d
|
|
|
|
@L200F !byte $7e
|
2019-10-30 01:12:22 +00:00
|
|
|
!byte $7f
|
2019-11-17 01:15:03 +00:00
|
|
|
@nearby !byte $80
|
2019-10-30 01:12:22 +00:00
|
|
|
!byte $81
|
|
|
|
!byte $82
|
|
|
|
!byte $83
|
2019-11-17 01:15:03 +00:00
|
|
|
@L2015 !byte $84
|
|
|
|
@L2016 !byte $85
|
|
|
|
@L2017 !byte $86
|
2019-10-30 01:12:22 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
@L2018 lda @L200D
|
|
|
|
lda @L200E
|
|
|
|
lda @L200F
|
|
|
|
lda @nearby-1
|
|
|
|
lda @nearby
|
|
|
|
lda @nearby+1
|
|
|
|
lda @nearby+2
|
|
|
|
lda @nearby+3
|
|
|
|
lda @L2015
|
|
|
|
lda @L2016
|
|
|
|
lda @L2017
|
2019-08-04 21:48:42 +00:00
|
|
|
rts
|
|
|
|
|
|
|
|
} ;!pseudopc
|