Here's a subroutine of how I do it. You might want to modify the start and stop addresses to do exactly what you need it to do.
Rswain
******************************
A var byte
B var byte
x var byte
EE_Memory_Address var word
EE var byte
NI9600 CON 84
PC_OUT var PORTB.1 ' Serial output via MAX232 to user terminal
R_EE: ' Read from EEPROM and store as var (EE)
' needs to be given:A=start count (byte),B=end count (byte),EE_Memory_Address (word)
' str EE (bytes), and end w/13 (cr)
for x = A to B ' 0 to 150 (or whatever you want or until CR is encountered)
read EE_Memory_Address+x, EE
SEROUT2 PC_OUT,NI9600, ["ee mem addr = ",dec EE_Memory_Address," read = ",#ee,13,10]
if EE = 13 then r_EE_jumpout
EE_Memory_Address = EE_Memory_Address + 1
next x
r_ee_jumpout:
Return
end
*********************************
Bookmarks