Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>reg read from or load into register buffer</b> http://www.X-Hacker.org [<<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

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