A2osX/BIN/ASM.S.EXP.txt
2015-10-09 17:53:30 +02:00

57 lines
1008 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

PR#3
PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OP 65C02
*---------------------------------------
* Addressing Mode reserved : #(),XY
* U-Operators :
* B-Operators :
* Num Format : 0-9 -> decimal
* $ = Hexa
* % = binary
* & = octal
*---------------------------------------
EXP.Get jsr SRC.GetCharNB
beq .9
jsr SRC.IsDigit10 Decimal constant ?
bne .
cmp #'$' Hex?
bne .
cmp #''' literal?
bne .
jsr SRC.IsLetter Symbol ?
bne .
cmp #'#'
.9 lda #ERR.MISSING.EXP
sec
.99 rts
*---------------------------------------
stz SRC.ACC
stz SRC.ACC+1
stz SRC.ACC+2
stz SRC.ACC+3
*---------------------------------------
EXP.Operators .AS "^!|&<=>+-*/"
*---------------------------------------
MAN
SAVE BIN/ASM.S.DIR
LOAD BIN/ASM.S
ASM