From b4c413da4b691dfd04beb5c747dd922e097dffc1 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sat, 18 Jul 2015 11:16:14 +0400 Subject: Add print routine --- bootloader/bootloader.asm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bootloader/bootloader.asm') diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index ee11e2c..f1bb48a 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -7,10 +7,11 @@ start: ;Include bios routines and jump to skip including code jmp skipInc %include "clearScreenIntBios.asm" +%include "printIntBios.asm" skipInc: ;Init CPU registers -mov ax, 0x0C70 ;Put bootloader adress in ax register +mov ax, 0x07C0 ;Put bootloader adress in ax register mov ds, ax ;Init data segment ;Init stack from 0x80000 to 0x8f000 @@ -22,10 +23,16 @@ mov sp, ax ;Set stack offset ;Clear the screen call clearScreenIntBios +;Print msg +mov si, helloBootloader ;load msg in si register +call printIntBios ;print the msg + ;Pause here ! infiniteLoop: jmp infiniteLoop +;Define data +helloBootloader db "PiegOS bootloader successfully running !", 0 ;Complete the MBR with nothing times 510 - ($ - start) db 0x0 -- cgit v1.2.3