if you look at the lst file the compiler detects a problem for the 16f88 and still generated the wrong result
16f88 lst
Code:
0934 M TheString
Message[303]: Program word too large. Truncated to core size. (5265)
Message[303]: Program word too large. Truncated to core size. (7469)
Message[303]: Program word too large. Truncated to core size. (6375)
Message[303]: Program word too large. Truncated to core size. (6C61)
Message[303]: Program word too large. Truncated to core size. (7469)
Message[303]: Program word too large. Truncated to core size. (6F6E)
0934 1265 3469 2375 M data "Reticulation", 0
2C61 3469 2F6E
0000
16f1847
Code:
0000 M local TheString, OverStr
0971 2979 M goto OverStr
0972 M TheString
0972 1265 3469 2375 M data "Reticulation", 0
2C61 3469 2F6E
0000
0979 M OverStr
pic18 the correct result
Code:
02715 PrintStr 6,3,"Reticulation" ; Line 4.
0000 M local TheString, OverStr
0011FE EF08 F009 M goto OverStr
001202 M TheString
001202 6552 6974 7563 M data "Reticulation", 0
616C 6974 6E6F
0000
001210 M OverStr
maybe it was ok in older versions of complier , I doubt it though ,wrong is wrong
Bookmarks