Floating Point Input Demonstration

by David Taylor

RISC OS 2 users will need to load the FPEmulator module before using this demonstration.

This archive contains the floating point input demonstration program, as listed in this months RISC User magazine.

Before running the program make sure that you have a RAM disc available. To make one available, you can either create one by clicking on the Task Manager; then clicking on RAM disc and dragging out 32k or so, or for users of RISC OS 3.1 or later, double-click on the file !RamDisc supplied with the program. Note that whilst the !RamDisc program works, it does not place the RAM icon onto the icon bar: to make this appear, just press F12 then Return.

The listing will be spooled to the RAM disc and a trace file is also created which will show up any errors (useful for those typing in the program by hand). Of course, as you receive the magazine disc this has little purpose; but it does allow you to notice the effect of any changes you may make to the demonstration code.

The demo asks for input of two numbers and then multiplies them together in ARM code. The multiplicand, multiplier and the result are then printed out in Hex.

For details of how the program works, please see the article in RISC User 12:1.

Copyright  RISC User, 1999