Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/20/01 00:23
Read: times


 
#14229 - RE: converting variable types
My compiler (archimedes 5.1) creates the proper assembly code from the given C equation without any castes.

main()
{

unsigned int address;
unsigned char channel;
address = (channel * 25) + 22;
}
0000 E500 R MOV A,channel
0002 75F019 MOV B,#019H
0005 A4 MUL AB
0006 AEF0 MOV R6,B
0008 2416 ADD A,#016H
000A F500 R MOV address+01H,A
000C E4 CLR A
000D 3E ADDC A,R6
000E F500 R MOV address,A

I would like to know what compiler is being used (so I can avoid it!)

So what is the source of the "0ch" that is being added ? How can this be a typo ?


List of 13 messages in thread
TopicAuthorDate
converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      

Back to Subject List