[comp.lang.pascal] Inline in TP and DEBUG

tasos@bu-cs.BU.EDU (Anastasios Kotsikonas) (09/26/89)

I want to load some registers with values from variables from within
a Turbo Pascal 5.0 program. Using Turbo C syntax this would be like:

_AX := i;  { in TC _AX is a pseudo-variable that stands for the ax reg. }
j := _SP;
etc.

Of cource in TP I need inline code. Can I use DEBUG to get the hex values for
the inline instruction(s), and how? Or, is there any other way of obtaining
these hex values?

Thanks,
Tasos

Internet: tasos@cs.bu.edu

mg2n+@andrew.cmu.edu (Martin G. Greenberg) (09/27/89)

Turbo Pascal 5.0 implements, in the dos unit, a type called regs which
allows access to the registers.
Regs itself, if I remember correctly, is a record of long words, one per
register.

        							MGG

PS Obviously, fooling around with inline code isn't really necessary.