view level1/modules/oscode_d64.asm @ 234:61fa26796730

Make comments look more like those in oscode.asm
author roug
date Wed, 17 Jul 2002 07:56:32 +0000
parents 2d2653b5b609
children
line wrap: on
line source

********************************************************************
* oscode - OS-9 Level One V1.2 bootstrap code
*
* $Id$
*
* Ed.    Comments                                       Who YY/MM/DD
* ------------------------------------------------------------------
*        From Dragon 

*        org $2600
         nam Bootstrap
         ttl   Dragon Bootstrap code

os9start equ $EF00
os9size  equ $0F80

Start    fcc "OS"

         clr   >$FF03
         clr   >$FF01
         sta   >$FFDF
         ldb   #6
         ldx   #$FFC6
L0010    sta   ,x++
         decb  
         bne   L0010
         sta   1,x

* clear screen at $8000
         ldx   #$8000
         ldy   #$0200
         lda   #$60
L0020    sta   ,x+
         leay  -$01,y
         bne   L0020

* Write "OS9 BOOT" to the screen
         ldx   #$810C
         leay  <BootMsg,pcr
         ldb   #BootMLen
L002E    lda   ,y+
         sta   ,x+
         decb  
         bne   L002E
         tst   <$72
         beq   L004C

* Move the kernel to top part of RAM
         leau  >Start,pcr
         ldx   #os9size
         ldy   #os9start
L0044    lda   ,u+
         sta   ,y+
         leax  -$01,x
         bne   L0044

* Jump to OS9
L004C    jmp   >os9start+$4F     After the move, this is like jumping to L004F
L004F    leax  <end,pcr
         ldd   $09,x
         jmp   d,x

BootMsg  fcc  "OS"
         fcb  $79
         fcb  $60
         fcb  'B
         fcb  'O
         fcb  'O
         fcb  'T
BootMLen equ   *-BootMsg
end      equ *