BASIC IV ROM Routines
Page Last Altered:
Submitted by Steve Fewell
Routine: i16-bit
Name: 16-bit Integer
Starting Address: &AE1A
Entry criteria: A contains the least significant byte of the 16-bit
number, Y contains the most significant byte of the 16-bit number.
Exit: IWA contains the 16-bit number
[(256 * Y) + A].
Description:
Stores a 16-bit number (represented by 2 individual bytes) into the IWA and sets
the 2 most significant bytes of the IWA to zero.
Disassembly for the 16-bit Integer routine
AE1A | * | 133 042 | 85 2A | STA &2A |
AE1C | + | 132 043 | 84 2B | STY &2B |
AE1E | d, | 100 044 | 64 2C | STZ &2C |
AE20 | d- | 100 045 | 64 2D | STZ &2D |
AE22 | @ | 169 064 | A9 40 | LDA#&40 |
AE24 | ` | 096 | 60 | RTS |