Page 1 of 1
inline assembly
Posted: Tue Nov 04, 2003 12:00 am
by inline assembly
Does anyone know how you would store the offset and segment addresses of an array in c in the registers bx and es using inline assembly?
RE:inline assembly
Posted: Tue Nov 04, 2003 12:00 am
by TripleFault
Read the OSDEV.ORG Developer Guides:
http://www.osdev.org/developers/index.jsp
There are 2 good articles called "Mixing Assembly and C" and "Inline Assembly with DJGPP". You should find everything you need to know in those articles.
Try calling the Assembly function with the C array as one of the arguments. If you mix C and assembly it might actually be easier than inline assembly.
Hope this helps!
~ TripleFault !)