Mercurial > hg > Members > kono > nitros9-code
changeset 1086:8391bf11ab31
ROM code moved to cloud9
author | boisy |
---|---|
date | Thu, 03 Apr 2003 22:23:44 +0000 |
parents | a1464c5aedcb |
children | 35427a53b47d |
files | level1/modules/makefile level1/modules/rom_vectors.asm level1/modules/rominfo.asm level2/modules/makefile level2/modules/pakrom.asm level2/modules/rom_vectors.asm level2/modules/rominfo.asm |
diffstat | 7 files changed, 2 insertions(+), 444 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/modules/makefile Thu Apr 03 19:25:16 2003 +0000 +++ b/level1/modules/makefile Thu Apr 03 22:23:44 2003 +0000 @@ -5,7 +5,7 @@ BOOTERS = oscode oscode_d64 boot_1773 boot_d64 $(TPB)/boot_rom_l1 rom_vectors KERNELS = os9 os9p2 -ROMMODS = rominfo sysgo_rom +ROMMODS = sysgo_rom SYSMODS = ioman init sysgo sysgo_d64 CLOCKS = clock.60hz clock.50hz clock_tc3 clock_bb CLOCKS_D64 = clock_d64
--- a/level1/modules/rom_vectors.asm Thu Apr 03 19:25:16 2003 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -* ROM vectors - merged at the end of the ROM image - fdb $8015 - fdb $0100 - fdb $0103 - fdb $010F - fdb $010C - fdb $0106 - fdb $0109 - fdb $8015 -
--- a/level1/modules/rominfo.asm Thu Apr 03 19:25:16 2003 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -******************************************************************** -* ROMInfo - OS-9 Level One ROM boot module -* -* $Id$ -* -* ROM Relocation code for OS-9 Level One Vr. 2.00 -* Executed at $8015 from ROM -* -* Ed. Comments Who YY/MM/DD -* ------------------------------------------------------------------ -* 1 Created BGP 98/05/03 - - nam ROMInfo - ttl OS-9 Level One ROM boot module - - ifp1 - use defsfile - endc - -tylg set Systm+Objct -atrv set ReEnt+rev -rev set $01 -edition set 1 - - mod eom,name,tylg,atrv,start,size - -size equ . - -name fcs /ROMInfo/ - fcb edition - -start equ * -CCInit ldx #PIA.U8 PIA1 - clr -3,x clear PIA0 Control Register A - clr -1,x clear PIA0 Control Register B - clr -4,x set PIA0 side A to input - ldd #$FF34 - sta -2,x set PIA0 side B to output - stb -3,x enable PIA0 peripheral reg, disable PIA0 - stb -1,x MPU interrupts, set CA2, CA1 to outputs - clr 1,x $FF20 = DDR, motoroff - clr 3,x $FF22 = DDR, sound disabled - deca A = $FE after deca - sta ,x bits 1-7 are outputs, bit 0 is input on PIA1 side A - lda #$F8 - sta 2,x bits 0-2 are inputs, bits 3-7 are outputs on B side - stb 1,x enable peripheral registers, disable PIA1 MPU - stb 3,x interrupts and set CA2, CB2 as outputs - clr 2,x set 6847 mode to alphanumeric - ldb #$02 - stb ,x make RS-232 output marking - clrb - tfr b,dp B = 0 - ldb #$04 - clr -2,x - bitb 2,x - - lda #$37 - sta PIA.U8+3 - - lda PIA.U4+3 - ora #$01 - sta PIA.U4+3 - - lda PIA.U8+2 - anda #$07 - sta PIA.U8+2 - -* VDG Mode - sta $FFC0 - sta $FFC2 - sta $FFC4 - -* 64K DRAM (M0=0, M1=1) - sta $FFDA RESET M0 - sta $FFDD SET M1 - -* ROM relocation code -- copies the boot track into $2600 -RelROM ldx #$AE00 src address (ROM) - ldy #$2600 dst address (RAM) -copyloop ldd ,x++ get 2 bytes from src - std ,y++ put 2 bytes to dst - cmpx #$AE00+$1200 at end? - blo copyloop nope, copy more... -* BOOT relocation code -- copies the bootfile into $2600+$1200 -RelBOOT ldx #$8000 - ldy #$2600+$1200 -cpy2loop ldd ,x++ - std ,y++ - cmpx #$8000+$2E00 - blo cpy2loop - jmp $2602 jump to OS rel code - - emod -eom equ * - end
--- a/level2/modules/makefile Thu Apr 03 19:25:16 2003 +0000 +++ b/level2/modules/makefile Thu Apr 03 22:23:44 2003 +0000 @@ -16,7 +16,6 @@ OS9P1 = os9p1 OS9P2 = os9p2 REL = rel -ROMMODS = rominfo rom_vectors cc3go_rom pakrom SYSMODS = ioman init cc3go os9p3_perr os9p4_regdump CLOCKS = clock_elim clock_disto2 clock_disto4 clock_bnb \ clock_smart clock_harris clock_tc3 clock_soft @@ -47,12 +46,9 @@ KERNEL_1773 = rel boot_1773 os9p1 KERNEL_RAMPAK = rel $(TPB)/boot_rampak os9p1 KERNEL_KENTON = rel $(TPB)/boot_kenton os9p1 -KERNEL_ROM = rel $(TPB)/boot_rom os9p1 KERNEL_IDE = rel $(TPB)/boot_ide os9p1 -# These kernels are intended to be ROMmed in a disk controller or program pak -KERNEL_PAK_KENTON = pakrom $(KERNEL_KENTON) -ALLOBJS = $(BOOTERS) $(OS9P1) $(OS9P2) $(REL) $(ROMMODS) $(SYSMODS) $(CLOCKS) $(FMGRS) \ +ALLOBJS = $(BOOTERS) $(OS9P1) $(OS9P2) $(REL) $(SYSMODS) $(CLOCKS) $(FMGRS) \ $(DRIVERS) $(IOSUBS) $(DESCS) $(WINDESCS) all: $(ALLOBJS) @@ -136,18 +132,12 @@ ddr0_192k.dd: r0.asm $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 -aDD=1 -cc3go_rom: cc3go.asm - $(AS) -aROM=1 $(AFLAGS) $< $(ASOUT)$@ - sacia.dr: xacia.asm $(AS) -aA6551=1 -aA6552=0 -aMPI.Slot=00 $(AFLAGS) $< $(ASOUT)$@ dacia.dr: xacia.asm $(AS) -aA6551=0 -aA6552=1 -aMPI.Slot=00 $(AFLAGS) $< $(ASOUT)$@ -rominfo: rominfo.asm - $(AS) -aROMPak=0 $(AFLAGS) $< $(ASOUT)$@ - # VDGInt Modules vdgint.io: vdgint.asm $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCOCO2=1
--- a/level2/modules/pakrom.asm Thu Apr 03 19:25:16 2003 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,189 +0,0 @@ -******************************************************************** -* OS-9 Level Two ROM Relocation Code -* -* This code is intended to be used in the ROM socket of a disk -* controller or program pak and is NOT intended for the CoCo's -* internal ROM. -* -* $Id$ -* -* Executed at $C002 from Disk or Program Pak ROM -* -* Ed. Comments Who YY/MM/DD -* ------------------------------------------------------------------ -* 1 Created BGP 99/05/09 - - ifp1 - use systype - endc - - org $C000 - - fcc /DK/ Disk BASIC Key - jmp RelROM,pc - -* Filler area where Super Extended BASIC patches... we avoid putting code here - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFF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$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - fdb $FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF - -* ROM relocation code -- copies the boot track into $2600 and JMPs to it - -RelROM leax eom,pc point to code code after this - ldy #$2600 dst address (RAM) -copyloop ldd ,x++ get 2 bytes from src - std ,y++ put 2 bytes to dst - cmpy #$2600+$1200 at end? - blo copyloop nope, copy more... - jmp $2602 jump to OS rel code - -eom equ *
--- a/level2/modules/rom_vectors.asm Thu Apr 03 19:25:16 2003 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -******************************************************************** -* ROM_Vectors - CoCo 3 ROM vectors -* -* $Id$ -* -* These 16 bytes are merged at the end of the ROM image in ROM-based -* OS-9 Level 2 kernels -* -* Ed. Comments Who YY/MM/DD -* ------------------------------------------------------------------ - - nam ROM_Vectors - ttl CoCo 3 ROM vectors - - fdb $0000 - fdb $FEEE - fdb $FEF1 - fdb $FEF4 - fdb $FEF7 - fdb $FEFA - fdb $FEFD - fdb $8015 -
--- a/level2/modules/rominfo.asm Thu Apr 03 19:25:16 2003 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,114 +0,0 @@ -******************************************************************** -* ROMInfo - OS-9 Level Two ROM Relocation Code -* -* $Id$ -* -* Executed at $8015 from ROM -* -* Additional annotation Robert Gault 6/9/98 -* -* Ed. Comments Who YY/MM/DD -* ------------------------------------------------------------------ -* 1 Created BGP 98/05/03 - - nam ROMInfo - ttl OS-9 Level Two ROM boot module - - ifp1 - use defsfile - endc - -tylg set Systm+Objct -atrv set ReEnt+rev -rev set $01 -edition set 1 - - ifne ROMPak - jmp $C000+start - endc - - mod eom,name,tylg,atrv,start,size - -size equ . - -name fcs /ROMInfo/ - fcb edition - -start equ * - -* Bring the CoCo 3 to sanity - orcc #IntMasks disable FIRQ, IRQ - clr $FFD9 go into fast mode - lda #$0A CC3 Mode, No MMU, 32K Int. ROM - sta $FF90 - clr $FFDE RAM/ROM mode (upper 16K ROM at $C000) - -* Setup MMU - ldx #DAT.Regs - leay MMUTbl,pcr - ldb #16 - -MMULoop lda ,y+ - sta ,x+ - decb - bne MMULoop - -* Set up CoCo 3 Video Registers at $FF98-$FF9F - ldd #$0000 - std $FF98 - std $FF9A - std $FF9E - ldd #$0FE0 - std $FF9C - -* Initialize PIAs - ldx #PIA1Base RG - Initialize the PIA 1 - ldd #$FF34 - clr 1,x - clr 3,x - deca - sta ,x - lda #$F8 - sta 2,x - stb 1,x - stb 3,x - clr 2,x - lda #$02 - sta ,x - - lda #$FF RG - Initialize the PIA 0 - ldx #PIA0Base - clr 1,x - clr 3,x - clr ,x - sta 2,x - stb 1,x - stb 3,x - - tfr b,dp - clr 2,x - - - lda #$CA RG - CC2 mode, MMU, constant DRAM, 32K internal ROM - sta $FF90 - - bra RelROM - -* MMU -MMUTbl - fcb $38,$39,$3A,$3B,$3C,$3D,$3E,$3F - fcb $38,$39,$3A,$3B,$3C,$3D,$3E,$3F - - -* ROM relocation code -- copies the boot track into $2600 and JMPs to it -RelROM ldx #$EC00 src address (boot track in ROM) - ldy #$2600 dst address (RAM) -copyloop ldd ,x++ get 2 bytes from src - std ,y++ put 2 bytes to dst - cmpx #$EC00+$1200 at end? - blo copyloop nope, copy more... - jmp $2602 jump to OS rel code - - emod -eom equ * - end