C16 - Plus/4 DA65 Infofile
Suche
Index
FAQ
Kontakt
Zurück
#########################################################
#                                                       #
#  Commodore C16 and Plus/4 DA65 Infofile Version 0.1   #       
#                                                       #  
#########################################################

# use: da65 -i thisinfofile.info
#
# http://www.cc65.org/doc/da65-2.html#ss2.1

# change values 
Global {

    OutputName "source.asm";
    InputName  "yourprg.prg";
    StartAddr  $1001;
    CPU        "6502";
};


# Change for larger sys-line
Range { Start $1001; End $100c; Type ByteTable; };

#System-Memory and Zero-Page
	
Label { Name "BNKVEC"; Addr $02FE ; COMMENT "$02FE-02FF, 766-767, Vector for function cartridge users"; };
Label { Name "ITIME"; Addr $0312 ; COMMENT "$0312-0313, 786-787, Vector for time"; };
Label { Name "CINV"; Addr $0314 ; COMMENT "$0314-0315, 7B8-789, IRQ Ram Vector"; };
Label { Name "CBINV"; Addr $0316 ; COMMENT "$0316-0317, 790-791, BRK Instr RAM Vector"; };
Label { Name "IOPEN"; Addr $0318 ; COMMENT "$0318-0319, 792-793, Indirects for Code"; };
Label { Name "ICLOSE"; Addr $031A ; COMMENT "$031A-031B, 794-795, Vector for Close"; };
Label { Name "ICHKIN"; Addr $031C ; COMMENT "$031C-031D, 796-797, Vector for channel input "; };	
Label { Name "ICKOUT"; Addr $031E ; COMMENT "$031E-031F, 798-799, Vector for channel output "; };	
Label { Name "ICLRCH"; Addr $0320 ; COMMENT "$0320-0321, 800-801, Vector for reset i/o"; };	
Label { Name "IBASIN"; Addr $0322 ; COMMENT "$0322-0323, 802-803, Vector for input"; };	
Label { Name "IBASOUT"; Addr $0324 ; COMMENT "$0324-0325, 804-805, Vector for output"; };	
Label { Name "ISTOP"; Addr $0326 ; COMMENT "$0326-0327, 806-807, Vector for stop-key detection"; };	
Label { Name "IGETIN"; Addr $0328 ; COMMENT "$0328-0329, 808-809, Vector for getin-routine"; };	
Label { Name "ICLALL"; Addr $032A ; COMMENT "$032A-032B, 810-811, Vector for close all files"; };	
Label { Name "USRCMD"; Addr $032C ; COMMENT "$032C-032D, 812-813, Vector for monitor break"; };	
Label { Name "ILOAD"; Addr $032E ; COMMENT "$032E-032F, 814-815, Vector for load"; };	
Label { Name "ISAVE"; Addr $0330 ; COMMENT "$0330-0331, 816-817, Vector for save"; };	
Label { Name "TAPBUF"; Addr $0333 ; COMMENT "$0333-03F2, 819-1010, Cassette tape buffer";}
 	
#Main Code Re-Assembly

