Work In Progress (ASM)

This commit is contained in:
Rémy GIBERT 2015-10-28 17:55:12 +01:00
parent 72daed64fc
commit 40b78c11a4
21 changed files with 5220 additions and 5188 deletions

View File

@ -4,7 +4,6 @@ NEW
INC 1
AUTO 6
.LIST OFF
.OP 65C02
*---------------------------------------
DIR.AC clc
rts
@ -36,17 +35,7 @@ DIR.ED clc
DIR.EL clc
rts
*---------------------------------------
DIR.EM ldy #ASM.MA.ON
lda (pData),y
bpl .9
lda #$00
sta (pData),y
clc
rts
.9 lda #ERR.INVALID.MACRO.DEF
DIR.EM lda #ERR.INVALID.MACRO.DEF
sec
rts
*---------------------------------------
@ -56,8 +45,11 @@ DIR.EN clc
DIR.EP clc
rts
*---------------------------------------
DIR.EQ clc
rts
DIR.EQ jsr EXP.Get
bcs .9
clc
.9 rts
*---------------------------------------
DIR.FI clc
rts
@ -71,7 +63,7 @@ DIR.IN jsr SRC.GetArg
>LDYA L.SRC.BUFFER
>SYSCALL SYS.NewPStrYA
jsr SRC.OpenFileA
jsr FIO.OpenFileA
bcs .99
rts
@ -111,20 +103,57 @@ DIR.LI.APPLY lsr
sta (pData),y
rts
*---------------------------------------
DIR.MA ldy #ASM.MA.ON
DIR.MA jsr SRC.GetArg
bcs .9
.1 jsr FIO.ReadLine
bcs .99
lda TmpBuffer256
beq .1
cmp #'*' Comment?
beq .8
cmp #';' Comment?
beq .8
cmp #' ' no label...go scan dir/opcode
beq .3
.2 jsr SRC.GetChar skip label
beq .8
cmp #' '
bne .2
.3 jsr SRC.GetCharNB Scan for an Opcode...
beq .8
cmp #'.'
bne .8
jsr SRC.GetChar
beq .8
cmp #'E'
bne .8
jsr SRC.GetChar
beq .8
cmp #'M'
bne .8
clc
rts
.8 ldy #ASM.PASS If Pass#2, ignore
lda (pData),y
bmi .9
bne .1
lda #$80
sta (pData),y
jsr SRC.GetArg
bra .1
clc
rts
.9 lda #ERR.INVALID.MACRO.DEF
sec
rts
.99 rts
*---------------------------------------
DIR.OP jsr SRC.GetArg
bcs .9
@ -147,8 +176,20 @@ DIR.OP jsr SRC.GetArg
sec
rts
*---------------------------------------
DIR.OR clc
rts
DIR.OR jsr EXP.Get
bcs .9
ldy #ASM.PC
ldx #0
.1 lda SRC.ACC,x
sta (pData),y
inx
iny
cpx #4
bne .1
clc
.9 rts
*---------------------------------------
DIR.PG clc
rts

View File

@ -4,43 +4,69 @@ NEW
INC 1
AUTO 6
.LIST OFF
.OP 65C02
*---------------------------------------
* Addressing Mode reserved : #(),XY
* Addressing Mode reserved : []#(),
* EXP.Operators .AS "^!|&<=>+-*/"
* U-Operators :
* B-Operators :
* Num Format : 0-9 -> decimal
* $ = Hexa
* $ = Hex
* % = binary
* & = octal
* * = PC
*---------------------------------------
EXP.Get jsr SRC.GetCharNB
beq .9
jsr SRC.IsDigit10 Decimal constant ?
bne .
beq .98
cmp #'*'
bne .10
ldy #ASM.PC
ldx #0
.11 lda (pData),y
sta SRC.ACC,x
inx
iny
cpx #4
bne .11
bra .8
.10 jsr SRC.IsDigit10 Decimal constant ?
bcs .1
dec SRC.BufPtr
jsr SRC.GetDecimal
bcs .97
bra .8
.1 cmp #'$' Hex?
bne .2
jsr SRC.GetHex
bcs .97
bra .8
.2 cmp #'%' binary?
bne .3
jsr SRC.GetBinary
bcs .97
bra .8
.3 jsr SRC.IsLetter Symbol ?
bcs .97
cmp #'$' Hex?
bne .
.8 clc
rts
.97 lda #ERR.SYNTAX.ERROR
sec
rts
cmp #''' literal?
bne .
jsr SRC.IsLetter Symbol ?
bne .
cmp #'#'
.9 lda #ERR.MISSING.EXP
.98 lda #ERR.MISSING.EXP
sec
.99 rts
*---------------------------------------
@ -49,9 +75,9 @@ EXP.Get jsr SRC.GetCharNB
stz SRC.ACC+2
stz SRC.ACC+3
*---------------------------------------
EXP.Operators .AS "^!|&<=>+-*/"
*---------------------------------------
MAN
SAVE BIN/ASM.S.DIR
SAVE BIN/ASM.S.EXP
LOAD BIN/ASM.S
ASM
ASM

270
BIN/ASM.S.FIO.txt Normal file
View File

@ -0,0 +1,270 @@
PR#3
PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
*---------------------------------------
FIO.OpenFileA sta hFileName
>SYSCALL SYS.GetMemPtrA
>STYA ZPPtr1
ldy #1
lda (ZPPtr1),y
cmp #'/'
beq .1
>PUSHB hFileName
ldy #S.PS.hPREFIX
lda (pPs),y
>PUSHA
>SYSCALL SYS.PStrCat
sta hFileName
>SYSCALL SYS.GetMemPtrA
>STYA ZPPtr1
.1 >PUSHW ZPPtr1
>PUSHW L.MSG.SRC.FILE
>LIBCALL hLIBSTR,LIBSTR.PRINTF
ldy #SRC.COUNT
lda (pData),y
cmp #SRC.IN.DEPTH.MAX
bne .10
lda #ERR.SRC.TOO.MANY.IN
sec
rts
.10 lda hFileName
>SYSCALL SYS.MLIOpenA
bcs .99
pha
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hREFNUMS
tay
pla
sta (pData),y
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hBUFFERS
tay
txa
sta (pData),y
lda hFileName
>SYSCALL SYS.MLIGetFileInfoA
bcs .99
>STYA ZPQuickPtr1
ldy #1
lda (ZPQuickPtr1),y
tax
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hFILETYPES
tay
txa
sta (pData),y
cmp #$FA S-C/BAS?
beq .8
cmp #$04 TXT ?
bne .98
>PUSHBI $0D Line separator for TXT file
>PUSHBI $FF
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hREFNUMS
tay
lda (pData),y
>PUSHA
>SYSCALL SYS.MLINewLine
bcs .99
.8 ldy #SRC.COUNT
lda (pData),y
inc
sta (pData),y
clc
rts
.98 lda #ERR.SRC.INV.TYPE
.99 sec
rts
*---------------------------------------
FIO.ReadLine stz SRC.Label.Flags
stz SRC.BufPtr
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hFILETYPES-1
tay
lda (pData),y
bmi .10
>PUSHWI 256
>PUSHWI TmpBuffer256
jsr FIO.ReadFromFile
bcs .19
lda #0 replace ending $0D with $00
sta TmpBuffer256,y
.19 rts
.10 >PUSHWI 3
>PUSHW L.SRC.Buffer
jsr FIO.ReadFromFile
bcs .9
lda SRC.Buffer+1
sta SRC.LINENUM
lda SRC.Buffer+2
sta SRC.LINENUM+1
lda SRC.Buffer LEN
sec
sbc #3
bcc .9 LEN should be at least 3
tay
lda #0
>PUSHYA
>PUSHW L.SRC.BUFFER
jsr FIO.ReadFromFile
ldy #0
ldx #0
.1 lda SRC.Buffer,y
bmi .2
sta TmpBuffer256,x
beq .8 Ending 00
inx
beq .99
iny
bne .1
bra .99
.2 cmp #$C0 REPEAT char?
bne .5
iny
beq .99
lda SRC.Buffer,y
iny
beq .99
.3 pha
lda SRC.Buffer,y
sta TmpBuffer256,x
pla
inx
beq .99
dec
bne .3
iny
bne .1
bra .99
.5 and #$3F Compute blank count
.6 pha
lda #$20
sta TmpBuffer256,x
pla
inx
beq .99
dec
bne .6
iny
bne .1
bra .99
.8 clc
.9 rts
.99 lda #ERR.LINE.TOO.LONG
sec
rts
*--------------------------------------
FIO.ReadFromFile ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hREFNUMS-1
tay
lda (pData),y
>PUSHA
>SYSCALL SYS.MLIRead
bcs .9
tax $100 byte transfered ?
beq .9
lda #ERR.LINE.TOO.LONG
sec
.9 rts
*---------------------------------------
FIO.FileClose ldy #SRC.COUNT
lda (pData),y
beq .8
clc
adc #SRC.hREFNUMS-1
tay
lda (pData),y
>SYSCALL SYS.MLICloseA
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hBUFFERS-1
tay
lda (pData),y
>SYSCALL SYS.FreeMemA
ldy #SRC.COUNT
lda (pData),y
dec
sta (pData),y
.8 clc
rts
*---------------------------------------
LOAD.ASM.T ldy #ASM.T.hMem
lda (pData),y
beq .1
>SYSCALL SYS.FreeMemA
ldy #ASM.T.hMem
lda #0
sta (pData),y
.1 >PUSHW L.ASM.T.FILENAME
>PUSHW L.MSG.T.FILE
>LIBCALL hLIBSTR,LIBSTR.PRINTF
>LDYA L.ASM.T.FILENAME
>SYSCALL SYS.LoadFileYA
bcs .9
txa
ldy #ASM.T.hMem
sta (pData),y
.9 rts
*---------------------------------------
MAN
SAVE BIN/ASM.S.FIO
LOAD BIN/ASM.S
ASM

View File

