inline assembly
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
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 !)
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 !)