Mail Archives: djgpp/2002/07/01/20:47:02
>>So I decided I'd have a go at converting the
>>linear address to seg:offset for the ISR.
>
> don't. use the routine provided by djgpp.
*kicks himself for not RTFMing properly*
Thanks for the pointer.
One more question however: I have an assembly file (compile to object
code with tasm), and I want to link it against C source code. From what
I understand, I must declare the ASM functions as extern in the C code,
declare the function global in the ASM code (not forgetting to prefix
the _), and let her rip.
However, I'd like this ASM routine to modify a statically defined
variable, called mouse_state_changed (unsigned char). How do I make it
accessible in the ASM file? Declare it as 'extern mouse_state_changed'
and then refer to [mouse_state_changed], or do I need to invoke further
magic?
Thank you for being patient with me, as I'm sure the answer is in a
manual I missed somewhere.
David Anderson
- Raw text -