jignesh doshi
Full Member level 2
- Joined
- Aug 11, 2011
- Messages
- 131
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,298
- Activity points
- 2,112
It's much easier that writing assembler, arithmetic operations and I/O format conversions can be performed by C-compiler libraries. For the latter, you should read the compiler documentation.Logic is same as assembly language or is there any other formula that i will use and my work is easy?
my problem is if i want to do addition, multiplication, hex to decimal conversion, etc.. for more then 8 bits then how can i write.
Logic is same as assembly language or is there any other formula that i will use and my work is easy?
A = B * C ;
long a,b,c;
a = b + c;
You first need a display, or a printer, or something else...Then if i have to show this result then how can i show?
printf("The result is %ld\r\n",a);
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 void hz() { long int c,d; unsigned char d1,d2,d3,d4,d5; TH2 = 0x00; TL2 = 0x00; while(power_hz = 0) { } while(power_hz = 1) { } TR2 = 1; while(power_hz = 0) { } while(power_hz = 1) { } while(power_hz = 0) { } while(power_hz = 1) { } while(power_hz = 0) { } while(power_hz = 1) { } TR2 = 0;
while(power_hz = 0)
while(power_hz == 0)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?