diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-08-27 14:42:44 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-08-27 14:42:44 +0200 |
| commit | 2d20d0d1f720e064b29aa3578aa33b5146a954e5 (patch) | |
| tree | ca0adbc37cb1408ae74bb7ed525b462690baa73e /boot/test.asm | |
| parent | 5e48d8259fb2857ad4441de77cbacddd50a21ec0 (diff) | |
cleanup boot directory
Diffstat (limited to 'boot/test.asm')
| -rw-r--r-- | boot/test.asm | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/boot/test.asm b/boot/test.asm deleted file mode 100644 index 62110b6..0000000 --- a/boot/test.asm +++ /dev/null @@ -1,48 +0,0 @@ -[org 0x7c00] - -[bits 16] -jmp boot_16 ;start boot process - -STR_VERSION: - - db "FoolOs~",0 - -;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 - -boot_16: - - mov bx, STR_VERSION - call print_string - - jmp boot_16 - -times 510-($-$$) db 0 -dw 0xaa55 - - - |
