Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
This topic is locked: you cannot edit posts or make replies. MVS Assembler profiles for Pune Locat... shailesh_do Mainframe Jobs 0 Mon Feb 22, 2016 6:21 pm
No new posts Debugging with EDF Robert.Barnes CICS 5 Wed Jan 13, 2016 5:16 am
No new posts Starts DEBUGGING by Procedure Divisio... jackare Testing & Performance analysis 4 Sun Jan 10, 2016 10:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us