I would like to incorporate C library functions (especially Graphx) in ASM programs. Could someone point me in the right direction? I've tried to find posts on the subject, but no luck.

It would be great if I could find a list of the functions in the Graphx library with changes that they make to the ASM registers, and a way to call the functions from ASM.

Thanks for any info folks have time to share...
You might want to look here: https://github.com/PeterTillema/Age-Of-CEmpires-I/blob/master/aoce.asm#L38-L100
Don't rely on registers; C functions can change and whatever. The output is always A or HL, and the arguments are pushed on the stack. For example this: https://github.com/PeterTillema/Age-Of-CEmpires-I/blob/master/aoce.asm#L148-L150
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum