If it is Low, then we go to Primecheck method
Else, we go to method PRIME
You lie. That "program" does not run; the assembly will always fail on the WTO OEARN statement.deathwish73 wrote:I have a program where we need to convert (have not learned user input) miles/hr to km/hr in assembly.
THe program runs, but it looks wrong. Can someone explain to me how to fix it and what is wrong? ThanksPRINT NOGEN
****************************************************************
* FILENAME: Convert MI/HR to KM/HR *
* AUTHOR : *
* SYSTEM : pc/370 *
* REMARKS : Conversion Program *
****************************************************************
START 0
REGS
STM 14,12,12(13)
BALR 12,0
USING *,12
ST 13,SAVEAREA+4
LA 13,SAVEAREA
***************************************************************
* Convert Miles/Hour to Km/Hr
***************************************************************
DP EARNINGS,CONST
MP EARNINGS,TAXRATE
MVC OEARN(16),=XL16'40202020202020206B2020204B202020'
ED OEARN(16),EARNINGS
WTO ' '
EOFRTN WTO OEARN
WTO 'End of Program Execution'
L 13,SAVEAREA+4
LM 14,12,12(13)
BR 14
EARNINGS DC PL10'172245'
TAXRATE DC PL3'624'
CONST DC PL4'1000'
OEARN DS CL16
SAVEAREA DS 18F
END
Unlikely. Very unlikely.deathwish73 wrote:I did, and I put what I had above
deathwish73 wrote:I did, and I put what I had above