Mercurial > hg > Members > kono > nitros9-code
diff level2/modules/kernel/freboot.asm @ 1145:ca83286ded5b
Start of new OS-9 L2 Kernel
author | boisy |
---|---|
date | Tue, 22 Apr 2003 19:35:48 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/modules/kernel/freboot.asm Tue Apr 22 19:35:48 2003 +0000 @@ -0,0 +1,32 @@ +****************************************************** +* F$ReBoot entry point +* Currently disabled (doesn't work) +* Besides, there's no need for this code to be in system memory. +* A user-mode program can do this just as well. +* +* Entry A = 0 Cold ReBoot +* = 1 Quit to RSDOS +* +*ReBoot equ * +* orcc #Carry Set error flag +* rts Exit +* tst R$A,u Cold start (a=0) +* bne WarmBt no, attempt a warm boot +*WarmBt orcc #IntMasks +* ldb #CodeSize +* leax BootCode,pc +* tfr 0,y +*BootLoop lda ,x+ +* sta ,y+ +* decb +* bne BootLoop +* jmp >$0000 +*BootCode equ * +* lda >$ffa8 +* sta >$ffa0 +* clra +* sta >$ff90 +* sta >$ff91 +* jmp >$ed5f +*CodeSize equ *-BootCode +