@ -4,246 +4,8 @@ NEW
INC 1
AUTO 6
.LIST OFF
.OP 65C02
*---------------------------------------
SRC.OpenFileA sta hFileName
>SYSCALL SYS.GetMemPtrA
>STYA ZPPtr1
ldy #1
lda (ZPPtr1),y
cmp #'/'
beq .1
>PUSHB hFileName
ldy #S.PS.hPREFIX
lda (pPs),y
>PUSHA
>SYSCALL SYS.PStrCat
sta hFileName
>SYSCALL SYS.GetMemPtrA
>STYA ZPPtr1
.1 >PUSHW ZPPtr1
>PUSHW L.MSG.SRC.FILE
>LIBCALL hLIBSTR,LIBSTR.PRINTF
ldy #SRC.COUNT
lda (pData),y
cmp #SRC.IN.DEPTH.MAX
bne .10
lda #ERR.SRC.TOO.MANY.IN
sec
rts
.10 lda hFileName
>SYSCALL SYS.MLIOpenA
bcs .99
pha
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hREFNUMS
tay
pla
sta (pData),y
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hBUFFERS
tay
txa
sta (pData),y
lda hFileName
>SYSCALL SYS.MLIGetFileInfoA
bcs .99
>STYA ZPQuickPtr1
ldy #1
lda (ZPQuickPtr1),y
tax
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hFILETYPES
tay
txa
sta (pData),y
cmp #$FA S-C/BAS?
beq .8
cmp #$04 TXT ?
bne .98
>PUSHBI $0D Line separator for TXT file
>PUSHBI $FF
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hREFNUMS
tay
lda (pData),y
>PUSHA
>SYSCALL SYS.MLINewLine
bcs .99
.8 ldy #SRC.COUNT
lda (pData),y
inc
sta (pData),y
clc
rts
.98 lda #ERR.SRC.INV.TYPE
.99 sec
rts
*---------------------------------------
SRC.ReadLine ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hFILETYPES-1
tay
lda (pData),y
bmi .10
>PUSHWI 256
>PUSHWI TmpBuffer256
jsr SRC.ReadFromFile
bcs .19
lda #0 replace ending $0D with $00
sta TmpBuffer256,y
.19 rts
.10 >PUSHWI 3
>PUSHW L.SRC.Buffer
jsr SRC.ReadFromFile
bcs .9
lda SRC.Buffer+1
sta SRC.LINENUM
lda SRC.Buffer+2
sta SRC.LINENUM+1
lda SRC.Buffer LEN
sec
sbc #3
bcc .9 LEN should be at least 3
tay
lda #0
>PUSHYA
>PUSHW L.SRC.BUFFER
jsr SRC.ReadFromFile
ldy #0
ldx #0
.1 lda SRC.Buffer,y
bmi .2
sta TmpBuffer256,x
beq .8 Ending 00
inx
beq .99
iny
bne .1
bra .99
.2 cmp #$C0 REPEAT char?
bne .5
iny
beq .99
lda SRC.Buffer,y
iny
beq .99
.3 pha
lda SRC.Buffer,y
sta TmpBuffer256,x
pla
inx
beq .99
dec
bne .3
iny
bne .1
bra .99
.5 and #$3F Compute blank count
.6 pha
lda #$20
sta TmpBuffer256,x
pla
inx
beq .99
dec
bne .6
iny
bne .1
bra .99
.8 clc
.9 rts
.99 lda #ERR.LINE.TOO.LONG
sec
rts
*--------------------------------------
SRC.ReadFromFile ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hREFNUMS-1
tay
lda (pData),y
>PUSHA
>SYSCALL SYS.MLIRead
bcs .9
tax $100 byte transfered ?
beq .9
lda #ERR.LINE.TOO.LONG
sec
.9 rts
*---------------------------------------
SRC.FileClose ldy #SRC.COUNT
lda (pData),y
beq .8
clc
adc #SRC.hREFNUMS-1
tay
lda (pData),y
>SYSCALL SYS.MLICloseA
ldy #SRC.COUNT
lda (pData),y
clc
adc #SRC.hBUFFERS-1
tay
lda (pData),y
>SYSCALL SYS.FreeMemA
ldy #SRC.COUNT
lda (pData),y
dec
sta (pData),y
.8 clc
rts
*---------------------------------------
SRC.ParseLine stz SRC.Label.Flags
stz SRC.BufPtr
ldx TmpBuffer256
SRC.ParseLine ldx TmpBuffer256
beq SRC.ParseLine.Skip
cpx #'*' Comment?
@ -254,16 +16,6 @@ SRC.ParseLine stz SRC.Label.Flags
cpx #' ' no label...go scan dir/opcode
beq .4
ldy #ASM.MA.ON Macro learning mode ?
lda (pData),y
bpl .1 go Label check
.10 jsr SRC.GetChar skip label
beq SRC.ParseLine.skip
cmp #' '
bne .10
bra .4
.1 cpx #'.' local symbol?
bne .2
jsr SRC.ParseLine.SymL
@ -282,7 +34,15 @@ SRC.ParseLine stz SRC.Label.Flags
bcs SRC.ParseLine.Err
bra SRC.ParseLine.Ok
.5 jsr SRC.ParseLine.OpCode
.5 cmp #'>'
bne .6
jsr SRC.ParseLine.Exec.Macro
bcs SRC.ParseLine.Err
bra SRC.ParseLine.Ok
.6 dec SRC.BufPtr Back one char...
jsr SRC.ParseLine.OpCode
bcs SRC.ParseLine.Err
@ -290,19 +50,8 @@ SRC.ParseLine.Ok lda SRC.Label.Flags
beq .1
jsr SYM.Add
.1 ldy #ASM.MA.ON Macro learning mode ?
lda (pData),y
bpl .2
ldy #ASM.PASS If Pass#2, ignore
lda (pData),y
bne SRC.ParseLine.skip
jsr SRC.ParseLine.Macro
.2
bcs SRC.ParseLine.Err
.1
SRC.ParseLine.skip clc
rts
@ -352,16 +101,69 @@ SRC.ParseLine.Dir >LDYA L.T.DIRECTIVES
sec
rts
*---------------------------------------
SRC.ParseLine.OpCode
SRC.ParseLine.Exec.Macro
clc
rts
*---------------------------------------
SRC.ParseLine.Macro
SRC.ParseLine.Add.Macro
clc
rts
*---------------------------------------
SRC.ParseLine.OpCode
jsr SRC.GetArg
bcs .9
ldy #ASM.T.hMem
lda (pData),y
>SYSCALL SYS.GetMemPtrA
>STYA ZPPtr1
ldy #ASM.T.O
lda (ZPPtr1),y
clc
adc ZPPtr1
sta ZPPtr2
iny
lda (ZPPtr1),y
adc ZPPtr1+1
sta ZPPtr2+1
.10 lda (ZPPtr2)
ldy #1
ora (ZPPtr2),y
beq .9
ldx #$FF
.1 inx
lda SRC.Buffer,x
iny
cmp (ZPPtr2),y
bne .7
cpx SRC.Buffer
bne .1
clc
rts
.7 lda ZPPtr1
clc
adc (ZPPtr2)
tax
lda ZPPtr1+1
ldy #1
adc (ZPPtr2),y
stx ZPPtr2
sta ZPPtr2+1
bra .10
.9 lda #ERR.INVALID.OPCODE
sec
rts
*---------------------------------------
SRC.PrintLine bcs .8 if CS, unconditional
ldy #ASM.MA.ON
ldy #ASM.MACRO.ON
lda (pData),y
bpl .1
@ -422,6 +224,91 @@ SRC.GetDecimal stz SRC.ACC+1
.8 clc
rts
.99 lda #ERR.SYNTAX.ERROR
sec
rts
*---------------------------------------
SRC.GetHex stz SRC.ACC+1
stz SRC.ACC+2
stz SRC.ACC+3
jsr SRC.GetChar
beq .99
jsr SRC.IsDigit16
bcs .99
and #$0F
sta SRC.ACC
.1 jsr SRC.GetChar
beq .8
cmp #' '
beq .8
jsr SRC.IsDigit16
bcs .99
asl
asl
asl
asl
ldx #4
.2 asl
rol SRC.ACC
rol SRC.ACC+1
rol SRC.ACC+2
rol SRC.ACC+3
bcs .9
dex
bne .2
bra .1
.8 clc
rts
.9 lda #ERR.VAL.TOO.BIG
sec
rts
.99 lda #ERR.SYNTAX.ERROR
sec
rts
*---------------------------------------
SRC.GetBinary stz SRC.ACC+1
stz SRC.ACC+2
stz SRC.ACC+3
jsr SRC.GetChar
beq .99
cmp #'1'
beq .10
cmp #'0'
bne .99
.10 and #$01
sta SRC.ACC
.1 jsr SRC.GetChar
beq .8
cmp #'1'
beq .11
cmp #'0'
bne .8
.11 lsr
rol SRC.ACC
rol SRC.ACC+1
rol SRC.ACC+2
rol SRC.ACC+3
bcs .9
bra .1
.8 clc
rts
.9 lda #ERR.VAL.TOO.BIG
sec
rts
.99 lda #ERR.SYNTAX.ERROR
sec
rts
@ -512,7 +399,6 @@ SRC.GetArg jsr SRC.GetCharUC
beq .2
cmp #' '
beq .2
cmp #','
iny
sta SRC.Buffer,y
bra .1
@ -540,9 +426,25 @@ SRC.IsLetter cmp #'A'
.9 sec
SRC.IsLetterRTS rts
*---------------------------------------
SRC.IsDigit16 jsr SRC.IsDigit10
bcc .8
cmp #'A'
bcc .9
cmp #'G'
bcc .1
rts cc if ok, cs if not
.1 sbc #'A'-10 cc so A->10
clc
.8 and #$0F
rts
.9 sec
rts
*---------------------------------------
SRC.IsDigit10 cmp #'0'
bcc .9
cmp #':'
cmp #'9'+1
rts cc if ok, cs if not
.9 sec
@ -565,9 +467,10 @@ SRC.GetCharUC jsr SRC.GetChar
*---------------------------------------
SRC.GetChar ldx SRC.BufPtr
lda TmpBuffer256,x
inc SRC.BufPtr
and #$7f
rts
beq .9
inc SRC.BufPtr if 255, will make Z
and #$7f Make sure NZ
.9 rts
*---------------------------------------
SRC.ACC10 lda SRC.ACC ACC*2-> ACC & ACCTMP
asl

View File

@ -4,24 +4,23 @@ NEW
INC 1
AUTO 6
.LIST OFF
.OP 65C02
*---------------------------------------
SYM.Add
clc
rts
*---------------------------------------
SYM.AddGlobal
clc
rts
*---------------------------------------
SYM.LookupGlobal
clc
rts
*---------------------------------------
SYM.ClearPrivate
clc
rts
*---------------------------------------
SYM.AddPrivate
clc
rts
*---------------------------------------
SYM.LookupPrivate
clc
rts
*---------------------------------------
SYM.ClearLocal
clc
rts
@ -34,11 +33,11 @@ SYM.LookupLocal
clc
rts
*---------------------------------------
SYM.AddGlobal
SYM.AddPrivate
clc
rts
*---------------------------------------
SYM.LookupGlobal
SYM.LookupPrivate
clc
rts
*---------------------------------------

View File

@ -16,6 +16,10 @@ AUTO 6
ZPPtr1 .EQ ZPBIN
ZPPtr2 .EQ ZPBIN+2
*---------------------------------------
ASM.T.AM .EQ 0
ASM.T.R .EQ 2
ASM.T.O .EQ 4
*---------------------------------------
SYM.BLOCK.SIZE .EQ 4096
SYM.BLOCK.MAX .EQ 8
SRC.IN.DEPTH.MAX .EQ 7
@ -31,6 +35,7 @@ ERR.VAL.TOO.BIG .EQ $A2
ERR.LINE.TOO.LONG .EQ $A3
ERR.INVALID.LABEL .EQ $A4
ERR.INVALID.DIRECTIVE .EQ $A5
ERR.INVALID.OPCODE .EQ $A6
ERR.MISSING.EXP .EQ $B0
ERR.EXP.SYN.ERROR .EQ $B1
ERR.INVALID.MACRO.DEF .EQ $E0
@ -167,7 +172,8 @@ CS.INIT >LDYA L.LIBSTR
ldy #ASM.LI.ON
sta (pData),y
lda #$00
* lda #$00
lda #$80
ldy #ASM.LI.CON
sta (pData),y
ldy #ASM.LI.XON
@ -207,25 +213,17 @@ CS.RUN ldy #bCANCEL
ldy #SRC.hFILENAME
lda (pData),y
jsr SRC.OpenFileA
jsr FIO.OpenFileA
bcs .99
.10 jsr SRC.ReadLine
.10 jsr FIO.ReadLine
bcc .2
cmp #$4C End Of File?
bne .9
jsr SRC.FileClose
jsr FIO.FileClose
ldy #ASM.MA.ON Macro learning mode ?
lda (pData),y
bpl .22
lda #ERR.SRC.UNEXP.EOF
sec
rts
.22 ldy #SRC.COUNT end of root file ?
ldy #SRC.COUNT end of root file ?
lda (pData),y
bne .8 no continue back to previous file
@ -246,9 +244,6 @@ CS.RUN ldy #bCANCEL
jsr SRC.PrintLine with CC, conditional
ldy #ASM.MA.ON Macro learning mode ?
lda (pData),y
bmi .10
.8 clc
rts
@ -300,7 +295,7 @@ CS.DOEVENT ldy #S.EVT.hDEV is Event from active IN device?
.9 sec
rts
*--------------------------------------
CS.QUIT jsr SRC.FileClose
CS.QUIT jsr FIO.FileClose
bne CS.QUIT
ldy #ASM.T.hMem
@ -314,35 +309,15 @@ CS.QUIT jsr SRC.FileClose
>SYSCALL SYS.FreeMemA
.8 lda #hLIBSTR
.8 lda hLIBSTR
>SYSCALL SYS.UnloadLibA
clc
rts
*---------------------------------------
LOAD.ASM.T ldy #ASM.T.hMem
lda (pData),y
beq .1
>SYSCALL SYS.FreeMemA
ldy #ASM.T.hMem
lda #0
sta (pData),y
.1 >PUSHW L.ASM.T.FILENAME
>PUSHW L.MSG.T.FILE
>LIBCALL hLIBSTR,LIBSTR.PRINTF
>LDYA L.ASM.T.FILENAME
>SYSCALL SYS.LoadFileYA
bcs .9
txa
ldy #ASM.T.hMem
sta (pData),y
.9 rts
*---------------------------------------
.INB BIN/ASM.S.SRC
.INB BIN/ASM.S.DIR
.INB BIN/ASM.S.EXP
.INB BIN/ASM.S.FIO
.INB BIN/ASM.S.SRC
.INB BIN/ASM.S.SYM
*---------------------------------------
CS.END
@ -449,7 +424,7 @@ MSG.HELP2 >CSTRING "Usage : ASM <src file> [type TXT ($04) or S-C/BAS ($FA)]\n
MSG.PASS >CSTRING "Pass:#%d\n"
MSG.SRC.FILE >CSTRING "Source File:%S\n"
MSG.OBJ.FILE >CSTRING "Object File:%S, Type=%02x\n"
MSG.T.FILE >CSTRING ".T File:%S\n"
MSG.T.FILE >CSTRING "CPU Definition File:%S\n"
MSG.SRCLINE >CSTRING "%05D-%s\n"
MSG.ERROR >CSTRING "%05D-Error:$%h\n"
ASM.T.DEFAULT .AS ".T.6502"
@ -489,11 +464,11 @@ DST.hFILETYPE .BS 1
ASM.T.hMem .BS 1 handle to ASM.T.xxxxx
ASM.PASS .BS 1
ASM.MACRO.ON .BS 1
ASM.PH.ON .BS 1
ASM.LI.ON .BS 1
ASM.LI.CON .BS 1
ASM.LI.XON .BS 1
ASM.MA.ON .BS 1
ASM.PC .BS 4 32Bits PC
ASM.PC.PH .BS 4 32Bits PC saved for PH directive

