Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - call rombios with word(<n interrupt>), <c registers>, <n flags> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CALL ROMBIOS WITH WORD(<N interrupt>), <C registers>, <N flags>
 Provides access to ROM BIOS function calls.
 <registers> is altered to contain registers, <flags> to contain flags.

 <interrupt> is the decimal number of desired interrupt.
 <registers> is a 32-byte character string containing the desired
             contents of registers AX, BX, CX, DX, SI, DI, DS, ES
             as hexadecimal strings.
 <flags> is a numeric memory variable that is altered to return flags.

 <registers> must contain something for every register in the order:
             AX, BX, CX, DX, SI, DI, DS, ES.  If a register is not
             needed, assign it "0000".  If DS and ES are given "0000",
             it is ignored and their current contents are preserved.

 Does not execute any interrupts lower than INT 16 (10H).

 * Change cursor to full-sized box
 m_ax = "0100"
 m_bx = "0000"
 m_cx = "0012"  && Cursor scan lines 0-18
 m_dx = "0000"
 m_si = "0000"
 m_di = "0000"
 m_ds = "0000"  && Don't care
 m_es = "0000"  && Don't care
 m_regs = m_ax + m_bx + m_cx + m_dx + m_si + m_di + m_ds + m_es
 m_flags = 0
 m_intrpt = 16
 CALL ROMBIOS WITH WORD(m_intrpt), m_regs, m_flags

 Hazard
    Invalid register contents can cause serious errors,
    including computer lock-up and data destruction.
    Be sure to consult a reliable source, such as IBM's or
    Microsoft's DOS technical references, or The Peter Norton
    Programmer's Guide to the IBM-PC.


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: DOSFUNC HEX() PEEK...() POKE...() REG()

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