Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
debugging macros in assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
ankitsharma

New User


Joined: 17 Feb 2009
Posts: 2
Location: Noida

PostPosted: Thu Feb 26, 2009 2:33 pm    Post subject: debugging macros in assembler
Reply with quote

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
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Feb 26, 2009 3:58 pm    Post subject:
Reply with quote

Look at the macro source and how it expanded in your assembly.
Back to top
View user's profile Send private message
ankitsharma

New User


Joined: 17 Feb 2009
Posts: 2
Location: Noida

PostPosted: Thu Feb 26, 2009 4:22 pm    Post subject:
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Feb 26, 2009 5:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us