Article # 244, added by Geoworks, historical record
| first | previous | index | next | last |

Accessing a word of a dword variable (eg, handle of optr) in assembly



In ESP, you can grab the chunk or handle of an optr with the 
".chunk" and ".handle" postfix.  Here's an example:

mov	oself.handle, ds
mov	oself.chunk,  si

You could also use ".segment" and ".offset" or ".high" and ".low"
for similar needs.