8-Bit Software

The BBC and Master Computer Public Domain Library

Back to 8BS Or Back to Disassembly

Page Last Altered:


Submitted by Steve Fewell


Call the &96DA routine to get the Float value.
Jump to &A9D4 with A = &3D to multiply the FWA by the Floating-Point
constant at location &BF3D in the Floating-Point constant table.
The constant value at &BF3D is 57.2957795. This value is 1 / (Pi / 180), or Radan. Multiplying
the Float value by this constant gives the value in Degrees.

Disassembly for the DEG routine

A9D8   032 218 150 20 DA 96 JSR &96DA Get and Check Float (conv if Int)
A9DB = 169 061 A9 3D LDA#&3D
A9DD   128 245 80 F5 BRA -11 --> &A9D4 Multiply FWA by &BF3D (57.2957795)


 Back to 8BS