de-inline debug_init from main

This commit is contained in:
Nero 2019-03-23 21:26:46 +00:00
parent d54f8ac4b9
commit 4489dd1b47
2 changed files with 12 additions and 8 deletions

View File

@ -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 ; this kprints registers
; expect to be called as interrupt routine ; expect to be called as interrupt routine
debug_reg_ir: debug_reg_ir:

View File

@ -1,19 +1,13 @@
main: main:
mov ax, cs mov ax, cs
mov ds, ax mov ds, ax
mov es, ax
mov bx, 0x002E
mov dx, debug_reg_ir
call ivt_set
call debug_init
call heap_init call heap_init
mov ax, 18 mov ax, 18
call malloc call malloc
int 0x2E
.endloop: .endloop:
hlt hlt
jmp .endloop jmp .endloop