View File

@ -3,481 +3,384 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
*---------------------------------------
T.OPCODES .EQ *
.DA #E.ADC-*
>PSTR "ADC"
.DA #0,#3
.AS "71a"
.DA #1,#3
.AS "61a"
.DA #2,#3
.AS "65a"
.DA #3,#3
.AS "75a"
.DA #4,#4
.AS "6Daa"
.DA #5,#4
.AS "7Daa"
.DA #6,#4
.AS "79aa"
.DA #7,#3
.AS "69i"
E.ADC .HS 00
.DA #E.AND-*
>PSTR "AND"
.DA #0,#3
.AS "31a"
.DA #1,#3
.AS "21a"
.DA #2,#3
.AS "25a"
.DA #3,#3
.AS "35a"
.DA #4,#4
.AS "2Daa"
.DA #5,#4
.AS "3Daa"
.DA #6,#4
.AS "39aa"
.DA #7,#3
.AS "29i"
E.AND .HS 00
.DA #E.ASL-*
>PSTR "ASL"
.DA #2,#3
.AS "06a"
.DA #3,#3
.AS "16a"
.DA #4,#4
.AS "0Eaa"
.DA #5,#4
.AS "1Eaa"
.DA #255,#2
.AS "0A"
E.ASL .HS 00
.DA #E.BCC-*
>PSTR "BCC"
.DA #8,#3
.AS "90r"
E.BCC .HS 00
.DA #E.BCS-*
>PSTR "BCS"
.DA #8,#3
.AS "B0r"
E.BCS .HS 00
.DA #E.BEQ-*
>PSTR "BEQ"
.DA #8,#3
.AS "F0r"
E.BEQ .HS 00
.DA #E.BIT-*
>PSTR "BIT"
.DA #2,#3
.AS "24a"
.DA #4,#4
.AS "2Caa"
E.BIT .HS 00
.DA #E.BMI-*
>PSTR "BMI"
.DA #8,#3
.AS "30r"
E.BMI .HS 00
.DA #E.BNE-*
>PSTR "BNE"
.DA #8,#3
.AS "D0r"
E.BNE .HS 00
.DA #E.BPL-*
>PSTR "BPL"
.DA #8,#3
.AS "10r"
E.BPL .HS 00
.DA #E.BRK-*
>PSTR "BRK"
.DA #255,#2
.AS "00"
E.BRK .HS 00
.DA #E.BVC-*
>PSTR "BVC"
.DA #8,#3
.AS "50r"
E.BVC .HS 00
.DA #E.BVS-*
>PSTR "BVS"
.DA #8,#3
.AS "70r"
E.BVS .HS 00
.DA #E.CLC-*
>PSTR "CLC"
.DA #255,#2
.AS "18"
E.CLC .HS 00
.DA #E.CLD-*
>PSTR "CLD"
.DA #255,#2
.AS "D8"
E.CLD .HS 00
.DA #E.CLI-*
>PSTR "CLI"
.DA #255,#2
.AS "58"
E.CLI .HS 00
.DA #E.CLV-*
>PSTR "CLV"
.DA #255,#2
.AS "B8"
E.CLV .HS 00
.DA #E.CMP-*
>PSTR "CMP"
.DA #0,#3
.AS "D1a"
.DA #1,#3
.AS "C1a"
.DA #2,#3
.AS "C5a"
.DA #3,#3
.AS "D5a"
.DA #4,#4
.AS "CDaa"
.DA #5,#4
.AS "DDaa"
.DA #6,#4
.AS "D9aa"
.DA #7,#3
.AS "C9i"
E.CMP .HS 00
.DA #E.CPX-*
>PSTR "CPX"
.DA #2,#3
.AS "E4a"
.DA #4,#4
.AS "Ecaa"
.DA #7,#3
.AS "E0i"
E.CPX .HS 00
.DA #E.CPY-*
>PSTR "CPY"
.DA #2,#3
.AS "C4a"
.DA #4,#4
.AS "Ccaa"
.DA #7,#3
.AS "C0i"
E.CPY .HS 00
.DA #E.DEC-*
>PSTR "DEC"
.DA #2,#3
.AS "C6a"
.DA #3,#3
.AS "D6a"
.DA #4,#4
.AS "Ceaa"
.DA #5,#4
.AS "Deaa"
E.DEC .HS 00
.DA #E.DEX-*
>PSTR "DEX"
.DA #255,#2
.AS "CA"
E.DEX .HS 00
.DA #E.DEY-*
>PSTR "DEY"
.DA #255,#2
.AS "88"
E.DEY .HS 00
.DA #E.EOR-*
>PSTR "EOR"
.DA #0,#3
.AS "51a"
.DA #1,#3
.AS "41a"
.DA #2,#3
.AS "45a"
.DA #3,#3
.AS "55a"
.DA #4,#4
.AS "4Daa"
.DA #5,#4
.AS "5Daa"
.DA #6,#4
.AS "59aa"
.DA #7,#3
.AS "49i"
E.EOR .HS 00
.DA #E.INC-*
>PSTR "INC"
.DA #2,#3
.AS "E6a"
.DA #3,#3
.AS "F6a"
.DA #4,#4
.AS "Eeaa"
.DA #5,#4
.AS "Feaa"
E.INC .HS 00
.DA #E.INX-*
>PSTR "INX"
.DA #255,#2
.AS "E8"
E.INX .HS 00
.DA #E.INY-*
>PSTR "INY"
.DA #255,#2
.AS "C8"
E.INY .HS 00
.DA #E.JMP-*
>PSTR "JMP"
.DA #9,#4
.AS "6Caa"
.DA #4,#4
.AS "4Caa"
E.JMP .HS 00
.DA #E.JSR-*
>PSTR "JSR"
.DA #4,#4
.AS "20aa"
E.JSR .HS 00
.DA #E.LDA-*
>PSTR "LDA"
.DA #0,#3
.AS "B1a"
.DA #1,#3
.AS "A1a"
.DA #2,#3
.AS "A5a"
.DA #3,#3
.AS "B5a"
.DA #4,#4
.AS "Adaa"
.DA #5,#4
.AS "Bdaa"
.DA #6,#4
.AS "B9aa"
.DA #7,#3
.AS "A9i"
E.LDA .HS 00
.DA #E.LDX-*
>PSTR "LDX"
.DA #2,#3
.AS "A6a"
.DA #10,#3
.AS "B6a"
.DA #4,#4
.AS "Aeaa"
.DA #6,#4
.AS "Beaa"
.DA #7,#3
.AS "A2i"
E.LDX .HS 00
.DA #E.LDY-*
>PSTR "LDY"
.DA #2,#3
.AS "A4a"
.DA #3,#3
.AS "B4a"
.DA #4,#4
.AS "Acaa"
.DA #5,#4
.AS "Bcaa"
.DA #7,#3
.AS "A0i"
E.LDY .HS 00
.DA #E.LSR-*
>PSTR "LSR"
.DA #2,#3
.AS "46a"
.DA #3,#3
.AS "56a"
.DA #4,#4
.AS "4Eaa"
.DA #5,#4
.AS "5Eaa"
.DA #255,#2
.AS "4A"
E.LSR .HS 00
.DA #E.NOP-*
>PSTR "NOP"
.DA #255,#2
.AS "EA"
E.NOP .HS 00
.DA #E.ORA-*
>PSTR "ORA"
.DA #0,#3
.AS "11a"
.DA #1,#3
.AS "01a"
.DA #2,#3
.AS "05a"
.DA #3,#3
.AS "15a"
.DA #4,#4
.AS "0Daa"
.DA #5,#4
.AS "1Daa"
.DA #6,#4
.AS "19aa"
.DA #7,#3
.AS "09i"
E.ORA .HS 00
.DA #E.PHA-*
>PSTR "PHA"
.DA #255,#2
.AS "48"
E.PHA .HS 00
.DA #E.PHP-*
>PSTR "PHP"
.DA #255,#2
.AS "08"
E.PHP .HS 00
.DA #E.PLA-*
>PSTR "PLA"
.DA #255,#2
.AS "68"
E.PLA .HS 00
.DA #E.PLP-*
>PSTR "PLP"
.DA #255,#2
.AS "28"
E.PLP .HS 00
.DA #E.ROL-*
>PSTR "ROL"
.DA #2,#3
.AS "26a"
.DA #3,#3
.AS "36a"
.DA #4,#4
.AS "2Eaa"
.DA #5,#4
.AS "3Eaa"
.DA #255,#2
.AS "2A"
E.ROL .HS 00
.DA #E.ROR-*
>PSTR "ROR"
.DA #2,#3
.AS "66a"
.DA #3,#3
.AS "76a"
.DA #4,#4
.AS "6Eaa"
.DA #5,#4
.AS "7Eaa"
.DA #255,#2
.AS "6A"
E.ROR .HS 00
.DA #E.RTI-*
>PSTR "RTI"
.DA #255,#2
.AS "40"
E.RTI .HS 00
.DA #E.RTS-*
>PSTR "RTS"
.DA #255,#2
.AS "60"
E.RTS .HS 00
.DA #E.SBC-*
>PSTR "SBC"
.DA #0,#3
.AS "F1a"
.DA #1,#3
.AS "E1a"
.DA #2,#3
.AS "E5a"
.DA #3,#3
.AS "F5a"
.DA #4,#4
.AS "Edaa"
.DA #5,#4
.AS "Fdaa"
.DA #6,#4
.AS "F9aa"
.DA #7,#3
.AS "E9i"
E.SBC .HS 00
.DA #E.SEC-*
>PSTR "SEC"
.DA #255,#2
.AS "38"
E.SEC .HS 00
.DA #E.SED-*
>PSTR "SED"
.DA #255,#2
.AS "F8"
E.SED .HS 00
.DA #E.SEI-*
>PSTR "SEI"
.DA #255,#2
.AS "78"
E.SEI .HS 00
.DA #E.STA-*
>PSTR "STA"
.DA #0,#3
.AS "91a"
.DA #1,#3
.AS "81a"
.DA #2,#3
.AS "85a"
.DA #3,#3
.AS "95a"
.DA #4,#4
.AS "8Daa"
.DA #5,#4
.AS "9Daa"
.DA #6,#4
.AS "99aa"
E.STA .HS 00
.DA #E.STX-*
>PSTR "STX"
.DA #2,#3
.AS "86a"
.DA #10,#3
.AS "96a"
.DA #4,#4
.AS "8Eaa"
E.STX .HS 00
.DA #E.STY-*
>PSTR "STY"
.DA #2,#3
.AS "84a"
.DA #3,#3
.AS "94a"
.DA #4,#4
.AS "8Caa"
E.STY .HS 00
.DA #E.TAX-*
>PSTR "TAX"
.DA #255,#2
.AS "AA"
E.TAX .HS 00
.DA #E.TAY-*
>PSTR "TAY"
.DA #255,#2
.AS "A8"
E.TAY .HS 00
.DA #E.TSX-*
>PSTR "TSX"
.DA #255,#2
.AS "BA"
E.TSX .HS 00
.DA #E.TXA-*
>PSTR "TXA"
.DA #255,#2
.AS "8A"
E.TXA .HS 00
.DA #E.TXS-*
>PSTR "TXS"
.DA #255,#2
.AS "9A"
E.TXS .HS 00
.DA #E.TYA-*
>PSTR "TYA"
.DA #255,#2
.AS "98"
E.TYA .HS 00
.HS 00
*---------------------------------------
.LIST OFF
T.OPCODES .EQ *
ADC .DA ADC.E+1
.HS 03
.AS "ADC"
.HS 00.03373161
.HS 01.03363161
.HS 02.03363561
.HS 03.03373561
.HS 04.0436446161
.HS 05.0437446161
.HS 06.0437396161
.HS 07.03363969
ADC.E .HS 00
AND .DA AND.E+1
.HS 03
.AS "AND"
.HS 00.03333161
.HS 01.03323161
.HS 02.03323561
.HS 03.03333561
.HS 04.0432446161
.HS 05.0433446161
.HS 06.0433396161
.HS 07.03323969
AND.E .HS 00
ASL .DA ASL.E+1
.HS 03
.AS "ASL"
.HS 02.03303661
.HS 03.03313661
.HS 04.0430456161
.HS 05.0431456161
.HS FF.023041
ASL.E .HS 00
BCC .DA BCC.E+1
.HS 03
.AS "BCC"
.HS 08.03393072
BCC.E .HS 00
BCS .DA BCS.E+1
.HS 03
.AS "BCS"
.HS 08.03423072
BCS.E .HS 00
BEQ .DA BEQ.E+1
.HS 03
.AS "BEQ"
.HS 08.03463072
BEQ.E .HS 00
BIT .DA BIT.E+1
.HS 03
.AS "BIT"
.HS 02.03323461
.HS 04.0432436161
BIT.E .HS 00
BMI .DA BMI.E+1
.HS 03
.AS "BMI"
.HS 08.03333072
BMI.E .HS 00
BNE .DA BNE.E+1
.HS 03
.AS "BNE"
.HS 08.03443072
BNE.E .HS 00
BPL .DA BPL.E+1
.HS 03
.AS "BPL"
.HS 08.03313072
BPL.E .HS 00
BRK .DA BRK.E+1
.HS 03
.AS "BRK"
.HS FF.023030
BRK.E .HS 00
BVC .DA BVC.E+1
.HS 03
.AS "BVC"
.HS 08.03353072
BVC.E .HS 00
BVS .DA BVS.E+1
.HS 03
.AS "BVS"
.HS 08.03373072
BVS.E .HS 00
CLC .DA CLC.E+1
.HS 03
.AS "CLC"
.HS FF.023138
CLC.E .HS 00
CLD .DA CLD.E+1
.HS 03
.AS "CLD"
.HS FF.024438
CLD.E .HS 00
CLI .DA CLI.E+1
.HS 03
.AS "CLI"
.HS FF.023538
CLI.E .HS 00
CLV .DA CLV.E+1
.HS 03
.AS "CLV"
.HS FF.024238
CLV.E .HS 00
CMP .DA CMP.E+1
.HS 03
.AS "CMP"
.HS 00.03443161
.HS 01.03433161
.HS 02.03433561
.HS 03.03443561
.HS 04.0443446161
.HS 05.0444446161
.HS 06.0444396161
.HS 07.03433969
CMP.E .HS 00
CPX .DA CPX.E+1
.HS 03
.AS "CPX"
.HS 02.03453461
.HS 04.0445636161
.HS 07.03453069
CPX.E .HS 00
CPY .DA CPY.E+1
.HS 03
.AS "CPY"
.HS 02.03433461
.HS 04.0443636161
.HS 07.03433069
CPY.E .HS 00
DEC .DA DEC.E+1
.HS 03
.AS "DEC"
.HS 02.03433661
.HS 03.03443661
.HS 04.0443656161
.HS 05.0444656161
DEC.E .HS 00
DEX .DA DEX.E+1
.HS 03
.AS "DEX"
.HS FF.024341
DEX.E .HS 00
DEY .DA DEY.E+1
.HS 03
.AS "DEY"
.HS FF.023838
DEY.E .HS 00
EOR .DA EOR.E+1
.HS 03
.AS "EOR"
.HS 00.03353161
.HS 01.03343161
.HS 02.03343561
.HS 03.03353561
.HS 04.0434446161
.HS 05.0435446161
.HS 06.0435396161
.HS 07.03343969
EOR.E .HS 00
INC .DA INC.E+1
.HS 03
.AS "INC"
.HS 02.03453661
.HS 03.03463661
.HS 04.0445656161
.HS 05.0446656161
INC.E .HS 00
INX .DA INX.E+1
.HS 03
.AS "INX"
.HS FF.024538
INX.E .HS 00
INY .DA INY.E+1
.HS 03
.AS "INY"
.HS FF.024338
INY.E .HS 00
JMP .DA JMP.E+1
.HS 03
.AS "JMP"
.HS 09.0436436161
.HS 04.0434436161
JMP.E .HS 00
JSR .DA JSR.E+1
.HS 03
.AS "JSR"
.HS 04.0432306161
JSR.E .HS 00
LDA .DA LDA.E+1
.HS 03
.AS "LDA"
.HS 00.03423161
.HS 01.03413161
.HS 02.03413561
.HS 03.03423561
.HS 04.0441646161
.HS 05.0442646161
.HS 06.0442396161
.HS 07.03413969
LDA.E .HS 00
LDX .DA LDX.E+1
.HS 03
.AS "LDX"
.HS 02.03413661
.HS 0A.03423661
.HS 04.0441656161
.HS 06.0442656161
.HS 07.03413269
LDX.E .HS 00
LDY .DA LDY.E+1
.HS 03
.AS "LDY"
.HS 02.03413461
.HS 03.03423461
.HS 04.0441636161
.HS 05.0442636161
.HS 07.03413069
LDY.E .HS 00
LSR .DA LSR.E+1
.HS 03
.AS "LSR"
.HS 02.03343661
.HS 03.03353661
.HS 04.0434456161
.HS 05.0435456161
.HS FF.023441
LSR.E .HS 00
NOP .DA NOP.E+1
.HS 03
.AS "NOP"
.HS FF.024541
NOP.E .HS 00
ORA .DA ORA.E+1
.HS 03
.AS "ORA"
.HS 00.03313161
.HS 01.03303161
.HS 02.03303561
.HS 03.03313561
.HS 04.0430446161
.HS 05.0431446161
.HS 06.0431396161
.HS 07.03303969
ORA.E .HS 00
PHA .DA PHA.E+1
.HS 03
.AS "PHA"
.HS FF.023438
PHA.E .HS 00
PHP .DA PHP.E+1
.HS 03
.AS "PHP"
.HS FF.023038
PHP.E .HS 00
PLA .DA PLA.E+1
.HS 03
.AS "PLA"
.HS FF.023638
PLA.E .HS 00
PLP .DA PLP.E+1
.HS 03
.AS "PLP"
.HS FF.023238
PLP.E .HS 00
ROL .DA ROL.E+1
.HS 03
.AS "ROL"
.HS 02.03323661
.HS 03.03333661
.HS 04.0432456161
.HS 05.0433456161
.HS FF.023241
ROL.E .HS 00
ROR .DA ROR.E+1
.HS 03
.AS "ROR"
.HS 02.03363661
.HS 03.03373661
.HS 04.0436456161
.HS 05.0437456161
.HS FF.023641
ROR.E .HS 00
RTI .DA RTI.E+1
.HS 03
.AS "RTI"
.HS FF.023430
RTI.E .HS 00
RTS .DA RTS.E+1
.HS 03
.AS "RTS"
.HS FF.023630
RTS.E .HS 00
SBC .DA SBC.E+1
.HS 03
.AS "SBC"
.HS 00.03463161
.HS 01.03453161
.HS 02.03453561
.HS 03.03463561
.HS 04.0445646161
.HS 05.0446646161
.HS 06.0446396161
.HS 07.03453969
SBC.E .HS 00
SEC .DA SEC.E+1
.HS 03
.AS "SEC"
.HS FF.023338
SEC.E .HS 00
SED .DA SED.E+1
.HS 03
.AS "SED"
.HS FF.024638
SED.E .HS 00
SEI .DA SEI.E+1
.HS 03
.AS "SEI"
.HS FF.023738
SEI.E .HS 00
STA .DA STA.E+1
.HS 03
.AS "STA"
.HS 00.03393161
.HS 01.03383161
.HS 02.03383561
.HS 03.03393561
.HS 04.0438446161
.HS 05.0439446161
.HS 06.0439396161
STA.E .HS 00
STX .DA STX.E+1
.HS 03
.AS "STX"
.HS 02.03383661
.HS 0A.03393661
.HS 04.0438456161
STX.E .HS 00
STY .DA STY.E+1
.HS 03
.AS "STY"
.HS 02.03383461
.HS 03.03393461
.HS 04.0438436161
STY.E .HS 00
TAX .DA TAX.E+1
.HS 03
.AS "TAX"
.HS FF.024141
TAX.E .HS 00
TAY .DA TAY.E+1
.HS 03
.AS "TAY"
.HS FF.024138
TAY.E .HS 00
TSX .DA TSX.E+1
.HS 03
.AS "TSX"
.HS FF.024241
TSX.E .HS 00
TXA .DA TXA.E+1
.HS 03
.AS "TXA"
.HS FF.023841
TXA.E .HS 00
TXS .DA TXS.E+1
.HS 03
.AS "TXS"
.HS FF.023941
TXS.E .HS 00
TYA .DA TYA.E+1
.HS 03
.AS "TYA"
.HS FF.023938
TYA.E .HS 00
.HS 0000
MAN
SAVE BIN/ASM.T.6502.O
LOAD BIN/ASM.T.6502.S