Label { Name "RDOT"; Addr $C000; COMMENT "$C000: Read dot"; };
Label { Name "CIRC"; Addr $C01E; COMMENT "$C01E: Circle"; };
Label { Name "PAINT"; Addr $C0Da; COMMENT "$C0Da: Paint"; };
Label { Name "SDOT"; Addr $C1C3; COMMENT "$C0C3: Set dot"; };
Label { Name "TDOT"; Addr $C1F3; COMMENT "$C0F3: Test dot"; };
Label { Name "SETCOL"; Addr $C21A; COMMENT "$C21A: Set color and luma"; };
Label { Name "SCRPT"; Addr $C264; COMMENT "$C264: Set pointer to screen-ram "; };
Label { Name "BYTPT"; Addr $C291; COMMENT "$C291: Set byte pointer"; };
Label { Name "RCXY"; Addr $C2AD; COMMENT "$C2AD: Set row, column to x, y"; };
Label { Name "SCALE"; Addr $C2D3; COMMENT "$C2D3: Scale"; };
Label { Name "GETCO"; Addr $C48F; COMMENT "$C48F: Get coordinate"; };
Label { Name "DRAW"; Addr $C4D9; COMMENT "$C4D9: Draw"; };
Label { Name "LOCATE"; Addr $C50F; COMMENT "$C50F: Locate"; };
Label { Name "COLOR"; Addr $C51A; COMMENT "$C51A: COLOR"; };
Label { Name "SCNCLR"; Addr $C567; COMMENT "$C567: SCNCLR"; };
Label { Name "GRAPHIC"; Addr $C5C3; COMMENT "$C5C3: GRAPHIC"; };
Label { Name "TGRAPHIC"; Addr $C7BF; COMMENT "$C7BF: Test Graphic"; };
Label { Name "GRAPHICOFF"; Addr $C7C9; COMMENT "$C7C9: Graphic off"; };
Label { Name "GRAPHICMEM"; Addr $C7F0; COMMENT "$C7F0: Memory segmentation for Graphic"; };
Label { Name "DIR"; Addr $C8BC; COMMENT "$C8BC: DIRECTORY"; };
Label { Name "DSAVE"; Addr $C941; COMMENT "$C941: DSAVE"; };
Label { Name "DLOAD"; Addr $C951; COMMENT "$C951: DLOAD"; };
Label { Name "HEADER"; Addr $C968; COMMENT "$C968: HEADER"; };
Label { Name "SCRATCH"; Addr $C99C; COMMENT "$C99C: SCRATCH"; };
Label { Name "COLLECT"; Addr $C9CC; COMMENT "$C9CC: COLLECT"; };
Label { Name "COPY"; Addr $C9DA; COMMENT "$C9DA: COPY"; };
Label { Name "RENAME"; Addr $C9F4; COMMENT "$C9F4: RENAME"; };
Label { Name "BACKUP"; Addr $CA00; COMMENT "$CA00: BACKUP"; };
Label { Name "SCMD"; Addr $CA16; COMMENT "$CA16: Send command"; };
Label { Name "BCMD"; Addr $CA3F; COMMENT "$CA3F: Build command"; };
# Range { Start $caf5; End $cb1f; Type TextTable; COMMENT "DOS Command table"; NAME "DOS Command table";};
Label { Name "AYSURE"; Addr $CD2B; COMMENT "$CD2B: Are you sure ?"; };
Label { Name "CDS"; Addr $CD57; COMMENT "$CD57: Clear Disk Status"; };
# Range { Start $cd89; End $cdaa; Type ByteTable; COMMENT "ROM-Coder";};
Label { Name "EASTEREGG"; Addr $CDAB; COMMENT "$CDAB: Decode and display the three coder and the hardware-designer"; };
# Range { Start $cdc4; End $cdff; Type ByteTable; COMMENT "Empty ... ?";};
Label { Name "IRQ"; Addr $CDBA; COMMENT "$CDBA: IRQ-Routine"; };
# Range { Start $cec5; End $cecc; Type ByteTable;};
Label { Name "PRSND"; Addr $CECD; COMMENT "$CECD: Process Sound"; };
Label { Name "CLKTIME"; Addr $CEF0; COMMENT "$CEF0: Time clocking"; };
Label { Name "READTIME"; Addr $CF26; COMMENT "$CF26: Read time"; };
Label { Name "SETTIME"; Addr $CF2D; COMMENT "$CF2D: Set time"; };
# Range { Start $cf36; End $cf65; Type TextTable;};
Label { Name "SCRPRT"; Addr $CF74; COMMENT "$CF74: Screen print"; };
Label { Name "TAPE"; Addr $CFBF; COMMENT "$CFBF: Play on recoder pressed ?"; };
Label { Name "IECEND"; Addr $CFEA; COMMENT "$CFEA: Ending snippet of i/o-init"; };
# Range { Start $cff7; End $cfff; Type ByteTable;};
# Range { Start $d000; End $d7ff; Type ByteTable; NAME "Charset";};
# Range { Start $d800; End $d801; Type ByteTable; NAME "OS-Version";};
Label { Name "SCREEN"; Addr $D834; COMMENT "$D834"; };
Label { Name "PLOT"; Addr $D839; COMMENT "$D839:"; };
Label { Name "EDRES"; Addr $D84e; COMMENT "$D84e: Editor Reset"; };
Label { Name "CLRSCR"; Addr $D88b; COMMENT "$D88b: Clear Screen"; };
Label { Name "HOME"; Addr $D89a; COMMENT "$D89a: Home"; };
Label { Name "GETKEY"; Addr $D8c1; COMMENT "$D8c1: Get keyboard buffer "; };
Label { Name "GETIN"; Addr $D8ae; COMMENT "$D8ea: Input from screen "; };
Label { Name "GETCHR"; Addr $D956; COMMENT "$D956: Get char from screen "; };
Label { Name "QSIGN"; Addr $D9BA; COMMENT "$D9BA: Set/clear quoted modus"; };
Label { Name "EPRT"; Addr $D9C7; COMMENT "$D9C7: End of PRINT"; };
Label { Name "SCRLUP"; Addr $DA21; COMMENT "$DA21: Scroll up"; };
Label { Name "CPYLN"; Addr $DA3D; COMMENT "$DA3D: Copy line"; };
Label { Name "SPCLN"; Addr $DA5E; COMMENT "$DA5E: Insert spaced line"; };
Label { Name "KEYB"; Addr $DB11; COMMENT "$DB11: Scan keyboard"; };
# Range { Start $dc41; End $dc48; Type ByteTable; NAME "Codes for function keys";};
Label { Name "PRINT"; Addr $DC49; COMMENT "$DC49: PRINT"; };
Label { Name "RETCODE"; Addr $DC8C; COMMENT "$DC8C: Return screen code"; };
Label { Name "ESC0"; Addr $DC9B; COMMENT "$DC9B: delete flags"; };
Label { Name "SCRCOD"; Addr $DCA7; COMMENT "$DCA7: prcessing screen codes"; };
Label { Name "CURR"; Addr $DCFA; COMMENT "$DCFA: Cursor right"; };
Label { Name "CURD"; Addr $DD00; COMMENT "$DD00: Cursor down"; };
Label { Name "CURU"; Addr $DD0D; COMMENT "$DD0D: Cursor up"; };
Label { Name "CURL"; Addr $DD1C; COMMENT "$DD1C: Cursor left"; };
Label { Name "TXTMOD"; Addr $DD27; COMMENT "$DD27: Text-mode"; };
Label { Name "GRMODE"; Addr $DD3E; COMMENT "$DD3E: Graphic-mode"; };
Label { Name "DELETE"; Addr $DD99; COMMENT "$DD99: Delete"; };
Label { Name "INSERT"; Addr $DDCE; COMMENT "$DDCE: Insert"; };
Label { Name "ESCTAB"; Addr $DE1A; COMMENT "$DE1A: ESC-table"; };
Label { Name "ESC-R"; Addr $DE48; COMMENT "$DE48: ESC-R window with border"; };
Label { Name "ESC-T"; Addr $DE5E; COMMENT "$DE5E: ESC-T window top"; };
Label { Name "ESC-B"; Addr $DE60; COMMENT "$DE60: ESC-B window bottom"; };
Label { Name "RESSCR"; Addr $DE70; COMMENT "$DE70: reset to full screen"; };
Label { Name "INSLNE"; Addr $DE8B; COMMENT "$DE8B: insert line"; };
Label { Name "ESC-D"; Addr $DEA0; COMMENT "$DEA0=: ESC-D delete line"; };
Label { Name "ESC-Q"; Addr $DECB; COMMENT "$DECB=: ESC-Q delete actual line, right "; };
Label { Name "ESC-P"; Addr $DEE1; COMMENT "$DEE1=: ESC-P delete actual line, left"; };
Label { Name "ESC-V"; Addr $DEF6; COMMENT "$DEF6=: ESC-V Scroll up"; };
Label { Name "ESC-W"; Addr $DF04; COMMENT "$DF04=: ESC-W Scroll down"; };
Label { Name "ESC-L"; Addr $DF1D; COMMENT "$DF1D=: ESC-L Scrolling on"; };
Label { Name "ESC-M"; Addr $DF20; COMMENT "$DF20=: ESC-M Scrolling off"; };
Label { Name "ESC-C"; Addr $DF26; COMMENT "$DF26=: ESC-C Auto-Insert off"; };
Label { Name "ESC-A"; Addr $DF29; COMMENT "$DF29=: ESC-A Auto-Insert on"; };
Label { Name "GCHAR"; Addr $DF2F; COMMENT "$DF2F: Get char from screen"; };
Label { Name "ESC-J"; Addr $DF82; COMMENT "$DF82: ESC-J Set cursor to first column"; };
Label { Name "ESC-K"; Addr $DF95; COMMENT "$DF95: ESC-J Set cursor to last column"; };
Label { Name "PCHAR"; Addr $DFFF; COMMENT "$DFFF: Writes char on screen"; };


