Author
Topic: unable to jmp to address within one macro from another macro (Read 312 times)

I was cleaning up some old jwasm stuff, and I found this test from four years ago. I don't know if I ever submitted this problem or not, but things have progressed enough that you might want to look at this some time. Obviously there's not a big rush for this.

This is a situation I have in my program I use to test execution time for chunks of code.Basically, the macro is in two parts. Part1 sets up some stuff, and then sets an address to loop back to for repeated testing. Then the test code. Then Part2 macro which does some more stuff and loops back to do the whole process over again. Anyway, its like this-

Part1 macrocode to be timedPart2 macro

It works perfectly in masm, but goes into an endless loop in uasm. I have therefore not included the exe from usam, but did include the exe from masm in the attached file.

To show the problem, this is a simplified version that just copys some characters to a buffer in the three parts to see what's going on.