View File

@ -3,40 +3,40 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OR $2000
.TF /A2OSX.BOOT/BIN/ASM.T.6502
.LIST OFF
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.6502
*---------------------------------------
.MA PSTR
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
*---------------------------------------
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>PSTR "(a),Y"
>PSTR "(a,X)"
>PSTR "a"
>PSTR "a,X"
>PSTR "aa"
>PSTR "aa,X"
>PSTR "aa,Y"
>PSTR "i"
>PSTR "r"
>PSTR "(aa)"
>PSTR "a,Y"
.HS 00
>ST "(a),Y"
>ST "(a,X)"
>ST "a"
>ST "a,X"
>ST "aa"
>ST "aa,X"
>ST "aa,Y"
>ST "i"
>ST "r"
>ST "(aa)"
>ST "a,Y"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>PSTR "Y"
>PSTR "X"
.HS 00
T.REGISTERS .EQ *
>ST "Y"
>ST "X"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.6502.O
.INB BIN/ASM.T.6502.O
*---------------------------------------
MAN
SAVE BIN/ASM.T.6502.S

File diff suppressed because it is too large Load Diff

View File

@ -3,52 +3,52 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OR $2000
.TF /A2OSX.BOOT/BIN/ASM.T.65816
.LIST OFF
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.65816
*---------------------------------------
.MA PSTR
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
*---------------------------------------
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>PSTR "(a)"
>PSTR "(a),Y"
>PSTR "(a,S),Y"
>PSTR "(a,X)"
>PSTR "[a]"
>PSTR "[a],Y"
>PSTR "a"
>PSTR "a,X"
>PSTR "aa"
>PSTR "aa,X"
>PSTR "aa,Y"
>PSTR "aaa"
>PSTR "aaa,X"
>PSTR "i"
>PSTR "a,S"
>PSTR "r"
>PSTR "rr"
>PSTR "(aa)"
>PSTR "(aa,X)"
>PSTR "[aa]"
>PSTR "a,Y"
>PSTR "a,a"
.HS 00
>ST "(a)"
>ST "(a),Y"
>ST "(a,S),Y"
>ST "(a,X)"
>ST "[a]"
>ST "[a],Y"
>ST "a"
>ST "a,X"
>ST "aa"
>ST "aa,X"
>ST "aa,Y"
>ST "aaa"
>ST "aaa,X"
>ST "i"
>ST "a,S"
>ST "r"
>ST "rr"
>ST "(aa)"
>ST "(aa,X)"
>ST "[aa]"
>ST "a,Y"
>ST "a,a"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>PSTR "Y"
>PSTR "S"
>PSTR "X"
.HS 00
T.REGISTERS .EQ *
>ST "Y"
>ST "S"
>ST "X"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.65816.O
.INB BIN/ASM.T.65816.O
*---------------------------------------
MAN
SAVE BIN/ASM.T.65816.S

