From bad25e401363817e53604f51410e321c64c77ec8 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sat, 28 Jan 2017 22:58:59 +0100 Subject: [PATCH] mbr print 'A' --- Readme.md | 3 +++ mbr.asm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Readme.md b/Readme.md index c262a65..57ae4ec 100644 --- a/Readme.md +++ b/Readme.md @@ -46,3 +46,6 @@ INT_NUM | Short Description PM 0x13 | SIMD Floating-Point Exception 0x14 | Virtualization Exception 0x15 | Control Protection Exception + +== BIOS IRQ == +https://en.wikipedia.org/wiki/BIOS_interrupt_call diff --git a/mbr.asm b/mbr.asm index 57f5a12..3103f0d 100644 --- a/mbr.asm +++ b/mbr.asm @@ -1,4 +1,7 @@ bits 16 ; mode 16bits org 0x7C00 ; mbr ae loaded at 0x7C00 +mov al, 41h ; put 'A' in al +mov ah, 0eh ; we want to call function 09h (Write Character and Attribute at Cursor) from interupt 10h +int 10h times 510 - ($ - $$) db 0 ; fill up to 510 with 0 dw 0xAA55 ; MBR magic number