1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-09-11 04:57:02 +00:00
6502bench/SourceGen/SGTestData/Source/20022-operand-formats.S

41 lines
761 B
ArmAsm
Raw Normal View History

2018-09-28 17:05:11 +00:00
; Copyright 2018 faddenSoft. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; Extended tests for 65816.
;
2018-09-28 17:05:11 +00:00
; Assembler: Merlin 32
org $1000
; 65816 with long regs
2018-09-28 17:05:11 +00:00
clc
xce
rep #$30
mx %00
; hex/dec/sdec/bin
lda #$1234
lda #$1234
lda #$1234
lda #$1234
lda #$fffe
lda #$fffe
lda #$fffe
lda #$fffe
ldal $fffefd
ldal $fffefd
ldal $fffefd
ldal $fffefd
; ASCII
lda #$0068 ;'h'
lda #$00c8 ;"h"
2018-09-28 17:05:11 +00:00
lda #$6868
ldal $000068 ;'h'
ldal $0000c8 ;"h"
2018-09-28 17:05:11 +00:00
rts