From 2d20d0d1f720e064b29aa3578aa33b5146a954e5 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 27 Aug 2014 14:42:44 +0200 Subject: cleanup boot directory --- boot/print16.asm | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 boot/print16.asm (limited to 'boot/print16.asm') diff --git a/boot/print16.asm b/boot/print16.asm deleted file mode 100644 index 5d8ad5c..0000000 --- a/boot/print16.asm +++ /dev/null @@ -1,28 +0,0 @@ -[bits 16] - -;print_string routine ([bx]) -;this routine will print a null terminated string at [bx] to the screen. -print_string: - - pusha ;push all registers - mov ah,0x0e - - print_string_loop: - - ;check if value at [bx] is "\0" (end of string) - mov cl,[bx] - cmp cl,0 - je print_string_finish - - ;otherwise instruct BIOS to print the current char - mov al,cl - int 0x10 - - ;proceed with next char - inc bx - jmp print_string_loop - - print_string_finish: - - popa ;pop all registers - ret ;return to caller -- cgit v1.2.3