I have not done much programing in PBP, I mostly have used assembly. I'm trying to knock out a quick program, but one detail is hanging me up. I'm reading a 24C512 EEPROM 8 bytes at a time. I created a word (16bit) variable to hold the memory address.
Problem is when I reach $19F8 the next address should be $0A00, but I get $0000! The low byte works right, then I get to $1B00 and everthing is good until I get to $29F8 and the next address is again $0000! The $0000 addresses are not really $0000, I know this from the data. Every time the high byte reaches $0A it displays $00! I wrote a simple routine to just count from $0000 to $FFF8. It reacts the same! I have PBP ver 2.30, is this a problem with PBP?
My code...
temp: memadd = $0000 Hserout [b1, b0 ] GOTO again again: memadd = memadd + $0008 if memadd = $FFF8 THEN GOTO start ELSE Hserout [b1, b0] ENDIF GOTO again