Laziness is the prime virtue of programmers! Per Larry Wall, iirc. To OP: Floating point numbers and instructions operate on a different set of registers from the general ones. You'd use LE or LD perhaps, but those presume a source field formatted as a floating point number (an F-con isn't).
Besides the 3 varieties of floating point, it appears that the fairly difficult task of converting from fixed to float (and vice-versa) is a lot simpler nowadays since there are now a suite of CONVERT FROM/TO FIXED/LOGICAL instructions. Plus instructions to copy values from general to FP registers (and vice-versa)! Possibly even better than abusing access registers for saving various data. sas On Mon, Mar 18, 2013 at 12:18 PM, John McKown <[email protected]>wrote: > I cheat, like I usually do. I use LE enabled assembler and the C language > sprintf() subroutine to do the hard work. I'm quite lazy. > > > On Sun, Mar 17, 2013 at 9:14 PM, John Ehrman <[email protected]> wrote: > > > z machines support three different and quite distinct floating-point > > representations; printing their values correctly is quite difficult, even > > though it's easier for decimal floating-point than for hexadecimal or > > binary. > > > > Displaying approximate values is much simpler, but still requires > > familiarity with the representation you're working with. > > > > John Ehrman > > > > > -- > This is a test of the Emergency Broadcast System. If this had been an > actual emergency, do you really think we'd stick around to tell you? > > Maranatha! <>< > John McKown > -- sas
