On Mon, 16 Aug 2004, Franz Struwig wrote:
> Thanks for you advice. What exactly happens when I select DS390F?
It sets the "ftal24_flag" to TRUE (see `cl_uc390::cl_uc390' in
`s51.src/uc390.cc'), and in "reset" procedure:
sfr->/*write*/set(ACON, 0xfa); /* ACON; AM1 set: 24-bit flat */
sfr->/*write*/set(ACON, 0xf8); /* ACON */
so flat mode will be on by default.
> This works in S51, but the code doesn't seem to work on the micro.
Sorry, I can not help you with this, but I would be happy if you
inform me if you find it as a simulator bug.
> Different addressing modes can be set by changing the ACON register, but
> this can only be done in software. Is the adressing mode important when
> loading the program into memory?
No -- as I understand the code. Note, that this port is made by
someone else (Karl Bongers as I remember correctly, please correct me
if I wrong).
I figured out, that the main problem is that sdcc generates a
jump instruction as the first one (at rom) witch works in flat mode