# TED Registers $ff00 - $ff3f

Label {Name "Count1Lo"; Addr $FF00; COMMENT "$FF00: TED Counter 1 Lo"; };
Label {Name "Count1Hi"; Addr $FF01; COMMENT "$FF01: TED Counter 1 Hi"; };
Label {Name "Count2Lo"; Addr $FF02; COMMENT "$FF02: TED Counter 2 Lo"; };
Label {Name "Count2Hi"; Addr $FF03; COMMENT "$FF03: TED Counter 2 Hi"; };
Label {Name "Count3Lo"; Addr $FF04; COMMENT "$FF04: TED Counter 3 Lo"; };
Label {Name "Count3Hi"; Addr $FF05; COMMENT "$FF05: TED Counter 3 Hi"; };
Label {Name "TEDGraph1"; Addr $FF06; COMMENT "$FF06: TED Graphic-Register 1"; };
Label {Name "TEDGraph2"; Addr $FF07; COMMENT "$FF07: TED Graphic-Register 2"; };
Label {Name "TEDKLatch"; Addr $FF08; COMMENT "$FF08: TED Keyboard Latch"; };
Label {Name "TEDIRQ"; Addr $FF09; COMMENT "$FF09: TED IRQ Status Register"; };
Label {Name "TEDIRQM"; Addr $FF0A; COMMENT "$FF0A: TED IRQ Mask Register"; };
Label {Name "TEDIRQR"; Addr $FF0B; COMMENT "$FF0B: TED Raster IRQ Register"; };
Label {Name "TEDCUR_H"; Addr $FF0C; COMMENT "$FF0C: TED Cursor H"; };
Label {Name "TEDCUR_L"; Addr $FF0D; COMMENT "$FF0D: TED Cursor L"; };
Label {Name "TEDSND1"; Addr $FF0E; COMMENT "$FF0E: TED Sound Voice #1 L";};
Label {Name "TEDSND2"; Addr $FF0F; COMMENT "$FF0F: TED Sound Voice #2 L";};
Label {Name "TEDSND1H"; Addr $FF10; COMMENT "$FF10: TED Sound Voice #1 H";};
Label {Name "TEDSND"; Addr $FF11; COMMENT "$FF11: TED Sound Volume,on/off,Wave,D/A";};
Label {Name "TEDREG"; Addr $FF12; COMMENT "$FF12: TED Register";};
Label {Name "TEDREGA"; Addr $FF13; COMMENT "$FF13: TED Register";};
Label {Name "TEDVRAM"; Addr $FF14; COMMENT "$FF14: TED Video-RAM";};
Label {Name "TEDBACK"; Addr $FF15; COMMENT "$FF15: Background-Color";};
Label {Name "TEDCOL1"; Addr $FF16; COMMENT "$FF16: TED Color 1";};
Label {Name "TEDCOL2"; Addr $FF17; COMMENT "$FF17: TED Color 2";};
Label {Name "TEDCOL3"; Addr $FF18; COMMENT "$FF18: TED Color 3";};
Label {Name "TEDFRAME"; Addr $FF19; COMMENT "$FF19: TED FRAME";};
Label {Name "TEDCHARH"; Addr $FF1A; COMMENT "$FF1A: TED Char Position H";};
Label {Name "TEDRASTH"; Addr $FF1C; COMMENT "$FF1C: TED Rasterline H";};
Label {Name "TEDRASTL"; Addr $FF1D; COMMENT "$FF1D: TED Rasterline L";};
Label {Name "TEDRASTC"; Addr $FF1E; COMMENT "$FF1E: TED Rastercolumn";};
Label {Name "TEDRASTV"; Addr $FF1F; COMMENT "$FF1F: TED Raster vertical";};
Label {Name "TEDROM"; Addr $FF3E; COMMENT "$FF3E: TED ROM ON";};
Label {Name "TEDRAM"; Addr $FF3F; COMMENT "$FF3F: TED RAM ON";};


