Hi,
I have found a CBT tape file : 592 , which displays the value of the register using a display function,
I have link edited the macro to my assembler program but i dont know how to use the display function in the asm program,
Can anybody help me to solve this issue.
Should i use any load command in my asm prgram to call that module.
The systax to use the display function is ,
DISPLAY DATA=(ITEM1,TYPE1,LENGTH1)
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
The CBT documentation is pretty explicit:
Quote:
//* You linkedit the DISPLAY assembler module with the * FILE 592
//* assembler program that you're coding, and to display * FILE 592
//* values from the program, you code instances of the * FILE 592
//* DISPLAY macro in your program. The result is a * FILE 592
//* display of the quantity, in readable format, so you * FILE 592
//* can debug your program. When your program is clean, * FILE 592
//* you simply remove the DISPLAY macros. * FILE 592
reread the docs ( the DISPLAY macro to see its format and parameters )
rewrite Your program according to assembler common practices
( the LOAD and DISPLAY is outside a proper addressing environment)
also no need to specify a DCB in the load macro ( I wonder how the program even assembled correctly )
First remove your load and display statements and rearrange your housekkeepinng statements in proper sequence followed by establishing base register . Your R14 is getting screwed up by the macros.
Once it runs properly ..then go for the display macros.