#include<stdio.h> #include<reg51.h> void main () { int i; p1=0x0FF; while(1) { for (i=0;i<10000;i++); p1=0x0FF; for (i=0;i<10000;i++); P1=0x00; } }
Build target 'Target 1' assembling blink.asm... C:\KEIL\C51\INC\STDIO.H(22): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(26): error A68: UNKNOWN CONTROL OR BAD ARGUMENT(S) C:\KEIL\C51\INC\STDIO.H(27): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(28): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(29): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(30): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(31): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(32): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(33): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(34): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(35): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(36): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(37): error A9: SYNTAX ERROR C:\KEIL\C51\INC\STDIO.H(38): error A9: SYNTAX ERROR blink.asm(2): error A9: SYNTAX ERROR blink.asm(3): error A9: SYNTAX ERROR blink.asm(4): error A9: SYNTAX ERROR blink.asm(5): error A9: SYNTAX ERROR blink.asm(6): error A9: SYNTAX ERROR blink.asm(7): error A9: SYNTAX ERROR blink.asm(8): error A9: SYNTAX ERROR blink.asm(9): error A9: SYNTAX ERROR blink.asm(10): error A9: SYNTAX ERROR blink.asm(11): error A9: SYNTAX ERROR blink.asm(12): error A9: SYNTAX ERROR blink.asm(12): warning A41: MISSING 'END' STATEMENT Target not created
how to resolve this
Why pass assembly source thru a C compiler?
Or more importantly, vice-versa.
Why have you started a new thread on the same topic?
http://www.keil.com/forum/60170/
And you still haven't bothered to follow the simple and clearly-stated instructions for posting source code!
This poster is in output-only mode.
He/she doesn't read the compiler/assembler messages. He/she doesn't read posting instructions. He/she doesn't read comments from other posters.
Posters in output-only mode can seldom be helped, since they will so seldom switch to read/write mode and notice what people suggests.
And Keil's forum seems to throw in a hint too - the captcha was 911.