Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - these functions provide the capability to invoke intel 80x86 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
These functions provide the capability to invoke Intel 80x86
processor-related functions directly from a program.  Functions that apply
to the Intel 8086 CPU apply to that family including the 80286, 80386 and
80486 processors.  The following functions are defined:

_chain_intr
    chain to the previous interrupt handler

_disable
    disable interrupts

_enable
    enable interrupts

FP_OFF
    get offset part of far pointer

FP_SEG
    get segment part of far pointer

inp
    get one byte from hardware port

inpw
    get two bytes (one word) from hardware port

int386
    cause 386/486 CPU interrupt

int386x
    cause 386/486 CPU interrupt, with segment registers

int86
    cause 8086 CPU interrupt

int86x
    cause 8086 CPU interrupt, with segment registers

intr
    cause 8086 CPU interrupt, with segment registers

MK_FP
    make a far pointer from the segment and offset values

nosound
    turn off the speaker

outp
    write one byte to hardware port

outpw
    write two bytes (one word) to hardware port

segread
    read segment registers

sound
    turn on the speaker at specified frequency

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson