Mail Archives: djgpp/1997/06/08/12:07:46
>
> I need to write an interrupt in assembly using nasm. How can I calculate
> the size of the code for that procedure?
Just put a label at the end of your procedure, and subtract the entry
point from it. Similar to the way allegro works, by putting a dummy
function at the end and then subtracting from that.
myProc :
lots of code here
endMyProc: ret
You can probably store it in a static variable if you want to just reference
it at run time
Andrew
- Raw text -