Mercurial > hg > Members > kono > nitros9-code
changeset 3181:d9760f344c96
Whitespace/comments in Atari sections of krn, clock, sysgo
author | Boisy Pitre <coco@toughmac.com> |
---|---|
date | Tue, 16 May 2017 19:34:56 +0200 |
parents | 1c75a05d3304 |
children | 185c31229f22 |
files | level1/modules/clock.asm level1/modules/kernel/krn.asm level1/modules/sysgo.asm |
diffstat | 3 files changed, 18 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/modules/clock.asm Tue May 16 23:24:00 2017 +0200 +++ b/level1/modules/clock.asm Tue May 16 19:34:56 2017 +0200 @@ -119,6 +119,7 @@ lda #Sbrtn+Objct os9 F$Link bcc LinkOk + jmp >$FFFE level 1: jump to reset vector LinkOk @@ -161,10 +162,10 @@ ELSE lda #IRQST.TIMER1 pshs cc - orcc #IntMasks - ora <D.IRQENShdw - sta <D.IRQENShdw - sta IRQEN + orcc #IntMasks + ora <D.IRQENShdw + sta <D.IRQENShdw + sta IRQEN lda #%00101001 sta AUDCTL clr AUDC1
--- a/level1/modules/kernel/krn.asm Tue May 16 23:24:00 2017 +0200 +++ b/level1/modules/kernel/krn.asm Tue May 16 19:34:56 2017 +0200 @@ -88,7 +88,6 @@ * OS-9 Genesis! OS9Cold equ * - * clear out system globals from $0000-$0400 * ldx #D.FMBM ldx #$0000 @@ -174,24 +173,25 @@ ENDC puls x +* Atari has bootfile already in memory IFNE atari - ldy #$D000 - +* flag that we've booted and that Boot Low starts appropriately + ldy #$D000 Atari: I/O is at $D000-$D7FF inc <D.Boot stx <D.BTLO - ldx #$FFFF + ldx #$FFFF stx <D.BTHI - ELSE ldy #Bt.Start+Bt.Size ENDC lbsr ValMods + +* Atari: look for more modules at $D800-$F3FF IFNE atari - ldx #$D800 ldy #$F400 - lbsr ValMods + lbsr ValMods ENDC * Copy vectors to system globals @@ -249,8 +249,9 @@ L0158 ldx <D.FMBM * Free-memory bitmap. Bit7 of 0,x corresponds to page 0, bit6 to page 1 etc. * Bit7 of 1,x corresponds to page 8, bit6 to page 9 etc, etc. + IFNE atari -* In the Atari, memory $0000-$08FF is used by the system +* Atari needs $0000-$08FF and $D000-$D7FF reserved ldb #%11111111 stb ,x mark $0000-$07FF as allocated stb $1A,x mark $D000-$D7FF I/O area as allocated @@ -261,6 +262,7 @@ ldb #%11111000 stb ,x ENDC + * For all platforms exclude high memory as defined (earlier) by D.MLIM clra ldb <D.MLIM @@ -283,7 +285,7 @@ ldb #P$SWI2 bra L018C SVCNMI jmp [>D.NMI] -DUMMY rti +DUMMY rti SVCIRQ jmp [>D.SvcIRQ] SWI pshs pc,x,b ldb #P$SWI