Function 44h I/O Control for Devices (IOCTL) Get or Set Device Informationentry AH 44h
AL 00h Get Device Information (from DX)
BX file or device handle
return DX device info
If bit 7 set: (character device)
bit 0: console input device
1: console output device
2: NUL device
3: CLOCK$ device
4: device is special
5: binary (raw) mode
6: not EOF
12: network device (DOS 3.x)
14: can process IOCTL control
strings (func 2-5)
If bit 7 clear: (file)
bits 0-5: block device number
6: file has not been written
12: Network device (DOS 3.x)
15: file is remote (DOS 3.x)
Function 44h I/O Control for Devices (IOCTL) Get or Set Device Information
entry AH 44h
00h Get Device Information (from DX)
note This function can be used to detect input and output redirection. Since
the handle for STDOUT is always 1, if after calling Int 21 with AX=4400h
and BX=0001h, the character device bit (bit 7) and the console output
device bit (bit 1) are set in DX, anything sent to STDOUT will appear on
the screen. If bit 7 is clear, we know output is being redirected to a
file. If bit 1 is zero, the redirection is to another device.
See also:
| file: /Techref/INT/21F/44SF/00.htm, 1KB, , updated: 1999/4/26 11:36, local time: 2012/2/8 19:31,
38.107.179.231:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/INT/21F/44SF/00.htm"> INT 21F 44SF 00</A> |
| Did you find what you needed? |
|
Calculator 7-seg LED chars, port values, resistor color codes and common values, ohms law, wavelength / frequency, RMS and Peak, max value for x bits, etc... |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.