03-16-2010, 11:26 PM
Ok, Another fix :!:
The PRINT42 routine now compiles with -O3. I've also finally included in the library/ directory so
#include <print42.bas>
will be OK now, and it can be called with PRINT42, Print42, print42, etc....
I've also convert it to FASCALL. On any function:
So the initial POP/PUSH sequence can be removed. A FASTCALL function means the 1st parameter is passed on registers. FASTCALL is good for single parameter asm functions. ;-)
This is better explained in another thread.
The PRINT42 routine now compiles with -O3. I've also finally included in the library/ directory so
#include <print42.bas>
will be OK now, and it can be called with PRINT42, Print42, print42, etc....
I've also convert it to FASCALL. On any function:
Code:
SUB FASTCALL MySub(param as Uinteger)
asm
; HL already contains param !
end sub
END SUB
This is better explained in another thread.