View File

@ -3,559 +3,443 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
*---------------------------------------
T.OPCODES .EQ *
.DA #E.ADC-*
>PSTR "ADC"
.DA #0,#3
.AS "72a"
.DA #1,#3
.AS "71a"
.DA #2,#3
.AS "61a"
.DA #3,#3
.AS "65a"
.DA #4,#3
.AS "75a"
.DA #5,#4
.AS "6Daa"
.DA #6,#4
.AS "7Daa"
.DA #7,#4
.AS "79aa"
.DA #8,#3
.AS "69i"
E.ADC .HS 00
.DA #E.AND-*
>PSTR "AND"
.DA #0,#3
.AS "32a"
.DA #1,#3
.AS "31a"
.DA #2,#3
.AS "21a"
.DA #3,#3
.AS "25a"
.DA #4,#3
.AS "35a"
.DA #5,#4
.AS "2Daa"
.DA #6,#4
.AS "3Daa"
.DA #7,#4
.AS "39aa"
.DA #8,#3
.AS "29i"
E.AND .HS 00
.DA #E.ASL-*
>PSTR "ASL"
.DA #3,#3
.AS "06a"
.DA #4,#3
.AS "16a"
.DA #5,#4
.AS "0Eaa"
.DA #6,#4
.AS "1Eaa"
.DA #255,#2
.AS "0A"
E.ASL .HS 00
.DA #E.BCC-*
>PSTR "BCC"
.DA #9,#3
.AS "90r"
E.BCC .HS 00
.DA #E.BCS-*
>PSTR "BCS"
.DA #9,#3
.AS "B0r"
E.BCS .HS 00
.DA #E.BEQ-*
>PSTR "BEQ"
.DA #9,#3
.AS "F0r"
E.BEQ .HS 00
.DA #E.BIT-*
>PSTR "BIT"
.DA #3,#3
.AS "24a"
.DA #4,#3
.AS "34a"
.DA #5,#4
.AS "2Caa"
.DA #6,#4
.AS "3Caa"
.DA #8,#3
.AS "89i"
E.BIT .HS 00
.DA #E.BMI-*
>PSTR "BMI"
.DA #9,#3
.AS "30r"
E.BMI .HS 00
.DA #E.BNE-*
>PSTR "BNE"
.DA #9,#3
.AS "D0r"
E.BNE .HS 00
.DA #E.BPL-*
>PSTR "BPL"
.DA #9,#3
.AS "10r"
E.BPL .HS 00
.DA #E.BRA-*
>PSTR "BRA"
.DA #9,#3
.AS "80r"
E.BRA .HS 00
.DA #E.BRK-*
>PSTR "BRK"
.DA #255,#2
.AS "00"
E.BRK .HS 00
.DA #E.BVC-*
>PSTR "BVC"
.DA #9,#3
.AS "50r"
E.BVC .HS 00
.DA #E.BVS-*
>PSTR "BVS"
.DA #9,#3
.AS "70r"
E.BVS .HS 00
.DA #E.CLC-*
>PSTR "CLC"
.DA #255,#2
.AS "18"
E.CLC .HS 00
.DA #E.CLD-*
>PSTR "CLD"
.DA #255,#2
.AS "D8"
E.CLD .HS 00
.DA #E.CLI-*
>PSTR "CLI"
.DA #255,#2
.AS "58"
E.CLI .HS 00
.DA #E.CLV-*
>PSTR "CLV"
.DA #255,#2
.AS "B8"
E.CLV .HS 00
.DA #E.CMP-*
>PSTR "CMP"
.DA #0,#3
.AS "D2a"
.DA #1,#3
.AS "D1a"
.DA #2,#3
.AS "C1a"
.DA #3,#3
.AS "C5a"
.DA #4,#3
.AS "D5a"
.DA #5,#4
.AS "CDaa"
.DA #6,#4
.AS "DDaa"
.DA #7,#4
.AS "D9aa"
.DA #8,#3
.AS "C9i"
E.CMP .HS 00
.DA #E.CPX-*
>PSTR "CPX"
.DA #3,#3
.AS "E4a"
.DA #5,#4
.AS "Ecaa"
.DA #8,#3
.AS "E0i"
E.CPX .HS 00
.DA #E.CPY-*
>PSTR "CPY"
.DA #3,#3
.AS "C4a"
.DA #5,#4
.AS "Ccaa"
.DA #8,#3
.AS "C0i"
E.CPY .HS 00
.DA #E.DEC-*
>PSTR "DEC"
.DA #255,#2
.AS "3A"
.DA #3,#3
.AS "C6a"
.DA #4,#3
.AS "D6a"
.DA #5,#4
.AS "Ceaa"
.DA #6,#4
.AS "Deaa"
E.DEC .HS 00
.DA #E.DEX-*
>PSTR "DEX"
.DA #255,#2
.AS "CA"
E.DEX .HS 00
.DA #E.DEY-*
>PSTR "DEY"
.DA #255,#2
.AS "88"
E.DEY .HS 00
.DA #E.EOR-*
>PSTR "EOR"
.DA #0,#3
.AS "52a"
.DA #1,#3
.AS "51a"
.DA #2,#3
.AS "41a"
.DA #3,#3
.AS "45a"
.DA #4,#3
.AS "55a"
.DA #5,#4
.AS "4Daa"
.DA #6,#4
.AS "5Daa"
.DA #7,#4
.AS "59aa"
.DA #8,#3
.AS "49i"
E.EOR .HS 00
.DA #E.INC-*
>PSTR "INC"
.DA #255,#2
.AS "1A"
.DA #3,#3
.AS "E6a"
.DA #4,#3
.AS "F6a"
.DA #5,#4
.AS "Eeaa"
.DA #6,#4
.AS "Feaa"
E.INC .HS 00
.DA #E.INX-*
>PSTR "INX"
.DA #255,#2
.AS "E8"
E.INX .HS 00
.DA #E.INY-*
>PSTR "INY"
.DA #255,#2
.AS "C8"
E.INY .HS 00
.DA #E.JMP-*
>PSTR "JMP"
.DA #10,#4
.AS "6Caa"
.DA #11,#4
.AS "7Caa"
.DA #5,#4
.AS "4Caa"
E.JMP .HS 00
.DA #E.JSR-*
>PSTR "JSR"
.DA #5,#4
.AS "20aa"
E.JSR .HS 00
.DA #E.LDA-*
>PSTR "LDA"
.DA #0,#3
.AS "B2a"
.DA #1,#3
.AS "B1a"
.DA #2,#3
.AS "A1a"
.DA #3,#3
.AS "A5a"
.DA #4,#3
.AS "B5a"
.DA #5,#4
.AS "Adaa"
.DA #6,#4
.AS "Bdaa"
.DA #7,#4
.AS "B9aa"
.DA #8,#3
.AS "A9i"
E.LDA .HS 00
.DA #E.LDX-*
>PSTR "LDX"
.DA #3,#3
.AS "A6a"
.DA #12,#3
.AS "B6a"
.DA #5,#4
.AS "Aeaa"
.DA #7,#4
.AS "Beaa"
.DA #8,#3
.AS "A2i"
E.LDX .HS 00
.DA #E.LDY-*
>PSTR "LDY"
.DA #3,#3
.AS "A4a"
.DA #4,#3
.AS "B4a"
.DA #5,#4
.AS "Acaa"
.DA #6,#4
.AS "Bcaa"
.DA #8,#3
.AS "A0i"
E.LDY .HS 00
.DA #E.LSR-*
>PSTR "LSR"
.DA #3,#3
.AS "46a"
.DA #4,#3
.AS "56a"
.DA #5,#4
.AS "4Eaa"
.DA #6,#4
.AS "5Eaa"
.DA #255,#2
.AS "4A"
E.LSR .HS 00
.DA #E.NOP-*
>PSTR "NOP"
.DA #255,#2
.AS "EA"
E.NOP .HS 00
.DA #E.ORA-*
>PSTR "ORA"
.DA #0,#3
.AS "12a"
.DA #1,#3
.AS "11a"
.DA #2,#3
.AS "01a"
.DA #3,#3
.AS "05a"
.DA #4,#3
.AS "15a"
.DA #5,#4
.AS "0Daa"
.DA #6,#4
.AS "1Daa"
.DA #7,#4
.AS "19aa"
.DA #8,#3
.AS "09i"
E.ORA .HS 00
.DA #E.PHA-*
>PSTR "PHA"
.DA #255,#2
.AS "48"
E.PHA .HS 00
.DA #E.PHP-*
>PSTR "PHP"
.DA #255,#2
.AS "08"
E.PHP .HS 00
.DA #E.PHX-*
>PSTR "PHX"
.DA #255,#2
.AS "DA"
E.PHX .HS 00
.DA #E.PHY-*
>PSTR "PHY"
.DA #255,#2
.AS "5A"
E.PHY .HS 00
.DA #E.PLA-*
>PSTR "PLA"
.DA #255,#2
.AS "68"
E.PLA .HS 00
.DA #E.PLP-*
>PSTR "PLP"
.DA #255,#2
.AS "28"
E.PLP .HS 00
.DA #E.PLX-*
>PSTR "PLX"
.DA #255,#2
.AS "FA"
E.PLX .HS 00
.DA #E.PLY-*
>PSTR "PLY"
.DA #255,#2
.AS "7A"
E.PLY .HS 00
.DA #E.ROL-*
>PSTR "ROL"
.DA #3,#3
.AS "26a"
.DA #4,#3
.AS "36a"
.DA #5,#4
.AS "2Eaa"
.DA #6,#4
.AS "3Eaa"
.DA #255,#2
.AS "2A"
E.ROL .HS 00
.DA #E.ROR-*
>PSTR "ROR"
.DA #3,#3
.AS "66a"
.DA #4,#3
.AS "76a"
.DA #5,#4
.AS "6Eaa"
.DA #6,#4
.AS "7Eaa"
.DA #255,#2
.AS "6A"
E.ROR .HS 00
.DA #E.RTI-*
>PSTR "RTI"
.DA #255,#2
.AS "40"
E.RTI .HS 00
.DA #E.RTS-*
>PSTR "RTS"
.DA #255,#2
.AS "60"
E.RTS .HS 00
.DA #E.SBC-*
>PSTR "SBC"
.DA #0,#3
.AS "F2a"
.DA #1,#3
.AS "F1a"
.DA #2,#3
.AS "E1a"
.DA #3,#3
.AS "E5a"
.DA #4,#3
.AS "F5a"
.DA #5,#4
.AS "Edaa"
.DA #6,#4
.AS "Fdaa"
.DA #7,#4
.AS "F9aa"
.DA #8,#3
.AS "E9i"
E.SBC .HS 00
.DA #E.SEC-*
>PSTR "SEC"
.DA #255,#2
.AS "38"
E.SEC .HS 00
.DA #E.SED-*
>PSTR "SED"
.DA #255,#2
.AS "F8"
E.SED .HS 00
.DA #E.SEI-*
>PSTR "SEI"
.DA #255,#2
.AS "78"
E.SEI .HS 00
.DA #E.STA-*
>PSTR "STA"
.DA #0,#3
.AS "92a"
.DA #1,#3
.AS "91a"
.DA #2,#3
.AS "81a"
.DA #3,#3
.AS "85a"
.DA #4,#3
.AS "95a"
.DA #5,#4
.AS "8Daa"
.DA #6,#4
.AS "9Daa"
.DA #7,#4
.AS "99aa"
E.STA .HS 00
.DA #E.STX-*
>PSTR "STX"
.DA #3,#3
.AS "86a"
.DA #12,#3
.AS "96a"
.DA #5,#4
.AS "8Eaa"
E.STX .HS 00
.DA #E.STY-*
>PSTR "STY"
.DA #3,#3
.AS "84a"
.DA #4,#3
.AS "94a"
.DA #5,#4
.AS "8Caa"
E.STY .HS 00
.DA #E.STZ-*
>PSTR "STZ"
.DA #3,#3
.AS "64a"
.DA #4,#3
.AS "74a"
.DA #5,#4
.AS "9Caa"
.DA #6,#4
.AS "9Eaa"
E.STZ .HS 00
.DA #E.TAX-*
>PSTR "TAX"
.DA #255,#2
.AS "AA"
E.TAX .HS 00
.DA #E.TAY-*
>PSTR "TAY"
.DA #255,#2
.AS "A8"
E.TAY .HS 00
.DA #E.TRB-*
>PSTR "TRB"
.DA #3,#3
.AS "14a"
.DA #5,#4
.AS "1Caa"
E.TRB .HS 00
.DA #E.TSB-*
>PSTR "TSB"
.DA #3,#3
.AS "04a"
.DA #5,#4
.AS "0Caa"
E.TSB .HS 00
.DA #E.TSX-*
>PSTR "TSX"
.DA #255,#2
.AS "BA"
E.TSX .HS 00
.DA #E.TXA-*
>PSTR "TXA"
.DA #255,#2
.AS "8A"
E.TXA .HS 00
.DA #E.TXS-*
>PSTR "TXS"
.DA #255,#2
.AS "9A"
E.TXS .HS 00
.DA #E.TYA-*
>PSTR "TYA"
.DA #255,#2
.AS "98"
E.TYA .HS 00
.HS 00
*---------------------------------------
.LIST OFF
T.OPCODES .EQ *
ADC .DA ADC.E+1
.HS 03
.AS "ADC"
.HS 00.03373261
.HS 01.03373161
.HS 02.03363161
.HS 03.03363561
.HS 04.03373561
.HS 05.0436446161
.HS 06.0437446161
.HS 07.0437396161
.HS 08.03363969
ADC.E .HS 00
AND .DA AND.E+1
.HS 03
.AS "AND"
.HS 00.03333261
.HS 01.03333161
.HS 02.03323161
.HS 03.03323561
.HS 04.03333561
.HS 05.0432446161
.HS 06.0433446161
.HS 07.0433396161
.HS 08.03323969
AND.E .HS 00
ASL .DA ASL.E+1
.HS 03
.AS "ASL"
.HS 03.03303661
.HS 04.03313661
.HS 05.0430456161
.HS 06.0431456161
.HS FF.023041
ASL.E .HS 00
BCC .DA BCC.E+1
.HS 03
.AS "BCC"
.HS 09.03393072
BCC.E .HS 00
BCS .DA BCS.E+1
.HS 03
.AS "BCS"
.HS 09.03423072
BCS.E .HS 00
BEQ .DA BEQ.E+1
.HS 03
.AS "BEQ"
.HS 09.03463072
BEQ.E .HS 00
BIT .DA BIT.E+1
.HS 03
.AS "BIT"
.HS 03.03323461
.HS 04.03333461
.HS 05.0432436161
.HS 06.0433436161
.HS 08.03383969
BIT.E .HS 00
BMI .DA BMI.E+1
.HS 03
.AS "BMI"
.HS 09.03333072
BMI.E .HS 00
BNE .DA BNE.E+1
.HS 03
.AS "BNE"
.HS 09.03443072
BNE.E .HS 00
BPL .DA BPL.E+1
.HS 03
.AS "BPL"
.HS 09.03313072
BPL.E .HS 00
BRA .DA BRA.E+1
.HS 03
.AS "BRA"
.HS 09.03383072
BRA.E .HS 00
BRK .DA BRK.E+1
.HS 03
.AS "BRK"
.HS FF.023030
BRK.E .HS 00
BVC .DA BVC.E+1
.HS 03
.AS "BVC"
.HS 09.03353072
BVC.E .HS 00
BVS .DA BVS.E+1
.HS 03
.AS "BVS"
.HS 09.03373072
BVS.E .HS 00
CLC .DA CLC.E+1
.HS 03
.AS "CLC"
.HS FF.023138
CLC.E .HS 00
CLD .DA CLD.E+1
.HS 03
.AS "CLD"
.HS FF.024438
CLD.E .HS 00
CLI .DA CLI.E+1
.HS 03
.AS "CLI"
.HS FF.023538
CLI.E .HS 00
CLV .DA CLV.E+1
.HS 03
.AS "CLV"
.HS FF.024238
CLV.E .HS 00
CMP .DA CMP.E+1
.HS 03
.AS "CMP"
.HS 00.03443261
.HS 01.03443161
.HS 02.03433161
.HS 03.03433561
.HS 04.03443561
.HS 05.0443446161
.HS 06.0444446161
.HS 07.0444396161
.HS 08.03433969
CMP.E .HS 00
CPX .DA CPX.E+1
.HS 03
.AS "CPX"
.HS 03.03453461
.HS 05.0445636161
.HS 08.03453069
CPX.E .HS 00
CPY .DA CPY.E+1
.HS 03
.AS "CPY"
.HS 03.03433461
.HS 05.0443636161
.HS 08.03433069
CPY.E .HS 00
DEC .DA DEC.E+1
.HS 03
.AS "DEC"
.HS FF.023341
.HS 03.03433661
.HS 04.03443661
.HS 05.0443656161
.HS 06.0444656161
DEC.E .HS 00
DEX .DA DEX.E+1
.HS 03
.AS "DEX"
.HS FF.024341
DEX.E .HS 00
DEY .DA DEY.E+1
.HS 03
.AS "DEY"
.HS FF.023838
DEY.E .HS 00
EOR .DA EOR.E+1
.HS 03
.AS "EOR"
.HS 00.03353261
.HS 01.03353161
.HS 02.03343161
.HS 03.03343561
.HS 04.03353561
.HS 05.0434446161
.HS 06.0435446161
.HS 07.0435396161
.HS 08.03343969
EOR.E .HS 00
INC .DA INC.E+1
.HS 03
.AS "INC"
.HS FF.023141
.HS 03.03453661
.HS 04.03463661
.HS 05.0445656161
.HS 06.0446656161
INC.E .HS 00
INX .DA INX.E+1
.HS 03
.AS "INX"
.HS FF.024538
INX.E .HS 00
INY .DA INY.E+1
.HS 03
.AS "INY"
.HS FF.024338
INY.E .HS 00
JMP .DA JMP.E+1
.HS 03
.AS "JMP"
.HS 0A.0436436161
.HS 0B.0437436161
.HS 05.0434436161
JMP.E .HS 00
JSR .DA JSR.E+1
.HS 03
.AS "JSR"
.HS 05.0432306161
JSR.E .HS 00
LDA .DA LDA.E+1
.HS 03
.AS "LDA"
.HS 00.03423261
.HS 01.03423161
.HS 02.03413161
.HS 03.03413561
.HS 04.03423561
.HS 05.0441646161
.HS 06.0442646161
.HS 07.0442396161
.HS 08.03413969
LDA.E .HS 00
LDX .DA LDX.E+1
.HS 03
.AS "LDX"
.HS 03.03413661
.HS 0C.03423661
.HS 05.0441656161
.HS 07.0442656161
.HS 08.03413269
LDX.E .HS 00
LDY .DA LDY.E+1
.HS 03
.AS "LDY"
.HS 03.03413461
.HS 04.03423461
.HS 05.0441636161
.HS 06.0442636161
.HS 08.03413069
LDY.E .HS 00
LSR .DA LSR.E+1
.HS 03
.AS "LSR"
.HS 03.03343661
.HS 04.03353661
.HS 05.0434456161
.HS 06.0435456161
.HS FF.023441
LSR.E .HS 00
NOP .DA NOP.E+1
.HS 03
.AS "NOP"
.HS FF.024541
NOP.E .HS 00
ORA .DA ORA.E+1
.HS 03
.AS "ORA"
.HS 00.03313261
.HS 01.03313161
.HS 02.03303161
.HS 03.03303561
.HS 04.03313561
.HS 05.0430446161
.HS 06.0431446161
.HS 07.0431396161
.HS 08.03303969
ORA.E .HS 00
PHA .DA PHA.E+1
.HS 03
.AS "PHA"
.HS FF.023438
PHA.E .HS 00
PHP .DA PHP.E+1
.HS 03
.AS "PHP"
.HS FF.023038
PHP.E .HS 00
PHX .DA PHX.E+1
.HS 03
.AS "PHX"
.HS FF.024441
PHX.E .HS 00
PHY .DA PHY.E+1
.HS 03
.AS "PHY"
.HS FF.023541
PHY.E .HS 00
PLA .DA PLA.E+1
.HS 03
.AS "PLA"
.HS FF.023638
PLA.E .HS 00
PLP .DA PLP.E+1
.HS 03
.AS "PLP"
.HS FF.023238
PLP.E .HS 00
PLX .DA PLX.E+1
.HS 03
.AS "PLX"
.HS FF.024641
PLX.E .HS 00
PLY .DA PLY.E+1
.HS 03
.AS "PLY"
.HS FF.023741
PLY.E .HS 00
ROL .DA ROL.E+1
.HS 03
.AS "ROL"
.HS 03.03323661
.HS 04.03333661
.HS 05.0432456161
.HS 06.0433456161
.HS FF.023241
ROL.E .HS 00
ROR .DA ROR.E+1
.HS 03
.AS "ROR"
.HS 03.03363661
.HS 04.03373661
.HS 05.0436456161
.HS 06.0437456161
.HS FF.023641
ROR.E .HS 00
RTI .DA RTI.E+1
.HS 03
.AS "RTI"
.HS FF.023430
RTI.E .HS 00
RTS .DA RTS.E+1
.HS 03
.AS "RTS"
.HS FF.023630
RTS.E .HS 00
SBC .DA SBC.E+1
.HS 03
.AS "SBC"
.HS 00.03463261
.HS 01.03463161
.HS 02.03453161
.HS 03.03453561
.HS 04.03463561
.HS 05.0445646161
.HS 06.0446646161
.HS 07.0446396161
.HS 08.03453969
SBC.E .HS 00
SEC .DA SEC.E+1
.HS 03
.AS "SEC"
.HS FF.023338
SEC.E .HS 00
SED .DA SED.E+1
.HS 03
.AS "SED"
.HS FF.024638
SED.E .HS 00
SEI .DA SEI.E+1
.HS 03
.AS "SEI"
.HS FF.023738
SEI.E .HS 00
STA .DA STA.E+1
.HS 03
.AS "STA"
.HS 00.03393261
.HS 01.03393161
.HS 02.03383161
.HS 03.03383561
.HS 04.03393561
.HS 05.0438446161
.HS 06.0439446161
.HS 07.0439396161
STA.E .HS 00
STX .DA STX.E+1
.HS 03
.AS "STX"
.HS 03.03383661
.HS 0C.03393661
.HS 05.0438456161
STX.E .HS 00
STY .DA STY.E+1
.HS 03
.AS "STY"
.HS 03.03383461
.HS 04.03393461
.HS 05.0438436161
STY.E .HS 00
STZ .DA STZ.E+1
.HS 03
.AS "STZ"
.HS 03.03363461
.HS 04.03373461
.HS 05.0439436161
.HS 06.0439456161
STZ.E .HS 00
TAX .DA TAX.E+1
.HS 03
.AS "TAX"
.HS FF.024141
TAX.E .HS 00
TAY .DA TAY.E+1
.HS 03
.AS "TAY"
.HS FF.024138
TAY.E .HS 00
TRB .DA TRB.E+1
.HS 03
.AS "TRB"
.HS 03.03313461
.HS 05.0431436161
TRB.E .HS 00
TSB .DA TSB.E+1
.HS 03
.AS "TSB"
.HS 03.03303461
.HS 05.0430436161
TSB.E .HS 00
TSX .DA TSX.E+1
.HS 03
.AS "TSX"
.HS FF.024241
TSX.E .HS 00
TXA .DA TXA.E+1
.HS 03
.AS "TXA"
.HS FF.023841
TXA.E .HS 00
TXS .DA TXS.E+1
.HS 03
.AS "TXS"
.HS FF.023941
TXS.E .HS 00
TYA .DA TYA.E+1
.HS 03
.AS "TYA"
.HS FF.023938
TYA.E .HS 00
.HS 0000
MAN
SAVE BIN/ASM.T.65C02.O
LOAD BIN/ASM.T.65C02.S

