Page 1 of 1

arming!!!

PostPosted: May 4, 2002 @ 6:58pm
by Jadam

PostPosted: May 4, 2002 @ 7:10pm
by Kzinti

arming!!!

PostPosted: May 4, 2002 @ 8:39pm
by andys

PostPosted: May 5, 2002 @ 6:10am
by Jadam
would writing in asm increase performance though, for say PocketSNES or a GBA emulator??? ZSNES is written in x86 asm, and runs beautifully on a Pentuim 75. while SNES9x on that same system is slooooooooooooooow.

is assembler faster ?

PostPosted: May 5, 2002 @ 8:03am
by Conan
Having years of assembler programming experience I can assure you that assembler is faster than C. So long as you understand both the assembly language & the hardware's capabilities you would always get faster code.

At present the resources for C++ on PocketPC are much better than for assembly language. eg: Count how many books you can buy on assembler for PocketPC. It won't take you very long as there are none (If I'm wrong please post title) so using C is easier & to be honest with recent announcements of Xscale & beyond it will not bee too long before 1Ghz PocketPCs are available making the choice of asm less important.

With assembler my approach was always to find those routines which happened again and again & put all the effort into finding the fastest way to shift those bytes around. You need to know how many machine cycles the Op codes take & the best routine to achieve your ends. Thanks to all the fine chaps & ladies ( or just lady as Pam is the only name I've seen on PM ) on PocketMatrix & other boards it's easy to get help in tuning your functions.

Forgetting speed assembly language is not so easy to read so you need to comment absolutely every line but you can do what you like & you don't have to force your brain to understand the machinations of C++ which can make an easy job seem hard at times.

Happy coding

PostPosted: May 7, 2002 @ 5:46am
by Jadam
umm, you can find tons of stuff at www.arm.com, its more generalized about the arm processors, but the asm is there. Plus if you check out the GBA dev sites, you can learn a lot of ARM. And from what ive read about the GBA it uses a sort of dual mode processor, There is (16-bit)Thumb Mode and (32-bit)Arm mode. i would assume arm asm is arm asm. Plus intel has documents on it.

And its not really programming into the PocketPC API, but coding functions, such as an emulator. emulating the opcodes would be faster in arm asm, would it not??

PostPosted: May 7, 2002 @ 9:27am
by _Refractor

PostPosted: May 7, 2002 @ 7:22pm
by jadam1