Mass upload

The code from the Apple IIe diagnostics card
This commit is contained in:
Antoine Vignau 2020-11-10 11:41:07 +01:00 committed by GitHub
parent 0498bcc0c9
commit a37f7847fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 6577 additions and 0 deletions

BIN
diag/BINARY Normal file

Binary file not shown.

3069
diag/DIAG18B1.S Normal file

File diff suppressed because it is too large Load Diff

17
diag/DIAG18B2.S Normal file
View File

@ -0,0 +1,17 @@
*
* Apple II diagnostics code
*
* (c) 1983, Apple Computer, Inc.
* (s) 2018, Brutal Deluxe Software
*
*---------------------------------------------------------
* EPROM18B.BIN
* Code and data at $D000..$DFFF
* Second bank
*---------------------------------------------------------
* DS $1000,$FF
DS $1000
*--- End of code

2046
diag/DIAG19B.S Normal file

File diff suppressed because it is too large Load Diff

BIN
diag/EPROM Normal file

Binary file not shown.

148
diag/EQUATES.S Normal file
View File

@ -0,0 +1,148 @@
* TFBD generated equates
* (c) PHC 1992,93
*
* Firmware
*
CH = $24
CV = CH+1
COLOR = $E4
SOFTEV = $03F2
PWREDUP = $03F4
USRADR = $03F8
IRQLOC = $03FE
MSLOT = $07F8
*
* Zero page usage
*
LOOPFLG = $0F
DRAM = LOOPFLG+1 ; $10
SCRATCH = DRAM+1 ; $11
ROMCTRL = SCRATCH+2 ; $13
POINTER = $60
SIZE = POINTER+2 ; $62
YTEMP = SIZE+1 ; $63
COUNTER = YTEMP+1 ; $64
DATA = COUNTER+1 ; $65
LAT = DATA+1 ; $66
LEN = LAT+1 ; $67
GAP = LEN+1 ; $68
LONG = GAP+1 ; $69
NEXTV = LONG+1 ; $6A
ERRPTR = NEXTV+1 ; $6B
ROMFLG = $F0
CPUFLG = ROMFLG+1 ; $F1
RAMFLG = CPUFLG+1 ; $F2
*
* Addresses for relocation and test usage
*
L0000 = $0000
L0100 = $0100
L0200 = $0200
L0400 = $0400
L0800 = L0400+$0400
L0AD0 = $0AD0
L0C00 = L0800+$0400
L2000 = $2000
L4000 = L2000+$2000
L6000 = L4000+$2000
BEGIN = $0200
FIRST = $0200
OFFSET = $6000
L7237 = $7237
L849B = $849B
L8720 = $8720
*
* Softswitches (from the diag pov)
*
MMUADR = $C011
IOUADDR = $C01A
CXCHKSUM = $C400
*
* Softswitches
*
KBD EQU $C000
SET80COL EQU $C001
WRMAINRAM EQU $C004
WRCARDRAM EQU $C005
SETSLOTCXROM EQU $C006
SETINTCXROM EQU $C007
SETSTDZP EQU $C008
SETALTZP EQU $C009
SETINTC3ROM EQU $C00A
SETSLOTC3ROM EQU $C00B
CLR80VID EQU $C00C
SET80VID EQU $C00D
CLRALTCHAR EQU $C00E
SETALTCHAR EQU $C00F
KBDSTROBE EQU $C010
RDLCBNK2 EQU $C011
RDLCRAM EQU $C012
RDRAMWRT EQU $C014
RDALTZP EQU $C016
RDC3ROM EQU $C017
RD80COL EQU $C018
RDTEXT EQU $C01A
RDMIX EQU $C01B
RDPAGE2 EQU $C01C
RDHIRES EQU $C01D
ALTCHARSET EQU $C01E
RD80VID EQU $C01F
SPKR EQU $C030
TXTCLR EQU $C050
TXTSET EQU $C051
MIXCLR EQU $C052
MIXSET EQU $C053
TXTPAGE1 EQU $C054
TXTPAGE2 EQU $C055
LORES EQU $C056
HIRES EQU $C057
SETAN0 EQU $C058
SETAN1 EQU $C05A
CLRAN2 EQU $C05D
CLRAN3 EQU $C05F
BUTN3 EQU $C060
BUTN0 EQU $C061
BUTN1 EQU $C062
PTRIG EQU $C070
RDBANK2 EQU $C080
ROMIN2 EQU $C081
RDROM2 EQU $C082
LCBANK2 EQU $C083
LCBANK1 EQU $C08B
LC000 = $C000
LC100 = $C100
LC200 = $C200
LC300 = $C300
LC400 = $C400
LC500 = $C500
LC600 = $C600
LC700 = $C700
CLRROM = $CFFF
LD000 = $D000
*
* ROM calls (replaced)
*
*SETGR EQU $FB40
*HOME EQU $FC58
*WAIT EQU $FCA8
*PRBYTE EQU $FDDA
*COUT EQU $FDED
*BELL EQU $FF3A
*MONZ EQU $FF69

19
diag/MAKEBIN.S Normal file
View File

@ -0,0 +1,19 @@
*
* Apple II diagnostics code
*
* (c) 1983, Apple Computer, Inc.
* (s) 2018, Brutal Deluxe Software
*
mx %11
lst off
use EQUATES.S
*---------------------------------------------------------
org $d000
put DIAG18B1.S
put DIAG19B.S
put MONITORIIE.S
sav BINARY

28
diag/MAKEEPROM.S Normal file
View File

@ -0,0 +1,28 @@
*
* Apple II diagnostics code
*
* (c) 1983, Apple Computer, Inc.
* (s) 2018, Brutal Deluxe Software
*
mx %11
lst off
use EQUATES.S
*---------------------------------------------------------
* Code and data $D000..$DFFF for 1st bank
* Empty FF data $D000..$DFFF for 2nd bank
org $d000
put DIAG18B1.S
put DIAG18B2.S
*---------------------------------------------------------
* Code and data $E000..$F7FF for Diag code
* Code and data $F800..$FFFF for Monitor ROM
org $e000
put DIAG19B.S
put MONITORIIE.S
sav EPROM

1250
diag/MONITORIIE.S Normal file

File diff suppressed because it is too large Load Diff