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;