Dec 122017
 
Execute any DOS or BIOS interrupt from the keyboard. Displays all registers before and after. Great for testing DOS functions.
File INT86V2.ZIP from The Programmer’s Corner in
Category Assembly Language
Execute any DOS or BIOS interrupt from the keyboard. Displays all registers before and after. Great for testing DOS functions.
File Name File Size Zip Size Zip Type
INT86.EXE 10303 5992 deflated
INT86.TXT 2764 1009 deflated
TPCREAD.ME 199 165 deflated

Download File INT86V2.ZIP Here

Contents of the INT86.TXT file


INT86.EXE


CLASS: Lattice


NAME
INT86 sets registers and generates interrupt from keyboard


SYNOPSIS
int86 [,] ...

DESCRIPTION
Values can be start with 0x for hexidecimal, 0 for octal or
default to decimal. A number not equated to a register will be used
as the interrupt number.
This program permits the user to set the CPU registers and generate
DOS and BIOS interrupts directly from the keyboard. It is very usuful
when trying to see what values are returned in what registers. I have
found it to be an excellent teaching tool for learning about
interrupts and DOS service functions. Returns are in decimal, hexdecimal
and binary. Byte and word configurations are shown.


EXAMPLE
The best way to learn about int86 is to try using it.


int86 33 ah=42

vec=33 (21h)
reg h l x
a 00101010, 42,0x2a 00000000, 0,0x00 0010101000000000,10752,0x2a00
b 00000000, 0,0x00 00000000, 0,0x00 0000000000000000, 0,0x0000
c 00000000, 0,0x00 00000000, 0,0x00 0000000000000000, 0,0x0000
d 00000000, 0,0x00 00000000, 0,0x00 0000000000000000, 0,0x0000
si 0000000000000000, 0,0x0000
di 0000000000000000, 0,0x0000
reg h l x
a 00101010, 42,0x2a 00000100, 4,0x04 0010101000000100,10756,0x2a04
b 00000000, 0,0x00 00000000, 0,0x00 0000000000000000, 0,0x0000
c 00000111, 7,0x07 11000100,196,0xc4 0000011111000100, 1988,0x07c4
d 00001011, 11,0x0b 00000011, 3,0x03 0000101100000011, 2819,0x0b03
si 0000000000000000, 0,0x0000
di 0000000000000000, 0,0x0000
carry flag: set

In this example the DOS service interrupt (decimal 33) was requested.
The DOS function call to function 42 (decimal) was placed in ah.
This request the date to be returned.
Upon return for the interrupt cx has the year (1988)
dh has the month (11) dl has the day (03) and al has a 4 for the day of the
week (Thursday). The return status of the carry flag is also shown.


This routine may also look for the current setup of your machine,
show availible memory or set screen attributes. Be very careful when
setting registers. Un predicible things may happen if you make a
mistake. Check with any guide to DOS functions and BIOS calls for
what registers to load.





 December 12, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)