On Sat, 13 Apr 2013, Valentin Dudouyt wrote:
> There are a several occurrences of the following kind of lines in
> fprintf (asmFile, "\t%cjmp\t__sdcc_program_startup\n",
> options.acall_ajmp ? 'a' : 'l');
> I'm trying to implement a port of architecture that doesn't have neither
> 'ajmp' or 'ljmp'. This operation is called as 'jp' instead.
> Is that a logic miss that I'm free to fix, or I just misunderstand
While this should probably be restructured so that the mcs51/ds390 related
code was only in their respective subtrees, the various flags and
callbacks in the port structure can be used to implement alternate
functionality. Take a look at how hc08 and z80 deal with this (they need
'jmp' and 'jp' instead of 'ajmp' or 'ljmp').