Coding language

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

What language do you use ?

ASM only
11
50%
C only
2
9%
BasicEga
0
No votes
Lot of C, little bit of ASM
9
41%
Lot of ASM, little bit of C
0
No votes
 
Total votes: 22

ob1
Very interested
Posts: 463
Joined: Wed Dec 06, 2006 9:01 am
Location: Aix-en-Provence, France

Coding language

Post by ob1 » Fri Jan 05, 2007 9:21 am

I know for some of you (TmEE, Kaneda, Stef, Fonz, ...) , but precisely ...

Pascal
Very interested
Posts: 200
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Post by Pascal » Fri Jan 05, 2007 10:19 am

i'm using asm only with snasm68k ;)

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Fri Jan 05, 2007 10:59 am

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

Edge-`
Interested
Posts: 39
Joined: Sun Dec 10, 2006 3:26 am

Post by Edge-` » Fri Jan 05, 2007 2:03 pm

I'm currently using C (XGCC). A lot easier for me to understand for some reason.
Genny Wars (Someday.. :D)

stalepie
Very interested
Posts: 101
Joined: Sun Dec 10, 2006 1:18 pm

Post by stalepie » Fri Jan 05, 2007 2:11 pm

I haven't made much progress, but I was planning on ASM only.

LocalH
Very interested
Posts: 152
Joined: Tue Dec 19, 2006 5:04 pm

Post by LocalH » Sat Jan 06, 2007 4:47 am

100% ASM baby. Oldskool-style.

cdoty
Very interested
Posts: 117
Joined: Wed Nov 29, 2006 2:54 pm
Location: Houston, TX
Contact:

Post by cdoty » Sat Jan 06, 2007 5:47 am

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.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sun Jan 07, 2007 5:28 pm

I'm for a lot of C mixed with some ASM part (where insame optimisation is needed :p)
C is a more confortable language, cleaner and easier to read for almost people (well, not all obviously).

Fonzie
Genny lover
Posts: 323
Joined: Tue Aug 29, 2006 11:17 am
Contact:

Post by Fonzie » Mon Jan 08, 2007 9:03 pm

Same, i use C only... But for mad things like segacd bios jumping or rom header, i had to use ASM.

And Pascal may confirm that GCC generates a pretty fast code, probably as fast as ASM for average code, isn't it? ;)

Pascal
Very interested
Posts: 200
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Post by Pascal » Tue Jan 09, 2007 7:37 am

yup, i confirm, GCC code generation is really impressive, even better than my poor asm code ^_^

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Tue Jan 09, 2007 7:52 am

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" :)

Pascal
Very interested
Posts: 200
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Post by Pascal » Tue Jan 09, 2007 7:55 am

Stef 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" :)
as i said i'm weak in asm ^_^ i only checked a single routine

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Tue Jan 09, 2007 8:37 am

Pascal wrote:
Stef 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" :)
as i said i'm weak in asm ^_^ i only checked a single routine
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 least :)

ob1
Very interested
Posts: 463
Joined: Wed Dec 06, 2006 9:01 am
Location: Aix-en-Provence, France

Post by ob1 » Tue Jan 09, 2007 9:15 am

Stef wrote:generated code is efficient, not the best code but very good at least :)
+1
although I'm an ASM-only guy !!!

Inigo Montoya
Newbie
Posts: 2
Joined: Sat Mar 31, 2007 7:05 am

Where is Forth?

Post by Inigo Montoya » Sat Mar 31, 2007 7:11 am

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?

Post Reply