View previous topic :: View next topic
|
Author |
Message |
ankitsharma
New User
Joined: 17 Feb 2009 Posts: 2 Location: Noida
|
|
|
|
Hi
I am trying to debug an online assembler program. This assembler program has different Macros called.
Is there any way that I can debug the Macro code as well because the Macro code is making some changes to field values due to which my program is not giving desired results and I want to check how values are being set in Macros code. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Look at the macro source and how it expanded in your assembly. |
|
Back to top |
|
|
ankitsharma
New User
Joined: 17 Feb 2009 Posts: 2 Location: Noida
|
|
|
|
Please check my program logic given below.
AA0010 is executed until it reaches a point where "MCNAME" macro is called and BA is passed to the macro, the macro does some calculation by executing lines that are coded in the same program under label BA, but while debugging I am not able to debug code logic under BA label as BA is not directly called by branching but it is called using a Macro.
AA0010
........
........
........
MCNAME PERFORM,BA
+ L R11,BABASE
+ BASR R14,R11
B AA999
......
BA
........
BA00101
MCNAME RETURN |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
ankitsharma wrote: |
I am not able to debug code logic under BA label as BA is not directly called by branching but it is called using a Macro. |
What is the problem?
My guess is that the macro loads the base register/entry point and branches there with a return address of the next instruction after the macro.
What is the macro's name and what the heck did you do the the code sample to screw it up so much? |
|
Back to top |
|
|
|