#1001 - animension - Mon Jan 13, 2003 7:03 am
How does one go about calling built-in BIOS functions like SWI 6 (DIV)? Is ASM the only way to do this? And if so, how does one incorporate this into an inline form in C++ code?
Say you had a function:
unsigned short BIOS_DIVIDE(unsigned short a, unsigned short b);
How would you inline the ASM and how would you know which registers hold what value? If this needs to go into the ASM forum my apologies.
Say you had a function:
unsigned short BIOS_DIVIDE(unsigned short a, unsigned short b);
How would you inline the ASM and how would you know which registers hold what value? If this needs to go into the ASM forum my apologies.