mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
8109396c48
We have a single character-encoding test that is cloned 3x so we can exercise the different values for the project's default character set. It was a 65816 test because it tested 16-bit immediate char operands, but that's a very small part of it. The 65816-specific portion is now 20122-char-encoding. The rest is now 201{2,3,4}0-char-encoding-X.
27 lines
615 B
ArmAsm
27 lines
615 B
ArmAsm
; Copyright 2019 faddenSoft. All Rights Reserved.
|
|
; See the LICENSE.txt file for distribution terms (Apache 2.0).
|
|
;
|
|
; Assembler: ACME (has good PETSCII/screen code support)
|
|
; 65816 version
|
|
|
|
!cpu 65816
|
|
* = $1000
|
|
|
|
clc
|
|
xce
|
|
|
|
; Single letter in a 16-bit immediate
|
|
rep #$30
|
|
!al
|
|
!rl
|
|
lda #'B' ;format as low ASCII
|
|
lda #'B' | $80 ;format as high ASCII
|
|
lda #'B' | $80 ;format as PETSCII
|
|
lda #'B' ;format as screen code
|
|
|
|
sep #$30
|
|
!as
|
|
!rs
|
|
|
|
rts
|