执行下列语句,
asm("banksel PORTA");//选择操作PORTA
asm("clrf PORTA");//PORTA清0
asm("banksel LATA");
asm("clrf LATA");
asm("banksel ANSELA");
asm("clrf ANSELA");
asm("banksel TRISA");
asm("movlw 0x07");
asm("movwf TRISA");
出现告警提示为:
main.c:16: warning: (1352) truncation of operand value (0x10c) to 7 bits
main.c:18: warning: (1352) truncation of operand value (0x18c) to 7 bits
main.c:21: warning: (1352) truncation of operand value (0x8c) to 7 bits
main.c:18:警告:(1352)将操作数值(0x18c)截断为7位
因为寄存器文件地址只能为(0x00 ~ 0x7f),如何解决这个问题? |