From 198d610e32934f6ab7e4e4f1d1f764637b920163 Mon Sep 17 00:00:00 2001 From: NT-SOFT Date: Sun, 10 Nov 2024 17:24:27 +0100 Subject: [PATCH] Create bootmgr.asm Adding a happy window --- bootmgr.asm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bootmgr.asm diff --git a/bootmgr.asm b/bootmgr.asm new file mode 100644 index 0000000..7940279 --- /dev/null +++ b/bootmgr.asm @@ -0,0 +1,24 @@ +ORG 100h ; Origin for .COM file + +; Set Video Mode 03h (Text Mode 80x25, 16 colors) +MOV AH, 0 ; Function to set video mode +MOV AL, 3 ; Mode 03h (80x25 text mode) +INT 10h ; Call BIOS interrupt + +; Move the cursor to position (10, 10) (row 10, column 10) +MOV AH, 02h ; Function to move cursor +MOV BH, 0 ; Page number (0 for active page) +MOV DH, 10 ; Row (line 10) +MOV DL, 10 ; Column (column 10) +INT 10h ; Call BIOS interrupt + +; Display "Hello" +MOV AH, 09h ; Function to display string +LEA DX, HelloMessage ; Load address of "Hello" message +INT 21h ; DOS interrupt for printing string + +; Exit program +MOV AH, 4Ch ; DOS function to terminate program +INT 21h ; Call DOS interrupt + +HelloMessage DB 'Hello$' ; Message to be printed