#Kernal $FFxx 

Label { Name "CINT"; Addr $FF81; COMMENT "$FF81: Initialize screen editor"; };
Label { Name "IOINIT"; Addr $FF84; COMMENT "$FF84: Initialize I/O devices"; };
Label { Name "RAMTAS"; Addr $FF87; COMMENT "$FF87: Ram test"; };
Label { Name "RESTOR"; Addr $FF8A; COMMENT "$FF8A: Restore vectors to initial values"; };
Label { Name "VECTOR"; Addr $FF8D; COMMENT "$FF8D: Change vectors for user"; };
Label { Name "SETMSG"; Addr $FF90; COMMENT "$FF90: Control O.S. messages"; };
Label { Name "SECND"; Addr $FF93; COMMENT "$FF93: Send SA after LISTEN"; };
Label { Name "TKSA"; Addr $FF96; COMMENT "$FF96: Send SA after TALK"; };	
Label { Name "MEMTOP"; Addr $FF99; COMMENT "$FF99: Set/Read top of memory"; };
Label { Name "MEMBOT"; Addr $FF9C; COMMENT "$FF9C: Set/Read bottom of memory"; };
Label { Name "SCNKEY"; Addr $FF9F; COMMENT "$FF9F: Scan keyboard"; };	
Label { Name "SETTMO"; Addr $FFA2; COMMENT "$FFA2: Set timeout in DMA disk"; };	
Label { Name "ACPTR"; Addr $FFA5; COMMENT "$FFA5: Handshake serial bus or DMA disk byte in"; };	
Label { Name "CIoUT"; Addr $FFA8; COMMENT "$FFA8: Handshake serial bus or DMA disk byte out"; };	
Label { Name "UNTLR"; Addr $FFAB; COMMENT "$FFAB: Send UNTALK out serial bus or DMA disk"; };	
Label { Name "UNLSN"; Addr $FFAE; COMMENT "$FFAE: Send UNLISTEN out serial bus or DMA disk"; };	
Label { Name "LISTN"; Addr $FFB1; COMMENT "$FFB1: Send LISTEN out serial bus or DMA disk"; };	
Label { Name "TALK"; Addr $FFB4; COMMENT "$FFB4: Send TALK out serial bus or DMA disk"; };	
Label { Name "READSS"; Addr $FFB7; COMMENT "$FFB7: Return I/O STATUS byte"; };	
Label { Name "SETLFS"; Addr $EF8A; COMMENT "$EF8A: Set LA, FA, SA"; };	
Label { Name "SETNAM"; Addr $FFBD; COMMENT "$FFBD: Set length and FN address"; };	
Label { Name "OPEN"; Addr $FFC0; COMMENT "$FFC0: Open logical file"; };	
Label { Name "CLOSE"; Addr $FFC3; COMMENT "$FFC3: Close logical file"; };	
Label { Name "CHKIN"; Addr $FFC6; COMMENT "$FFC6: Open channel in"; };	
Label { Name "CHOUT"; Addr $FEC9; COMMENT "$FEC9: Open channel out"; };	
Label { Name "CLRCH"; Addr $FECC; COMMENT "$FECC: Close I/O channels"; };	
Label { Name "8ASIN"; Addr $FFCF; COMMENT "$FFCF: Input from channel"; };	
Label { Name "BSOUT"; Addr $FFD2; COMMENT "$FFD2: Output to channel"; };	
Label { Name "LOADSP"; Addr $FFD5; COMMENT "$FFD5: Load from file"; };	
Label { Name "SAYESP"; Addr $FFD8; COMMENT "$FFD8: Save to file"; };	
Label { Name "SETTIM"; Addr $FFDB; COMMENT "$FFDB: Set internal clock"; };	
Label { Name "RDTIM"; Addr $FFDE; COMMENT "$FFDE: Read internal clock"; };	
Label { Name "STOP"; Addr $FFE1; COMMENT "$FFE1: Scan STOP key"; };	
Label { Name "GETIN"; Addr $FFE4; COMMENT "$FFE4: Get character from queue"; };	
Label { Name "CLALL"; Addr $FFE7; COMMENT "$FFE7: Close all files"; };	
Label { Name "UDTIM"; Addr $FFEA; COMMENT "$FFEA:Increment clock"; };	
Label { Name "SCRORG"; Addr $FFED; COMMENT "$FFED: Screen org."; };	
Label { Name "PLOT"; Addr $FFF0; COMMENT "$FFF0: Read/Set X,Y coord of cursor"; };	
Label { Name "IOBASE"; Addr $FFF3; COMMENT "$FFF3: Return location of start of I/O"; };

 

Letzte Änderung: 2019-01-03 11:16:33
  Rubrik:  C16
Rubriken-Übersicht
 133 Besucher online 

Valid XHTML 1.0 Transitional Valid CSS!