[comp.os.msdos.programmer] Converting TP5 INline func to TC++

ajai@sce.carleton.ca (Ajai Sehgal) (10/24/90)

Does anyone know how to code the equivalent of the TP "inline" function in
TC++ ? The inline function puts machine code directly into the compiled
source. I know I can use the "_emit_" function to put single byte machine
instructions in, and I can also use variables but in TP the variable is used
slightly differently, ie:

	"The value of a variable is the offset address of the variable
	 within its base segment. The base segment of a global var is the
	 data segment which is accessible through the DS register."

My variable is PPT = array[0..255,0..2] of byte; and the inline statement
I'm trying to translate looks like this:

	inline($1E/$C5/$76/<PPT/$C8........);   

The "<" means that only the least significant byte of the value is coded.

Any help would be greatly appreciated.

Ajai.