From 9d2b511fd521fc61ed2eb6f0fc5ed23252ac3190 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sat, 18 Jul 2015 10:23:36 +0400 Subject: Add some bios routines --- bootloader/resetCursorPosIntBios.asm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bootloader/resetCursorPosIntBios.asm (limited to 'bootloader/resetCursorPosIntBios.asm') diff --git a/bootloader/resetCursorPosIntBios.asm b/bootloader/resetCursorPosIntBios.asm new file mode 100644 index 0000000..18cb0d2 --- /dev/null +++ b/bootloader/resetCursorPosIntBios.asm @@ -0,0 +1,21 @@ +resetCursorPosIntBios: + + ;Save registers + push ax + push bx + push dx + + mov ax, 0x0200 ;Move cursor interrupt + mov bx, 0x0000 ; X position + mov dx, 0x0000 ; Y Position + + ;Call 0x10 interrupt service + int 0x10 + + ;Restore registers + pop dx + pop bx + pop ax + + ;Back to previous task + ret -- cgit v1.2.3