1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 06:31:25 +00:00

Updated to a02test.a02

This commit is contained in:
Curtis F Kaylor 2019-11-14 22:05:27 -05:00
parent f85c640f9f
commit 0e4495d9cf

View File

@ -1,16 +1,6 @@
;A02 Assembler Test File ;A02 Assembler Test File
TRUE: EQU $FF
FALSE: EQU $00
one equ 1 INCLUDE "a02inc.a02"
two equ 1 + 1
three equ one + one + one
four equ three + 1
PNTR: EQU $80
.local EQU 99
STRUCT EQU $0FFF
start ORG $0400 ;Start of Code start ORG $0400 ;Start of Code
SUBROUTINE SUBROUTINE
@ -99,8 +89,15 @@ exprsn LDA #PNTR+1 ;Immediate
LDY #>(STRUCT+2) LDY #>(STRUCT+2)
BYTES byte 99, %10101010,'~' ;Bytes BYTES byte 99, %10101010,'~' ;Bytes
byte $12,$34 .byte $12,$34
HEXES hex 01,23,45,67,AB,CD,EF,1A,2B,3C,D4,E5,F6 ;Hexadecimal HEXES hex 01,23,45,67,89 ;Hexadecimal
.hex ,AB,CD,EF,1A,2B,3C,D4,E5,F6
WORDS word $3456 WORDS word $3456
TABLE word $1357,$9BDF,$2468 Align 256
TABLE .word $1357,$9BDF,$2468
TEXT byte "ABCDEFGHIJKLMNOPQRSTUVWXYZ",0 TEXT byte "ABCDEFGHIJKLMNOPQRSTUVWXYZ",0
END ;Nothing after this will be Assembled
STY (STRUCT),X ;Illegal Addressing Mode
DC.W ;Unsupported Pseudo-Op