The best place to download an ASMX sources is here.
To fully integrate a newly-downloaded asmsh.c source file in ASMX, just add the
Code: Select all
ASSEMBLER(SH);
Moderator: BigEvilCorporation
Code: Select all
ASSEMBLER(SH);
In the case of GAS source file:Chilly Willy wrote: Mon Mar 31, 2025 9:49 pm sh2_fixed.s - an example of gas format
https://pastebin.com/RhrBM7bB
int_m.src - hitachi assembler format (most SEGA's libs for 32X and Saturn are in this format)
https://pastebin.com/1tuKMYHw
Now I'm trying to add the PowerPC - the heart of Sega Model 3 arcade hardware - architecture support (this arch assembly module is rewritten by the go ARM module, so the source file for a while still have many "tails" of it), but there is a problem with o, ., a and l postfixes for some commands - compiled ASMX exe file perfectly understand these commands without of postfixes, but the same commands with them for this time gives an error. Where can be the root of problem?Chilly Willy wrote: Mon Apr 07, 2025 5:06 pm Thanks. Knowing the syntax asmx uses for SH will allow us 32X/Saturn/DC folks to modify our code to work for cases where we want to use asmx instead of gas or shasm.
Code: Select all
case o_ThreeReg:
oldLine=linePtr;
GetWord(word);
reg1=FindReg(word,"O");
if(reg1==0) parm=parm|0x400;
else linePtr=oldLine;
GetWord(word);
reg1=FindReg(word,".");
if(reg1==0) parm=parm|1;
else linePtr=oldLine;
Code: Select all
oldLine=linePtr;
if (GetWord(word) == 'O') parm=parm|0x400;
else linePtr=oldLine;
if (GetWord(word) == '.') parm=parm|1;
How should I to detect an o or . postfix instead?Chilly Willy wrote: Sun Jun 08, 2025 3:14 pm Any word on the PPC support? Or do you need more help finding issues?
I replaced the code from second quote with a code from first, and all the same getting a same error. Here is a test source for the each ASM command translation checking.Chilly Willy wrote: Tue Jun 10, 2025 9:52 pm The first block of quoted code correctly checks strings. The second quoted code is the problem code that is trying to pass integers to a string function.
Thank you! I look for this moment.Chilly Willy wrote: Thu Jun 12, 2025 8:45 pm That wasn't the only place with that error. I was just pointing out the first instance and that anything like it would need to be fixed. I'll go through it and find the others and check against the test code.