Re: Two new PRGs

rbaltiss_at_worldaccess.nl
Date: 1998-02-10 19:57:20

Hallo Mark,

> You can save a work-in-progress as a ".rs" file, meaning that you can come 
> back
> another day to add more symbols, labels, etc.
> 
> Is there anything similar for 6502 code?
> 

Idon't fully understand that. Explain and I'll program it. My PRG can read a 
what I call 'directive' file. It contains extra commands for the disassembler.
Here is my DIR file for the SYSTEM-ROM of a C64 with a IEEE inteface:

NAME 6821
FILE basic.rom $A000
EXCL $C000 $DFFF          RAM and I/O area
MOVE $E3A2 $E3B9 $0073    CHRGET-routine
EXAM $F34A
....
EXAM $F5ED
VECP $A00C $A051
VECT $A052 $A07F
EXAM $B86A
....
EXAM $EA31
JUMP $FF81 $FFF5
EXAM $FC6A
...
EXAM $A57C

MARK $E1DA $E1DA
MARK $E228 $E228
.....
MARK $FF7E $FF7F

EQUI index  = $22
EQUI *      = $23
EQUI txttab = $2B
EQUI vartab = $2D
.........
EQUI STROUT = $AB1E
EQUI numout = $BDCD

EQUI CIA1_A = $DC00
EQUI CIA1_B = $DC01
EQUI CIA1_DDA   = $DC02
EQUI CIA1_DDB   = $DC03
EQUI CIA1_TAL   = $DC04
EQUI CIA1_TAH   = $DC05
EQUI CIA1_TBL   = $DC06
EQUI CIA1_TBH   = $DC07
EQUI CIA1_SIO   = $DC0C    ; serial in/output buffer
EQUI CIA1_IRQ   = $DC0D
EQUI CIA1_CTA   = $DC0E
EQUI CIA1_CTB   = $DC0F

EQUI CIA2_A = $DD00
EQUI CIA2_B = $DD01
EQUI CIA2_DDA   = $DD02
EQUI CIA2_DDB   = $DD03
EQUI CIA2_TAL   = $DD04
EQUI CIA2_TAH   = $DD05
EQUI CIA2_TBL   = $DD06
EQUI CIA2_TBH   = $DD07
EQUI CIA2_SIO   = $DD0C
EQUI CIA2_IRQ   = $DD0D
EQUI CIA2_CTA   = $DD0E
EQUI CIA2_CTB   = $DD0F

EQUI CLRSCR = $E544
EQUI nxtkey = $E5B4
EQUI scrout = $E716
......
EQUI STOP   = $FFE1

The ASTERIX command means to translate all addresses since last label as "label 
+ x":

equi temp = $04
equi *    = $08

lad $04 -> lda temp
lda $05 -> lda temp+1
...
lda $08 -> lada temp+4


Groetjes, Ruud

Archive generated by hypermail 2.1.1.