I'm new to MVS assembler language and I need some help with my first program I'm supposed to create on my own. I'm supposed to write a program that calculates and prints the income tax due from multiplying the tax rate (15%) and the annual earning ($55,000). This is what I have so far:
BEGIN SAVE (14,12)
BALR 3,0
USING *, 3
ST 13,SAVE+4
LA 13,SAVE
ANNEARN DC CL5'55000'
*Annual Earning*
TAXRATE DC CL4'0.15'
*Tax Rate*
INCTXDU DS CL6
*Income Tax Due*
CALC PACK ANNEARN,TAXRATE
PACK INCTXDU
MP ANNEARN,TAXRATE
UNPK INCTXDU
END
It's probably totally wrong in construction, I know,.. my book doesn't explain things well enough and isn't easy to read. ("MVS Assembler Language")
Any help would be appreciated.
Thank you.