; Assume mem 8-Bit, Index 16-Bit
; Addr	= 24-Bit offset to data
; Indx	= 16-Bit index to data
; Chr	= 8-Bit char to store data from address in Addr
;
;###########################
; Basic Text read routine  #
;###########################
ReadByte .macro (Addr,Indx,chr)
 php
 sep #$20
 rep #$10

 phy

 ldy Indx
 lda [Addr],y
 iny
 sty Indx
 sta chr 

 ply
 plp
.endm