mirror of
https://github.com/fadden/6502bench.git
synced 2024-09-10 13:54:52 +00:00
Most tests pass, but 2007-labels-and-symbols fails because the expressions recognized by 64tass don't match up with either of the other assemblers. This is currently using a workaround for the local label syntax. 64tass uses '_' as the prefix, which is unfortunate since SourceGen explicitly allowed underscores in labels. (So does 64tass for that matter, but it treats labels specially when the '_' comes first.) We will need to rename any non-local user labels that start with '_'. (issue #16)
66 lines
1.4 KiB
ArmAsm
66 lines
1.4 KiB
ArmAsm
;Project file was edited for some ASCII operands.
|
|
.cpu "65816"
|
|
* = $1000
|
|
.as
|
|
.xs
|
|
clc
|
|
xce
|
|
sep #$30
|
|
lda $01
|
|
lda $0102
|
|
lda $010203
|
|
lda 1
|
|
lda 258
|
|
lda 66051
|
|
lda %00000001
|
|
lda %0000000100000010
|
|
lda %000000010000001000000011
|
|
bra skipdata
|
|
|
|
.byte $01
|
|
.word $0201
|
|
.long $030201
|
|
.dword $04030201
|
|
.byte 1
|
|
.word 513
|
|
.long 197121
|
|
.dword 67305985
|
|
.byte %00000001
|
|
.word %0000001000000001
|
|
.long %000000110000001000000001
|
|
.dword %00000100000000110000001000000001
|
|
|
|
skipdata lda #'h'
|
|
lda 'h'
|
|
lda @w'h'
|
|
lda @l'h'
|
|
lda #$1f
|
|
lda #' '
|
|
lda #'~'
|
|
lda #$7f
|
|
lda #$80
|
|
lda #$9f
|
|
lda #$a0
|
|
lda #$fe
|
|
lda #$ff
|
|
rep #'0'
|
|
.al
|
|
.xl
|
|
lda #'h'
|
|
lda #$c8
|
|
lda #$6868
|
|
rts
|
|
|
|
more_ascii .byte 'h'
|
|
.byte $80
|
|
.word $6868
|
|
.byte $80
|
|
.word skipdata
|
|
.long skipdata
|
|
.byte $10,$3f
|
|
.byte <more_ascii
|
|
.byte >more_ascii
|
|
.word more_ascii
|
|
.long more_ascii
|
|
.byte $10,$68
|