In article <1102600199.318348.57370@z14g2000cwz.googlegroups.com>, "NNTPmail@flashmail.com" wrote: > Just asking for clarification here, but is the only significant > difference between GBASCALC and BASCALC that GBASCALC makes you specify > the line you want and BASCALC just assumes the line you want based on > current cursor position? I don't think so; both routines expect the line number in A. The only difference I see is the base address storage: BASCALC sets up BASL/H, and GBASCALC sets up GBASL/H. That's essential if you want to have mixed text and lo-res graphics. F847: 48 141 GBASCALC PHA F848: 4A 142 LSR F849: 29 03 143 AND #$03 F84B: 09 04 144 ORA #$04 F84D: 85 27 145 STA GBASH F84F: 68 146 PLA F850: 29 18 147 AND #$18 F852: 90 02 148 BCC GBCALC F854: 69 7F 149 ADC #$7F F856: 85 26 150 GBCALC STA GBASL F858: 0A 151 ASL F859: 0A 152 ASL F85A: 05 26 153 ORA GBASL F85C: 85 26 154 STA GBASL F85E: 60 155 RTS FBC1: 48 577 BASCALC PHA FBC2: 4A 578 LSR FBC3: 29 03 579 AND #$03 FBC5: 09 04 580 ORA #$04 FBC7: 85 29 581 STA BASH FBC9: 68 582 PLA FBCA: 29 18 583 AND #$18 FBCC: 90 02 584 BCC BSCLC2 FBCE: 69 7F 585 ADC #$7F FBD0: 85 28 586 BSCLC2 STA BASL FBD2: 0A 587 ASL FBD3: 0A 588 ASL FBD4: 05 28 589 ORA BASL FBD6: 85 28 590 STA BASL FBD8: 60 591 RTS -- John jmatthews at wright dot edu www dot wright dot edu/~john.matthews/