Mercurial > hg > Members > kono > nitros9-code
changeset 235:3fa31ecd389a
Modified oscode to allow conditional assembly for Dragon 64
author | boisy |
---|---|
date | Wed, 17 Jul 2002 12:41:06 +0000 |
parents | 61fa26796730 |
children | 3d67d211f12e |
files | level1/modules/makefile level1/modules/oscode.asm |
diffstat | 2 files changed, 28 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/modules/makefile Wed Jul 17 07:56:32 2002 +0000 +++ b/level1/modules/makefile Wed Jul 17 12:41:06 2002 +0000 @@ -39,6 +39,12 @@ $(MERGE) $(KERNEL_1773)>$@ $(PADROM) \$$1200 $@ -c=\$$E5 +oscode: oscode.asm + $(AS) $(ASOUT)$@ $< -aDragon64=0 + +oscode_d64: oscode.asm + $(AS) $(ASOUT)$@ $< -aDragon64=1 + clean: $(RM) $(ALLOBJS) $(OS92UNIX) $(HELP)
--- a/level1/modules/oscode.asm Wed Jul 17 07:56:32 2002 +0000 +++ b/level1/modules/oscode.asm Wed Jul 17 12:41:06 2002 +0000 @@ -6,13 +6,17 @@ * Ed. Comments Who YY/MM/DD * ------------------------------------------------------------------ * From Tandy OS-9 Level One VR 02.00.00 +* Also put in conditionals for the Dragon 64 ifp1 use defsfile endc +ScrnLoc equ $8000 +OS9Start equ $EF00 +OS9Size equ $0F80 + * Initial code executed upon booting up to OS-9 - org $2600 Start fcc /OS/ bra L2620 @@ -24,6 +28,11 @@ BootMLen equ *-BootMsg L2620 clr PIA.U4+3 + + ifne Dragon64 + clr PIA.U4+1 added for Dragon, works on CoCo + endc + sta $FFDF turn off ROM * locate Boot Text Screen at $8000 ldb #$06 @@ -33,16 +42,16 @@ bne L262B sta 1,x -* clear screen at $8000 - ldx #$8000 - ldy #$0200 +* Clear VDG screen + ldx #ScrnLoc + ldy #512 lda #$60 L263B sta ,x+ leay -1,y bne L263B * Copy "OS9 BOOT" to screen area - ldx #$810C + ldx #ScrnLoc+$10C leay <BootMsg,pcr ldb #BootMLen L2649 lda ,y+ @@ -50,17 +59,22 @@ decb bne L2649 + ifne Dragon64 + tst <$72 + else ldd #$1212 cmpd <$0078 + endc + beq L266E leau >Start,pcr - ldx #$0F80 - ldy #$EF00 + ldx #OS9Size + ldy #OS9Start L2663 lda ,u+ sta ,y+ leax -1,x bne L2663 - jmp >$EF5C + jmp >OS9Start+L266E L266E leax <eoc,pcr ldd $09,x jmp d,x