de-inline debug_init from main
This commit is contained in:
parent
d54f8ac4b9
commit
4489dd1b47
@ -1,3 +1,13 @@
|
||||
debug_init:
|
||||
push bx
|
||||
push dx
|
||||
mov bx, 0x002E
|
||||
mov dx, debug_reg_ir
|
||||
call ivt_set
|
||||
pop dx
|
||||
pop bx
|
||||
ret
|
||||
|
||||
; this kprints registers
|
||||
; expect to be called as interrupt routine
|
||||
debug_reg_ir:
|
||||
|
@ -1,19 +1,13 @@
|
||||
main:
|
||||
mov ax, cs
|
||||
mov ds, ax
|
||||
mov es, ax
|
||||
|
||||
mov bx, 0x002E
|
||||
mov dx, debug_reg_ir
|
||||
|
||||
call ivt_set
|
||||
|
||||
call debug_init
|
||||
call heap_init
|
||||
|
||||
mov ax, 18
|
||||
call malloc
|
||||
|
||||
int 0x2E
|
||||
|
||||
.endloop:
|
||||
hlt
|
||||
jmp .endloop
|
||||
|
Loading…
Reference in New Issue
Block a user