Sorry, I can only write in English.
Dear ALASM users,
I plan to code in ALASM, and I want to solve the following problem and I hope that ALASM can solve it:
I have a code on the address 5000, that is 20 bytes long, and have to be here for the correct function of the whole program. From address 0 I start to write the code, and of course, as I write, the code is growing towards the address 5000. And I of course do not want, that the code rewrites the 20 bytes on the address 5000. So, shortly before 5000 I make a jump to 5020 (JR 5020), and those 20 bytes is safe and not rewritten.
The way, I am doing it now, is, that I have to watch all the time, if address 5000 is not rewritten, but as I am doing lot of changes in the code under 5000, I have to check all the time. And this is what I want to avoid.
So, the question is, if ALASM and its macro can help me somehow. Is it possible, that during the assembly, some macro would be running and watch, if we are close to 5000? And if we are really close to 5000 (like 5000-2, or 5000-3 or 5000-4), the macro would place JR 5020 on the current address, and then would continue assembly on 5020.
This solution would be great and automatic, and if I would do any change in the code under 5000, I would not have to check the address 5000 all the time.
Would you be so kind and write here also some practicall examples of such macros, which would be doing what I have described here? I am completelly lost in the very brief ALASM manual (as far as macro usage is concerned), and have no previous experiance with macros. And studying ALASM sources of Alone Coder does not help me much.
Thanks a lot
Hood, Czech Republic