• printf statement not working after putchar statement is used.
    Hi All I am using following putchar routine. void srl_putchar(unsigned char send) { SBUF = send; while (!TI); TI = 0; } after using above routine to transfer a character via serial port i continued...
  • printf statement with enum data type
    I run into a problem using enum datatype with printf statement. The folloing code works with Viusal C but does not work with KEIL compiler --- printf statement prints out the wrong value. Could somebody...
  • IF statement
    hi i want to use IF statement in assembly, like this if (p3.0 true) { } else { } or like this BEGIN: IF R0 = #45 { } ELSE { } ENDIF jmp begin so how can i use it, for...
  • If statements
    Hi, Currently doing a project for college and have come to a road block. I have function which has a if statement. There are five different possible outcomes for the if statement. The outcome depends...
  • printf statement not giving the required string out.
    Hi All i want following string of bytes to be send by the CPU 80C51RD2 serial port:0xba,0x02,0x01,0xb9 statement: printf("%c%c%c%c",stxi,select_lnth,select_cmd_char,select_bcc); output:0xba,0x02,0x01...