×   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



8E5D Increment [and read char at] Pointer (&37, &38)

Submitted by Steve Fewell

Description:

If called from 8E5D, The character pointed to by (&37, &38) pointer is retrieved (in A), and
the pointer is then incremented. The character (prior to incrementing) is returned in A.
If called from 8E5F, then the Pointer (&37, &38) is incremented.
If called from 8E66, The pointer at (&37, &38) is incremented, and the next character is retrieved
from the pointer location and returned in A.


Disassembly for the Increment [& read] pointer (&37, &38) routine

8E5D

7

178 055

B2 37

LDA (&37)

8E5F

7

230 055

E6 37

INC &37

8E61

9

208 057

D0 39

BNE 57 --> &8E9C    [RTS]

8E63

8

230 056

E6 38

INC &38

8E65

`

96

60

RTS

8E66

_

032 095 142

20 5F 8E

JSR &8E5F

8E69

7

178 055

B2 37

LDA (&37)

8E6B

`

96

60

RTS

 


 Back to 8BS
Or