View File

@ -3,42 +3,42 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OR $2000
.TF /A2OSX.BOOT/BIN/ASM.T.65C02
.LIST OFF
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.65C02
*---------------------------------------
.MA PSTR
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
*---------------------------------------
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>PSTR "(a)"
>PSTR "(a),Y"
>PSTR "(a,X)"
>PSTR "a"
>PSTR "a,X"
>PSTR "aa"
>PSTR "aa,X"
>PSTR "aa,Y"
>PSTR "i"
>PSTR "r"
>PSTR "(aa)"
>PSTR "(aa,x)"
>PSTR "a,Y"
.HS 00
>ST "(a)"
>ST "(a),Y"
>ST "(a,X)"
>ST "a"
>ST "a,X"
>ST "aa"
>ST "aa,X"
>ST "aa,Y"
>ST "i"
>ST "r"
>ST "(aa)"
>ST "(aa,x)"
>ST "a,Y"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>PSTR "Y"
>PSTR "X"
.HS 00
T.REGISTERS .EQ *
>ST "Y"
>ST "X"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.65C02.O
.INB BIN/ASM.T.65C02.O
*---------------------------------------
MAN
SAVE BIN/ASM.T.65C02.S

File diff suppressed because it is too large Load Diff

View File

@ -3,43 +3,43 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OR $2000
.TF /A2OSX.BOOT/BIN/ASM.T.65R02
.LIST OFF
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.65R02
*---------------------------------------
.MA PSTR
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
*---------------------------------------
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>PSTR "(a)"
>PSTR "(a),Y"
>PSTR "(a,X)"
>PSTR "a"
>PSTR "a,X"
>PSTR "aa"
>PSTR "aa,X"
>PSTR "aa,Y"
>PSTR "i"
>PSTR "a,r"
>PSTR "r"
>PSTR "(aa)"
>PSTR "(aa,x)"
>PSTR "a,Y"
.HS 00
>ST "(a)"
>ST "(a),Y"
>ST "(a,X)"
>ST "a"
>ST "a,X"
>ST "aa"
>ST "aa,X"
>ST "aa,Y"
>ST "i"
>ST "a,r"
>ST "r"
>ST "(aa)"
>ST "(aa,x)"
>ST "a,Y"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>PSTR "Y"
>PSTR "X"
.HS 00
T.REGISTERS .EQ *
>ST "Y"
>ST "X"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.65R02.O
.INB BIN/ASM.T.65R02.O
*---------------------------------------
MAN
SAVE BIN/ASM.T.65R02.S

