home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_10
/
8n10103a
< prev
next >
Wrap
Text File
|
1990-05-08
|
458b
|
10 lines
asm(" push es"); /* save segment register */
asm(" mov ax, 034h"); /* use the Phar Lap Local Descriptor Table (LDT) */
asm(" mov es, ax"); /* segment selector 034h to access real memory */
ebx = addr; /* real memory address desired */
cl = val; /* byte value to poke */
asm(ebx, cl, " mov byte ptr es:[ebx], cl"); /* poke it */
asm(" pop es") /* restore segment register */