I can't compile file .asm in sdcc. I use Ubuntu 12.4
This is my code.
MOV R1, #255
Delay1: Mov R2, #255
Delay2: DJNZ R2, Delay2
DJNZ R1, Delay1
This is issue sentence:
warning 119: don't know what to do with file 'led.asm'. file extension unsupported
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb 3 2010) (UNIX)
Well, SDCC is a C compiler and not an assembler. It comes with sdas8051 (or asxxxx as it was called with 2.9.0) which is the assembler used after compiling.
But the instructions are written like this:
* __asm, __end asm: I don't know what it take to line?
You stated that SDCC would not compile file .asm. When you specify a .asm file extension I assume that is what you were trying to give to SDCC. But SDCC only accepts .c files for compiling.
Further, __asm / __endasm can only be used inside C functions. And __endasm usually requires a semicolon.