] > Automating this would take away the 'full control' the programmers
] > probably wants at this stage. Also it would make it way more difficult
] > to write self-modifying code.
] 
] You are right, because of this I proposed you to add it as an OPTION.
] That is, you use it only if you want. Just like the source autoindent,
] for example.
You can add a new mnemonic for this.

Something like jrp. If you use this mnemonic, then the assembler should use 
the jr if possible and otherwise the jp.

In this way, you have asprogrammer still the full control. You can still 
force usage of 'jr' for relocatable code and usage of 'jp' for 
self-modifiable code. While you can use 'jrp' at all other places. And all of 
this in the same source without having the need for special compiler 
directives are optional flags to be set in the menu...

I once made a few gen80 macros like this. However, they only worked for 
backward jumps, because the macro had to know the address of the target. But 
then again, many jumps are backwards because often they are used for loops...

Kind regards,
Alex Wulms


-- 
Visit The MSX Plaza (http://www.inter.nl.net/users/A.P.Wulms) for info on
XelaSoft, Merlasoft, Quadrivium, SD-Snatcher on fMSX, the MSX Hardware list,
XSA Disk images, documentation, Japanese MSX news from Ikeda and lots more.



****
Problems? contact [EMAIL PROTECTED] See also http://www.faq.msxnet.org/
****

Reply via email to