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 - reg(<c register name>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 REG(<C register name>)
 Examines the contents of CPU registers.
 Returns <expC> contents of specified register as hex string.

 Valid register names are AX, BX, CX, DX, SP, BP, SI,
                          DI, DS, ES, CS, IP, and FF.

 Returns null if a register name is invalid.

 To get contents of the byte registers (AH, AL, BH, BL,
 CH, CL, DH, DL), take the substring of the full register.

         REG("AX")         returns "FF55" in AX
 SUBSTR( REG("AX"), 1, 2 ) returns "FF"   in AH
 SUBSTR( REG("AX"), 3, 2 ) returns   "55" in AL


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: DOSFUNC ROMBIOS

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