Full Chip Simulation - unallocated variable

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Full Chip Simulation - unallocated variable

ソリューションへジャンプ
1,994件の閲覧回数
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 解決策
927件の閲覧回数
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 返信
928件の閲覧回数
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 件の賞賛
返信