8-Bit Software

The BBC and Master Computer Public Domain Library

Back to 8BS Or Back to Disassembly


Page Last Altered:

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

Submitted by Steve Fewell

Description:

If called from 8DA0, 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 8DA2, then the Pointer (&37, &38) is incremented.
If called from 8DA9, 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

8DA0 7 178 055 B2 37 LDA (&37)
8DA2 7 230 055 E6 37 INC &37
8DA4 9 208 057 D0 39 BNE 57 --> &8DDF [RTS]
8DA6 8 230 056 E6 38 INC &38
8DA8 ` 096 60 RTS
8DA9   032 162 141 20 A2 8D JSR &8DA2
8DAC 7 178 055 B2 37 LDA (&37)
8DAE ` 096 60 RTS

 


 Back to 8BS
Or