Re: LuxAsm questions

From: wolfgang kern (nowhere_at_nevernet.at)
Date: 06/24/04


Date: Thu, 24 Jun 2004 11:33:19 +0200


"f0dder" answered Beth:

[About call vs. int method]
| ...you can keep them in registers
| - just "call write" rather than "int 80h".

I use int7f (since 1992) in my Os somehow similar to Linux,
but only if a different mode is to be called.

So a 'true realmode' part can call all PM16 and PM32 API-code,
and any PM-code can call true realmode (BIOS and direct I/O) routines.

PM32 will call PM32-APIs through linear-offsets as this is faster by far,
even there are three or four code-bytes more.

bytes latency (AMD,P4):

2 Int80 /iret RM ~50
                        PM ~ 200 [even equal privileged]
                        PM >2000 if task-switch
5 call near imm /ret 8 (3+5)
6 call near[mem]/ret 11 (4+5+2)

More worse for windoze directX int20 calls with the [EIP]-parameters.

[...]
__
wolfgang