[Icc-mot] GNU to ICC

Oskar Atkinson oskar at atk-it.com
Tue Feb 19 10:56:35 PST 2008


Hi Edward,

Thanks for zour support.
Helps a lot.

 

<<
How much space do you need for your constants? Could your constants and
all the code into 48k? 
>>
Don't know yet. There is a few arrays
Like 
const unsigned char egofactor_table[1024] = { 147, ... }

Will figure that when I can compile the whole stuff



<<
, if not weird ",x" at the end. It doesn't make sense. Maybe I'm not
understanding GCC asm, but what I see in your number one code is  :

Load X with contents of ATD0DR5, then load egofactor_table[0] relative
to the value in ATD0DR5???? Something not right here. Was this code
buggy?
>>
This code _may_ be buggy, entirely possible. And GCC just may not
complain


<<
> using a ptr to egofactor_table, I am getting illegal addressing mode

What do you mean by using ptr to egofactor_table?     "ldab 
&egofactor_table, x\n" ? It doesn't work.
>>

I was trying 
	pToTable = &egofactorTable;

Asm( ...
	"ldap pToTable,x\n" )

Anyway, the rest of your hints should get me tru



<<
> Thanks for any hints

What about redoing all the code from scratch :-) ?
>>
That's not off the table, once I got the current code running and I got
an understanding whats is going on, then  might thinking of redoing it.

But first, today some books on programming the MS9S12 should arrive.
Lets see whether I can learn fast enough.
( OTOH, 20 years ago, I self-tought me win32 programming and mde it, so
I might have a chnce here as well :))

Oskar




More information about the Icc-mot mailing list