Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed init function

  • Loading branch information...
commit 27594346832005eecb0f02cbd8ef104b769fcaf9 1 parent 17a9dc8
Alex Ford authored
Showing with 24 additions and 2 deletions.
  1. +1 −1  src/Kernel/main.dasm
  2. +23 −1 src/Kernel/multitasker.dasm
View
2  src/Kernel/main.dasm
@@ -1,6 +1,6 @@
JSR fn_init_MM
JSR fn_init_IM
-JSR multitasker_Init
+JSR pm_init
#include "mem_manager.dasm"
#include "multitasker.dasm"
#include "int_manager.dasm"
View
24 src/Kernel/multitasker.dasm
@@ -163,4 +163,26 @@ SET PC, POP
:multitasker_Progs_12 dat 0,0,0,0,0,0,0,0,0,0,0
:multitasker_Progs_13 dat 0,0,0,0,0,0,0,0,0,0,0
:multitasker_Progs_14 dat 0,0,0,0,0,0,0,0,0,0,0
-:multitasker_Progs_15 dat 0,0,0,0,0,0,0,0,0,0,0
+:multitasker_Progs_15 dat 0,0,0,0,0,0,0,0,0,0,0
+
+; EVERYTHING BELOW WILL BE INIT STUFF!
+
+:pm_init
+:multitasker_Init_Loop
+HWQ J
+IFE B, 0x12d0
+IFE A, 0xb402
+JSR multitasker_Init_Clock
+ADD J, 1
+SET PC, multitasker_Init_Loop
+SET PC, POP
+:multitasker_Init_Clock
+SET A, J
+JSR Clock_SetID
+SET A, 12
+JSR Clock_SetTicksec
+SET A, multitasker_Interrupt
+SET [current_process], 0
+JSR fn_request_handler_k
+JSR Clock_SetIntMsg
+SET PC, POP
Please sign in to comment.
Something went wrong with that request. Please try again.