Full Chip Simulation - unallocated variable

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Full Chip Simulation - unallocated variable

跳至解决方案
1,986 次查看
SSK
Contributor I
Hello forum members,
 
I am using Codewarrior 4.6 build 6345 for MC9S12A128 processor. I am using full chip simulation target in the debugger to test my SCI code. I have two functions for sending and receiving character to/from SCI of the device. The receive routine works correctly but for the transmit routine indicates that the variable used to hold the character is not allocated and hence it displays zero '0'. I am transmitting the same character that I receive using receive routine. I am attaching a snap of the debugger showing the unallocation of the variable. What could be the cause for this? Your earliest reply will be highly appreciated.
 
Thanking you in advance.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
919 次查看
allawtterb
Contributor IV
The variable isn't allocated any space in memory because it is using a register to store the passed value.  It appears that it is using Accumulator B which can be seen in the Register window containing the hex value 71 (ASCII character 'q') in the screen shot shown. 
 
 
Edit: Fixed spelling


Message Edited by allawtterb on 2008-07-08 08:50 AM

在原帖中查看解决方案

0 项奖励
回复
1 回复
920 次查看
allawtterb
Contributor IV
The variable isn't allocated any space in memory because it is using a register to store the passed value.  It appears that it is using Accumulator B which can be seen in the Register window containing the hex value 71 (ASCII character 'q') in the screen shot shown. 
 
 
Edit: Fixed spelling


Message Edited by allawtterb on 2008-07-08 08:50 AM
0 项奖励
回复