File diff suppressed because it is too large Load Diff

View File

@ -3,43 +3,43 @@ PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OR $2000
.TF /A2OSX.BOOT/BIN/ASM.T.65W02
.LIST OFF
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.65W02
*---------------------------------------
.MA PSTR
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
*---------------------------------------
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>PSTR "(a)"
>PSTR "(a),Y"
>PSTR "(a,X)"
>PSTR "a"
>PSTR "a,X"
>PSTR "aa"
>PSTR "aa,X"
>PSTR "aa,Y"
>PSTR "i"
>PSTR "a,r"
>PSTR "r"
>PSTR "(aa)"
>PSTR "(aa,x)"
>PSTR "a,Y"
.HS 00
>ST "(a)"
>ST "(a),Y"
>ST "(a,X)"
>ST "a"
>ST "a,X"
>ST "aa"
>ST "aa,X"
>ST "aa,Y"
>ST "i"
>ST "a,r"
>ST "r"
>ST "(aa)"
>ST "(aa,x)"
>ST "a,Y"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>PSTR "Y"
>PSTR "X"
.HS 00
T.REGISTERS .EQ *
>ST "Y"
>ST "X"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.65W02.O
.INB BIN/ASM.T.65W02.O
*---------------------------------------
MAN
SAVE BIN/ASM.T.65W02.S

369
BIN/ASM.T.SW16.O.txt Normal file
View File

@ -0,0 +1,369 @@
PR# 3
PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
T.OPCODES .EQ *
ADD .DA ADD.E+1
.HS 03
.AS "ADD"
.HS 00.024130
.HS 01.024131
.HS 02.024132
.HS 03.024133
.HS 04.024134
.HS 05.024135
.HS 06.024136
.HS 07.024137
.HS 08.024138
.HS 09.024139
.HS 0A.024141
.HS 0B.024142
.HS 0C.024143
.HS 0D.024144
.HS 0E.024145
.HS 0F.024146
ADD.E .HS 00
BC .DA BC.E+1
.HS 02
.AS "BC"
.HS 10.03303372
BC.E .HS 00
BK .DA BK.E+1
.HS 02
.AS "BK"
.HS FF.023041
BK.E .HS 00
BM .DA BM.E+1
.HS 02
.AS "BM"
.HS 10.03303572
BM.E .HS 00
BM1 .DA BM1.E+1
.HS 03
.AS "BM1"
.HS 10.03303872
BM1.E .HS 00
BNC .DA BNC.E+1
.HS 03
.AS "BNC"
.HS 10.03303272
BNC.E .HS 00
BNM1 .DA BNM1.E+1
.HS 04
.AS "BNM1"
.HS 10.03303972
BNM1.E .HS 00
BNZ .DA BNZ.E+1
.HS 03
.AS "BNZ"
.HS 10.03303772
BNZ.E .HS 00
BP .DA BP.E+1
.HS 02
.AS "BP"
.HS 10.03303472
BP.E .HS 00
BR .DA BR.E+1
.HS 02
.AS "BR"
.HS 10.03303172
BR.E .HS 00
BS .DA BS.E+1
.HS 02
.AS "BS"
.HS 10.03304472
BS.E .HS 00
BZ .DA BZ.E+1
.HS 02
.AS "BZ"
.HS 10.03303672
BZ.E .HS 00
CPR .DA CPR.E+1
.HS 03
.AS "CPR"
.HS 00.024430
.HS 01.024431
.HS 02.024432
.HS 03.024433
.HS 04.024434
.HS 05.024435
.HS 06.024436
.HS 07.024437
.HS 08.024438
.HS 09.024439
.HS 0A.024441
.HS 0B.024442
.HS 0C.024443
.HS 0D.024444
.HS 0E.024445
.HS 0F.024446
CPR.E .HS 00
DCR .DA DCR.E+1
.HS 03
.AS "DCR"
.HS 00.024630
.HS 01.024631
.HS 02.024632
.HS 03.024633
.HS 04.024634
.HS 05.024635
.HS 06.024636
.HS 07.024637
.HS 08.024638
.HS 09.024639
.HS 0A.024641
.HS 0B.024642
.HS 0C.024643
.HS 0D.024644
.HS 0E.024645
.HS 0F.024646
DCR.E .HS 00
INR .DA INR.E+1
.HS 03
.AS "INR"
.HS 00.024530
.HS 01.024531
.HS 02.024532
.HS 03.024533
.HS 04.024534
.HS 05.024535
.HS 06.024536
.HS 07.024537
.HS 08.024538
.HS 09.024539
.HS 0A.024541
.HS 0B.024542
.HS 0C.024543
.HS 0D.024544
.HS 0E.024545
.HS 0F.024546
INR.E .HS 00
LD .DA LD.E+1
.HS 02
.AS "LD"
.HS 00.023230
.HS 01.023231
.HS 02.023232
.HS 03.023233
.HS 04.023234
.HS 05.023235
.HS 06.023236
.HS 07.023237
.HS 08.023238
.HS 09.023239
.HS 0A.023241
.HS 0B.023242
.HS 0C.023243
.HS 0D.023244
.HS 0E.023245
.HS 0F.023246
.HS 11.023430
.HS 12.023431
.HS 13.023432
.HS 14.023433
.HS 15.023434
.HS 16.023435
.HS 17.023436
.HS 18.023437
.HS 19.023438
.HS 1A.023439
.HS 1B.023441
.HS 1C.023442
.HS 1D.023443
.HS 1E.023444
.HS 1F.023445
.HS 20.023446
LD.E .HS 00
LDD .DA LDD.E+1
.HS 03
.AS "LDD"
.HS 11.023630
.HS 12.023631
.HS 13.023632
.HS 14.023633
.HS 15.023634
.HS 16.023635
.HS 17.023636
.HS 18.023637
.HS 19.023638
.HS 1A.023639
.HS 1B.023641
.HS 1C.023642
.HS 1D.023643
.HS 1E.023644
.HS 1F.023645
.HS 20.023646
LDD.E .HS 00
POP .DA POP.E+1
.HS 03
.AS "POP"
.HS 11.023830
.HS 12.023831
.HS 13.023832
.HS 14.023833
.HS 15.023834
.HS 16.023835
.HS 17.023836
.HS 18.023837
.HS 19.023838
.HS 1A.023839
.HS 1B.023841
.HS 1C.023842
.HS 1D.023843
.HS 1E.023844
.HS 1F.023845
.HS 20.023846
POP.E .HS 00
POPD .DA POPD.E+1
.HS 04
.AS "POPD"
.HS 11.024330
.HS 12.024331
.HS 13.024332
.HS 14.024333
.HS 15.024334
.HS 16.024335
.HS 17.024336
.HS 18.024337
.HS 19.024338
.HS 1A.024339
.HS 1B.024341
.HS 1C.024342
.HS 1D.024343
.HS 1E.024344
.HS 1F.024345
.HS 20.024346
POPD.E .HS 00
RS .DA RS.E+1
.HS 02
.AS "RS"
.HS FF.023042
RS.E .HS 00
RTN .DA RTN.E+1
.HS 03
.AS "RTN"
.HS FF.03303072
RTN.E .HS 00
SET .DA SET.E+1
.HS 03
.AS "SET"
.HS 00.023130
.HS 01.023131
.HS 02.023132
.HS 03.023133
.HS 04.023134
.HS 05.023135
.HS 06.023136
.HS 07.023137
.HS 08.023138
.HS 09.023139
.HS 0A.023141
.HS 0B.023142
.HS 0C.023143
.HS 0D.023144
.HS 0E.023145
.HS 0F.023144
SET.E .HS 00
ST .DA ST.E+1
.HS 02
.AS "ST"
.HS 00.023330
.HS 01.023331
.HS 02.023332
.HS 03.023333
.HS 04.023334
.HS 05.023335
.HS 06.023336
.HS 07.023337
.HS 08.023338
.HS 09.023339
.HS 0A.023341
.HS 0B.023342
.HS 0C.023343
.HS 0D.023344
.HS 0E.023345
.HS 0F.023346
.HS 11.023530
.HS 12.023531
.HS 13.023532
.HS 14.023533
.HS 15.023534
.HS 16.023535
.HS 17.023536
.HS 18.023537
.HS 19.023538
.HS 1A.023539
.HS 1B.023541
.HS 1C.023542
.HS 1D.023543
.HS 1E.023544
.HS 1F.023545
.HS 20.023546
ST.E .HS 00
STD .DA STD.E+1
.HS 03
.AS "STD"
.HS 11.023730
.HS 12.023731
.HS 13.023732
.HS 14.023733
.HS 15.023734
.HS 16.023735
.HS 17.023736
.HS 18.023737
.HS 19.023738
.HS 1A.023739
.HS 1B.023741
.HS 1C.023742
.HS 1D.023743
.HS 1E.023744
.HS 1F.023745
.HS 20.023746
STD.E .HS 00
STP .DA STP.E+1
.HS 03
.AS "STP"
.HS 11.023930
.HS 12.023931
.HS 13.023932
.HS 14.023933
.HS 15.023934
.HS 16.023935
.HS 17.023936
.HS 18.023937
.HS 19.023938
.HS 1A.023939
.HS 1B.023941
.HS 1C.023942
.HS 1D.023943
.HS 1E.023944
.HS 1F.023945
.HS 20.023946
STP.E .HS 00
SUB .DA SUB.E+1
.HS 03
.AS "SUB"
.HS 00.024230
.HS 01.024231
.HS 02.024232
.HS 03.024233
.HS 04.024234
.HS 05.024235
.HS 06.024236
.HS 07.024237
.HS 08.024238
.HS 09.024239
.HS 0A.024241
.HS 0B.024242
.HS 0C.024243
.HS 0D.024244
.HS 0E.024245
.HS 0F.024246
SUB.E .HS 00
.HS 0000
MAN
SAVE BIN/ASM.T.SW16.O
LOAD BIN/ASM.T.SW16.S
ASM

64
BIN/ASM.T.SW16.S.txt Normal file
View File

@ -0,0 +1,64 @@
PR# 3
PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.SW16
*---------------------------------------
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
.EM
*---------------------------------------
.DA T.ADDR.MODES
.DA T.REGISTERS
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>ST "R0"
>ST "R1"
>ST "R2"
>ST "R3"
>ST "R4"
>ST "R5"
>ST "R6"
>ST "R7"
>ST "R8"
>ST "R9"
>ST "R10"
>ST "R11"
>ST "R12"
>ST "R13"
>ST "R14"
>ST "R15"
>ST "r"
>ST "@R0"
>ST "@R1"
>ST "@R2"
>ST "@R3"
>ST "@R4"
>ST "@R5"
>ST "@R6"
>ST "@R7"
>ST "@R8"
>ST "@R9"
>ST "@R10"
>ST "@R11"
>ST "@R12"
>ST "@R13"
>ST "@R14"
>ST "@R15"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>ST "R"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.SW16.O
*---------------------------------------
MAN
SAVE BIN/ASM.T.SW16.S
ASM

