Interrupting BIOS with 8086 Assembly Program

code segment
assume cs:code
start:
mov sp, 7000h
mov ah, 01
mov ch, 00
mov cl, 14
int 10h
mov ah, 02
mov bh, 00
mov dh, 23
mov dl, 10
int 10h
mov ax, 4c00h
int 21h
int 3
code ends
end start

Output

C:\TASM>masm an_bios.asm
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.  All rights reserved.

Object filename [an_bios.OBJ]:
Source listing  [NUL.LST]:
Cross-reference [NUL.CRF]:

  50406 + 450250 Bytes symbol space free

      0 Warning Errors
      0 Severe  Errors

C:\TASM>link an_bios.obj

Microsoft (R) Overlay Linker  Version 3.60
Copyright (C) Microsoft Corp 1983-1987.  All rights reserved.

Run File [AN_BIOS.EXE]:
List File [NUL.MAP]:
Libraries [.LIB]:
LINK : warning L4021: no stack segment

C:\TASM>debug an_bios.exe
-g
Program terminated normally
-q

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.