Coding language
Moderator: BigEvilCorporation
Coding language
I know for some of you (TmEE, Kaneda, Stef, Fonz, ...) , but precisely ...
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Same here !!! I would have used BAX, but I couldn't get it running and I don't know C so ASM it is
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
I did asm only for a long time. With Frog Feast, I switched to C with a lot of asm functions. Which is ironic, since I once said "I wouldn't even consider programming the Genesis in C".
It is much easier to do game logic and user interaction programming in C, and system level stuff in asm. And, it made the game a lot more portable. Once the low level stuff is written, the C stuff works with almost no changes.
Frog Feast isn't the best system for an action packed game, but could easily be modified to do it.
The biggest problem with the Frog Feast way is that it allows the game to control updates and stuff, it would be better if the system controlled the updates, and only called the C code for game logic and input.
It is much easier to do game logic and user interaction programming in C, and system level stuff in asm. And, it made the game a lot more portable. Once the low level stuff is written, the C stuff works with almost no changes.
Frog Feast isn't the best system for an action packed game, but could easily be modified to do it.
The biggest problem with the Frog Feast way is that it allows the game to control updates and stuff, it would be better if the system controlled the updates, and only called the C code for game logic and input.
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Well to be honest i don't think the GCC 68k code generation is that good.
It's correct but we can definitly do better job by hand on critical part and sometime we need to help C compiler (as the i = num; while(i--) {...}; for dbcc use)
Anyway i find it's sufficient in almost case. It's why i choose "a lot of C, litlle of ASM"
It's correct but we can definitly do better job by hand on critical part and sometime we need to help C compiler (as the i = num; while(i--) {...}; for dbcc use)
Anyway i find it's sufficient in almost case. It's why i choose "a lot of C, litlle of ASM"
as i said i'm weak in asm ^_^ i only checked a single routineStef wrote:Well to be honest i don't think the GCC 68k code generation is that good.
It's correct but we can definitly do better job by hand on critical part and sometime we need to help C compiler (as the i = num; while(i--) {...}; for dbcc use)
Anyway i find it's sufficient in almost case. It's why i choose "a lot of C, litlle of ASM"
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Anyway as soon we know the tricks in C to help the compiler, generated code is efficient, not the best code but very good at leastPascal wrote:as i said i'm weak in asm ^_^ i only checked a single routineStef wrote:Well to be honest i don't think the GCC 68k code generation is that good.
It's correct but we can definitly do better job by hand on critical part and sometime we need to help C compiler (as the i = num; while(i--) {...}; for dbcc use)
Anyway i find it's sufficient in almost case. It's why i choose "a lot of C, litlle of ASM"
-
- Newbie
- Posts: 2
- Joined: Sat Mar 31, 2007 7:05 am
Where is Forth?
Am I the only person who uses Forth? Low memory machines are where it really excels. If only I could get my compiler working... Oh well I just have to use asm for now. I can get the exact same results in asm anyway its just a pain in the ass, and not interactive. Do any emulators support keybords?