[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
REG                      Read from or Load into Register Buffer

 REG register, value                     ' Statement
 y = REG(register)                       ' Function

    Writes a value to a specified field of the register buffer (Statement)
    or returns the value in a specified field of the register buffer
    (Function).

    register    A numeric expression in the range 0 to 9; specifies which
                register to read or write, as follows:

                              0    Flags
                              1    AX
                              2    BX
                              3    CX
                              4    DX
                              5    SI
                              6    DI
                              7    BP
                              8    DS
                              9    ES

       value    numeric expression in the range 0 to 65535.

   -------------------------------------------------------------------------

      Notes:    The ABSOLUTE and INTERRUPT calls use the register buffer
                before they make the call and after the call is complete,
                the contents of the register buffer are up-to-date with
                the current register values.

                If register is not in the range 0 to 9, runtime error 5
                (Illegal Function Call) occurs.

See Also: CALL ABSOLUTE CALL INTERRUPT
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson