×   Main Menu ALL The 8BS News Manuals (New menu) Links Worth a Look Tools Disc and Basic Webring Site Map 8BS Guestbook Old Guest Book Me The Barnsley Rovers   
8-Bit Software

The BBC and Master Computer Public Domain Library

A50D Store FWA to temporary Floating-Point Variable location

Submitted by Steve Fewell

Routine:FWAtoTemp
Name: Store FWA to temporary FP variable location
Starting Address: &A50D or &A511 or &A513
Entry criteria: The FWA contains the value to store.
(if called from &A513, A contains the Temporary variable address (LSB)).
Exit: The FWA has been stored in the temporary variable location.

Description:

If called from &A50D, then the FWA will be saved to Temporary Floating-Point variable
address &0476
If called from &A511, then the FWA will be saved to Temporary Floating-Point variable
address &046C
If called from &A513, then the FWA will be saved to Temporary Floating-Point variable
address &0400 plus A (the LSB address)


Disassembly for the Store FWA to temporary variable location routine

A50D v 169 118 A9 76 LDA#&76
A50F   128 002 80 02 BRA 2 --> &A513
A511 l 169 108 A9 6C LDA#&6C
A513 J 133 074 85 4A STA &4A
A515   169 004 A9 04 LDA#&04
A517 K 133 075 85 4B STA &4B
A519 ... Store FWA to argp address routine

 


 Back to 8BS
Or