D-Bug & Automation Forum
D-Bug & Automation Forum >> Coding >> Languages, atari ST and all.
http://d-bug.mooo.com/dbugforums/cgi-bin/yabb2/YaBB.pl?num=1243377085

Message started by Christos on 26.05.09 at 22:31:23

Title: Languages, atari ST and all.
Post by Christos on 26.05.09 at 22:31:23
Hi reboot!
I am going to post the first jaguar coding question here!

Well my asm language skills are non existant and since I am also very bad in C is there some way I can use my falcon and gfa basic to code the beast? I just got given a jaguar (big thanks to the god that gave it to me)and  I thought I'd put it to some use.

I was thinking something along the lines of making a setup code using peeks and pokes and then just normal basic code that compiles to 68k. Is that possible at all?
TIA :)

Title: Re: Languages, atari ST and all.
Post by CJ on 27.05.09 at 09:14:38
If you can code in "C" you should be able to link that into a working binary, otherwise your out of luck.  It's assembler or bust, I'm afraid!

Title: Re: Languages, atari ST and all.
Post by promethea on 27.05.09 at 15:34:50
Well,

The problem with gfa (and many languages) is that the instructions used (e.g. prcircle) when compiled are translated into assembly language tailor made for just one computer model. Diverge the hardware just a little and you're left with an incompatible binary.

Now, as you know, the jaguar has vastly different achitrecture than the ST. So much in fact that pretty much only the 68000 is common to the 2 machines. Memory mappings, O/S calls, etc etc are totally different.

So, unless you get someone to make the compiler to covert your source code to stuff that the jag will comprehend, you're b0rked.

Quick example to make my point: trap 14 function 2 gives you the physbase on st. What does it do on the jaguar? Are traps set up? Do they have the same parameter passing scheme as TOS?

Title: Re: Languages, atari ST and all.
Post by Christos on 27.05.09 at 15:52:12
Yes, I understand that, but what if you only use the basic instructions and nothing h/w specific? For example if/then etc should translate to pure 68k code.
Well, it was just a thought and I just wondered about the possibility.

Title: Re: Languages, atari ST and all.
Post by promethea on 27.05.09 at 16:03:45
Might as well code it in asm then :)

Oh, and you'll need to strip off the gfa .prg header too...

D-Bug & Automation Forum » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.