当你移动到一个PIC18部分时,它会尝试跳转到一个奇怪的地址,这是永远不会发生的。我同意,它组装起来是一样的,但是对其他程序员来说是很难阅读的,并且属于“不使用魔法数”的经验法则。你会尝试写程序存储器,因为你。清除NVMGREST位。设置它访问EEPROM。
以上来自于百度翻译
以下为原文
And when you move up to a PIC18 part, it will try to jump to an odd address, which is never-never land.
I agree, it assembles the same, but it's hard for other programmers to read, and falls under the "don't use
Magic numbers" rule of thumb.
You WILL be trying to write to program memory, because you cleared the NVMREGS bit. Set it to access EEPROM.
当你移动到一个PIC18部分时,它会尝试跳转到一个奇怪的地址,这是永远不会发生的。我同意,它组装起来是一样的,但是对其他程序员来说是很难阅读的,并且属于“不使用魔法数”的经验法则。你会尝试写程序存储器,因为你。清除NVMGREST位。设置它访问EEPROM。
以上来自于百度翻译
以下为原文
And when you move up to a PIC18 part, it will try to jump to an odd address, which is never-never land.
I agree, it assembles the same, but it's hard for other programmers to read, and falls under the "don't use
Magic numbers" rule of thumb.
You WILL be trying to write to program memory, because you cleared the NVMREGS bit. Set it to access EEPROM.
举报