jankos/loader.s
shockrah c8851baea6 Structure:
renamed .asm files to .s extension

Makefile:
	Building .s first over

Bochs conf:
	changed display server to x instead of sdl

Changed function defs to not have the parameter names for less confusion
2019-09-14 23:42:49 -07:00

28 lines
516 B
ArmAsm

; since we have no stack we have to create one for the OS
global loader
; this section is partly handled by nasm tolerating some minor bs
MAGIC_NUMBER equ 0x1BADB002
FLAGS equ 0x0
CHECKSUM equ -MAGIC_NUMBER
; size in bytes of stack
KERNEL_STACK_SIZE equ 4096
extern test_fb
section .text
; align all instructions to 4 byte boundary by the x86 instruction set law
align 4
; dropping our magic and other things into memory
dd MAGIC_NUMBER
dd FLAGS
dd CHECKSUM
loader:
call test_fb
.loop:
jmp .loop