diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-07-19 09:19:58 +0400 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-07-19 09:19:58 +0400 |
| commit | 37e7a5d80b88d29ae1b76fc6efc9f0b819c18c02 (patch) | |
| tree | f8b82f4ed1e2eb441f66d9c248b2d87b46fafc0f /bootloader/clearScreenIntBios.asm | |
| parent | cef56790ea642c4308e34c280508fdcc63a313f0 (diff) | |
| parent | a49a53e48af9bdf64fee43c3772cb654ceb8e6ab (diff) | |
Solve conflicts
Diffstat (limited to 'bootloader/clearScreenIntBios.asm')
| -rw-r--r-- | bootloader/clearScreenIntBios.asm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bootloader/clearScreenIntBios.asm b/bootloader/clearScreenIntBios.asm new file mode 100644 index 0000000..4739430 --- /dev/null +++ b/bootloader/clearScreenIntBios.asm @@ -0,0 +1,30 @@ +clearScreenIntBios: + + ;Save registers + push ax + push bx + push cx + push dx + + mov ax, 0x0600 ;Clear + mov bx, 0x0F00 ;Color black behind white foreground + + mov cx, 0x0000 ;Top left corner + mov dx, 0x5050 ;Bottom right corner 80x80 + + int 0x10 ;Clear the screen + + ;Restore registers + pop dx + pop cx + pop bx + pop ax + + ;Reset Cursor Position + call resetCursorPosIntBios + + ;Back to previous task + ret + +;Include resetCursorPosIntBios +%include "resetCursorPosIntBios.asm" |
