int 11h

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
unknown user

int 11h

Post by unknown user »

how do you use asm int 11h? my book says it "returns a word showing all peripherals attached to the system" but i'm not sure what the word looks like or what register it is or how to make any sense out of it.
DynatOS

Re:int 11h

Post by DynatOS »

INT 0x11 ;Returns Equipment Values in AX

Breakdown of AX after the return:
Bit: Value:
--------------------------------
0 diskette installed
1 8087 (Math Co-Processor) present
2-3 always = 11
4-5 initial video mode
01 = 40x25 COLOR
10 = 80x25 COLOR
11 = 80X25 IBM monochrome
6-7 number of diskette drives (only if bit 0 = 1)
00 = 1
01 = 2
8 0 = dma present, 1= no dma on system
9-11 number of RS232 cards
12 game I/O attached
13 serial printer installed (IBM-PCjr)
14-15 number of printers installed
unknown user

Re:int 11h

Post by unknown user »

thanks
Post Reply