inline assembly

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
inline assembly

inline assembly

Post 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?
TripleFault

RE:inline assembly

Post 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 !)
Post Reply