alcedo/kernel/kernel.nim

17 lines
406 B
Nim

import tty, gdt, irq, serial
proc kernelMain() {.exportc: "kernel_main"}=
serial.init()
serial.write("Booting OS")
gdt.gdtInstall()
serial.write("GDT installed")
terminalInitialize()
terminalWrite("Hello World!\L")
terminalWrite("MAX_INT:")
terminalWrite(high(int))
terminalWrite("\LMIN_INT:")
terminalWrite(low(int32)+1)
for i in 0..22:
terminalWrite(i)
terminalWrite('\L')