04-29-2003, 08:39 AM
Well, portability wise, my routines are useable with lil modifications in *both* C and Pascal. :*) (Ask Wiz)
I mean, emulators(good ones) are made in mixed languages. Like C+ASM , Pascal+ASM but never Pascal+C.
Assembly survived because of the many things it can do very fast that most compilers now just don't have. ie the sharps #.
And with a compiler such as Delphi and VC++, it's easier to add asm statements in code using the asm statements. An you don't even have to do hard stuff when doing that. ie no Es:[Di] but
set active device context(Ds surfaces)
The write to [Edi], even DX progs use ASM. look at the amazing DX water simulation at gamedev.net. I saw the source(It can be optimized since he use lots of push) but even then it ran on my cyrix at full speed. That considering it uses a per pixel ATN for refraction.
I rest my case.
I mean, emulators(good ones) are made in mixed languages. Like C+ASM , Pascal+ASM but never Pascal+C.
Assembly survived because of the many things it can do very fast that most compilers now just don't have. ie the sharps #.
And with a compiler such as Delphi and VC++, it's easier to add asm statements in code using the asm statements. An you don't even have to do hard stuff when doing that. ie no Es:[Di] but
set active device context(Ds surfaces)
The write to [Edi], even DX progs use ASM. look at the amazing DX water simulation at gamedev.net. I saw the source(It can be optimized since he use lots of push) but even then it ran on my cyrix at full speed. That considering it uses a per pixel ATN for refraction.
I rest my case.