File diff suppressed because it is too large Load Diff

View File

@ -4,10 +4,10 @@ NEW
INC 1
AUTO 6
.LIST OFF
.OR $2000
.OR $0
.TF /A2OSX.BOOT/BIN/ASM.T.Z80
*---------------------------------------
.MA PSTR
.MA ST
.DA #:1-*-1
.AS "]1"
:1 .EQ *
@ -18,211 +18,211 @@ AUTO 6
.DA T.OPCODES
*---------------------------------------
T.ADDR.MODES .EQ *
>PSTR "A,(HL)"
>PSTR "A,(IX+a)"
>PSTR "A,(IY+a)"
>PSTR "A,A"
>PSTR "A,a"
>PSTR "A,B"
>PSTR "A,C"
>PSTR "A,D"
>PSTR "A,E"
>PSTR "A,H"
>PSTR "A,L"
>PSTR "HL,BC"
>PSTR "HL,DE"
>PSTR "HL,HL"
>PSTR "HL,SP"
>PSTR "IX,BC"
>PSTR "IX,DE"
>PSTR "IX,IX"
>PSTR "IX,SP"
>PSTR "IY,BC"
>PSTR "IY,DE"
>PSTR "IY,IY"
>PSTR "IY,SP"
>PSTR "(HL)"
>PSTR "(IX+a)"
>PSTR "(IY+a)"
>PSTR "A"
>PSTR "a"
>PSTR "B"
>PSTR "C"
>PSTR "D"
>PSTR "E"
>PSTR "H"
>PSTR "L"
>PSTR "aa"
>PSTR "BC"
>PSTR "DE"
>PSTR "HL"
>PSTR "IX"
>PSTR "IY"
>PSTR "SP"
>PSTR "r"
>PSTR "(SP),HL"
>PSTR "(SP),IX"
>PSTR "(SP),IY"
>PSTR "DE,HL"
>PSTR "A,(a)"
>PSTR "A,(C)"
>PSTR "B,(C)"
>PSTR "C,(C)"
>PSTR "D,(C)"
>PSTR "E,(C)"
>PSTR "H,(C)"
>PSTR "L,(C)"
>PSTR "(IX)"
>PSTR "(IY)"
>PSTR "(aa),A"
>PSTR "(aa),BC"
>PSTR "(aa),DE"
>PSTR "(aa),HL"
>PSTR "(aa),IX"
>PSTR "(aa),IY"
>PSTR "(aa),SP"
>PSTR "(BC),A"
>PSTR "(DE),A"
>PSTR "(HL),A"
>PSTR "(HL),a"
>PSTR "(HL),B"
>PSTR "(HL),C"
>PSTR "(HL),D"
>PSTR "(HL),E"
>PSTR "(HL),H"
>PSTR "(HL),L"
>PSTR "(IX+a),A"
>PSTR "(IX+a),a"
>PSTR "(IX+a),B"
>PSTR "(IX+a),C"
>PSTR "(IX+a),D"
>PSTR "(IX+a),E"
>PSTR "(IX+a),H"
>PSTR "(IX+a),L"
>PSTR "(IY+a),A"
>PSTR "(IY+a),a"
>PSTR "(IY+a),B"
>PSTR "(IY+a),C"
>PSTR "(IY+a),D"
>PSTR "(IY+a),E"
>PSTR "(IY+a),H"
>PSTR "(IY+a),L"
>PSTR "A,(aa)"
>PSTR "A,(BC)"
>PSTR "A,(DE)"
>PSTR "A,I"
>PSTR "A,R"
>PSTR "B,(HL)"
>PSTR "B,(IX+a)"
>PSTR "B,(IY+a)"
>PSTR "B,A"
>PSTR "B,a"
>PSTR "B,B"
>PSTR "B,C"
>PSTR "B,D"
>PSTR "B,E"
>PSTR "B,H"
>PSTR "B,L"
>PSTR "BC,(aa)"
>PSTR "BC,aa"
>PSTR "C,(HL)"
>PSTR "C,(IX+a)"
>PSTR "C,(IY+a)"
>PSTR "C,A"
>PSTR "C,a"
>PSTR "C,B"
>PSTR "C,C"
>PSTR "C,D"
>PSTR "C,E"
>PSTR "C,H"
>PSTR "C,L"
>PSTR "D,(HL)"
>PSTR "D,(IX+a)"
>PSTR "D,(IY+a)"
>PSTR "D,A"
>PSTR "D,a"
>PSTR "D,B"
>PSTR "D,C"
>PSTR "D,D"
>PSTR "D,E"
>PSTR "D,H"
>PSTR "D,L"
>PSTR "DE,(aa)"
>PSTR "DE,aa"
>PSTR "E,(HL)"
>PSTR "E,(IX+a)"
>PSTR "E,(IY+a)"
>PSTR "E,A"
>PSTR "E,a"
>PSTR "E,B"
>PSTR "E,C"
>PSTR "E,D"
>PSTR "E,E"
>PSTR "E,H"
>PSTR "E,L"
>PSTR "H,(HL)"
>PSTR "H,(IX+a)"
>PSTR "H,(IY+a)"
>PSTR "H,A"
>PSTR "H,a"
>PSTR "H,B"
>PSTR "H,C"
>PSTR "H,D"
>PSTR "H,E"
>PSTR "H,H"
>PSTR "H,L"
>PSTR "HL,(aa)"
>PSTR "HL,aa"
>PSTR "I,A"
>PSTR "IX,(aa)"
>PSTR "IX,aa"
>PSTR "IY,(aa)"
>PSTR "IY,aa"
>PSTR "L,(HL)"
>PSTR "L,(IX+a)"
>PSTR "L,(IY+a)"
>PSTR "L,A"
>PSTR "L,a"
>PSTR "L,B"
>PSTR "L,C"
>PSTR "L,D"
>PSTR "L,E"
>PSTR "L,H"
>PSTR "L,L"
>PSTR "R,A"
>PSTR "SP,(aa)"
>PSTR "SP,aa"
>PSTR "SP,HL"
>PSTR "SP,IX"
>PSTR "SP,IY"
>PSTR "(a),A"
>PSTR "(C),A"
>PSTR "(C),B"
>PSTR "(C),C"
>PSTR "(C),D"
>PSTR "(C),E"
>PSTR "(C),H"
>PSTR "(C),L"
>PSTR "AF"
>ST "A,(HL)"
>ST "A,(IX+a)"
>ST "A,(IY+a)"
>ST "A,A"
>ST "A,a"
>ST "A,B"
>ST "A,C"
>ST "A,D"
>ST "A,E"
>ST "A,H"
>ST "A,L"
>ST "HL,BC"
>ST "HL,DE"
>ST "HL,HL"
>ST "HL,SP"
>ST "IX,BC"
>ST "IX,DE"
>ST "IX,IX"
>ST "IX,SP"
>ST "IY,BC"
>ST "IY,DE"
>ST "IY,IY"
>ST "IY,SP"
>ST "(HL)"
>ST "(IX+a)"
>ST "(IY+a)"
>ST "A"
>ST "a"
>ST "B"
>ST "C"
>ST "D"
>ST "E"
>ST "H"
>ST "L"
>ST "aa"
>ST "BC"
>ST "DE"
>ST "HL"
>ST "IX"
>ST "IY"
>ST "SP"
>ST "r"
>ST "(SP),HL"
>ST "(SP),IX"
>ST "(SP),IY"
>ST "DE,HL"
>ST "A,(a)"
>ST "A,(C)"
>ST "B,(C)"
>ST "C,(C)"
>ST "D,(C)"
>ST "E,(C)"
>ST "H,(C)"
>ST "L,(C)"
>ST "(IX)"
>ST "(IY)"
>ST "(aa),A"
>ST "(aa),BC"
>ST "(aa),DE"
>ST "(aa),HL"
>ST "(aa),IX"
>ST "(aa),IY"
>ST "(aa),SP"
>ST "(BC),A"
>ST "(DE),A"
>ST "(HL),A"
>ST "(HL),a"
>ST "(HL),B"
>ST "(HL),C"
>ST "(HL),D"
>ST "(HL),E"
>ST "(HL),H"
>ST "(HL),L"
>ST "(IX+a),A"
>ST "(IX+a),a"
>ST "(IX+a),B"
>ST "(IX+a),C"
>ST "(IX+a),D"
>ST "(IX+a),E"
>ST "(IX+a),H"
>ST "(IX+a),L"
>ST "(IY+a),A"
>ST "(IY+a),a"
>ST "(IY+a),B"
>ST "(IY+a),C"
>ST "(IY+a),D"
>ST "(IY+a),E"
>ST "(IY+a),H"
>ST "(IY+a),L"
>ST "A,(aa)"
>ST "A,(BC)"
>ST "A,(DE)"
>ST "A,I"
>ST "A,R"
>ST "B,(HL)"
>ST "B,(IX+a)"
>ST "B,(IY+a)"
>ST "B,A"
>ST "B,a"
>ST "B,B"
>ST "B,C"
>ST "B,D"
>ST "B,E"
>ST "B,H"
>ST "B,L"
>ST "BC,(aa)"
>ST "BC,aa"
>ST "C,(HL)"
>ST "C,(IX+a)"
>ST "C,(IY+a)"
>ST "C,A"
>ST "C,a"
>ST "C,B"
>ST "C,C"
>ST "C,D"
>ST "C,E"
>ST "C,H"
>ST "C,L"
>ST "D,(HL)"
>ST "D,(IX+a)"
>ST "D,(IY+a)"
>ST "D,A"
>ST "D,a"
>ST "D,B"
>ST "D,C"
>ST "D,D"
>ST "D,E"
>ST "D,H"
>ST "D,L"
>ST "DE,(aa)"
>ST "DE,aa"
>ST "E,(HL)"
>ST "E,(IX+a)"
>ST "E,(IY+a)"
>ST "E,A"
>ST "E,a"
>ST "E,B"
>ST "E,C"
>ST "E,D"
>ST "E,E"
>ST "E,H"
>ST "E,L"
>ST "H,(HL)"
>ST "H,(IX+a)"
>ST "H,(IY+a)"
>ST "H,A"
>ST "H,a"
>ST "H,B"
>ST "H,C"
>ST "H,D"
>ST "H,E"
>ST "H,H"
>ST "H,L"
>ST "HL,(aa)"
>ST "HL,aa"
>ST "I,A"
>ST "IX,(aa)"
>ST "IX,aa"
>ST "IY,(aa)"
>ST "IY,aa"
>ST "L,(HL)"
>ST "L,(IX+a)"
>ST "L,(IY+a)"
>ST "L,A"
>ST "L,a"
>ST "L,B"
>ST "L,C"
>ST "L,D"
>ST "L,E"
>ST "L,H"
>ST "L,L"
>ST "R,A"
>ST "SP,(aa)"
>ST "SP,aa"
>ST "SP,HL"
>ST "SP,IX"
>ST "SP,IY"
>ST "(a),A"
>ST "(C),A"
>ST "(C),B"
>ST "(C),C"
>ST "(C),D"
>ST "(C),E"
>ST "(C),H"
>ST "(C),L"
>ST "AF"
.HS 00
*---------------------------------------
T.REGISTERS .EQ *
>PSTR "A"
>PSTR "HL"
>PSTR "IX"
>PSTR "IY"
>PSTR "B"
>PSTR "C"
>PSTR "D"
>PSTR "E"
>PSTR "H"
>PSTR "L"
>PSTR "BC"
>PSTR "DE"
>PSTR "SP"
>PSTR "I"
>PSTR "R"
>PSTR "AF"
>ST "A"
>ST "HL"
>ST "IX"
>ST "IY"
>ST "B"
>ST "C"
>ST "D"
>ST "E"
>ST "H"
>ST "L"
>ST "BC"
>ST "DE"
>ST "SP"
>ST "I"
>ST "R"
>ST "AF"
.HS 00
*---------------------------------------
.INB BIN/ASM.T.Z80.O

Binary file not shown.