Re: Need help with practice assignment!!
Posted: Sat Apr 04, 2015 10:38 am
I have to admit I had not realized the TAB DSECT is larger than the storage assigned to it as Mr. Sample noted. Pintu1228 will have to correct that problem, as well as alter BUILD, CMPUTE and the yet to be written PRINT to correctly update the table pointer. Pintu1228 has to update CMPUTE to update the table pointer, which is not being done.
Mistakes like this are all to easy to make. One way to avoid them is to code like this -32CL(TABSIZE) is safer than CL(TABSIZE*32) since the maximum value for a length used in a DC is 255.
Mistakes like this are all to easy to make. One way to avoid them is to code like this -
TAB DSECT
...
TABSIZE EQU *-TAB
TABLE DC 32CL(TABSIZE)' '
...
TABSIZE EQU *-TAB
TABLE DC 32CL(TABSIZE)' '