No, no, nothing like that. It's only the assembler syntax. Traditional assembler syntax for Atari and others (known as Motorola syntax) uses register names without a prefix, so there is a potential name conflict between register names and labels.Petari wrote: ↑Thu Jun 28, 2018 10:54 amAs said, I'm not good with C. So, you mean that should change something at ASM parts syntax ? Or you mean that not use 68000 ASM at all ?
I don't think that it can be done without serious speed problems and lot of time. Early stage - HW init, test, BIOS is done in ASM. Then interrupt handlers, because they are time critical. If it is just to change sysntax of included ASM code, should be not that hard.
Other way, what I think is more realistic is to use some established C compiler for Atari. That will not produce so efficient code as some modern, but it will work after not too much corrections, I guess.
But gcc uses a percent sign on registers (AT&T syntax) to avoid this problem. However, due to many Atari programs using the older form, the m68k-atari-mint version of gcc has been modified to use the old assembler syntax. And new Atari programs written in C tend to continue using the old syntax as well, perpetuating the problem.
It is a very minor point of difference, but the end result is that a special version of GCC, specific to the Atari ST, is needed. If AT&T syntax is used for inline assembler, you can just use gcc straight out of the box.