ACCESS REGISTERS FROM TURBO C??

Ge' Weijers ge at wn3.sci.kun.nl
Tue Dec 4 00:28:50 AEST 1990


al198723 at mtecv2.mty.itesm.mx (SANCHEZ P JESUS E) writes:

>You can access the pseudovariables:
>	_AX, _BX, _CX, _DX, _SI, _DI, _BP, _SP, _ES
>(I'm not sure about _CS, _DS, _SS)

>They correspond to the 8086 registers, and you may access them freely
>in your program.

Yeah, like in _SP = 0x4561;  There is more than enough rope to hang
yourself here. Caveat programmer.

Ge' Weijers
--
Ge' Weijers                                    Internet/UUCP: ge at cs.kun.nl
Faculty of Mathematics and Computer Science,   (uunet.uu.net!cs.kun.nl!ge)
University of Nijmegen, Toernooiveld 1         
6525 ED Nijmegen, the Netherlands              tel. +3180652483 (UTC-2)



More information about the Comp.lang.c mailing list