Searching \ for 'Does CCS compiler recognize the RETLW opcode?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/index.htm?key=does+ccs+compiler
Search entire site for: 'Does CCS compiler recognize the RETLW opcode?'.

Truncated match.
PICList Thread
'Does CCS compiler recognize the RETLW opcode?'
1999\01\21@112720 by lilel

flavicon
face
I've been struggling to port an assembly language routine into CCS
C.  So far, no hitches until I got to a lookup table that uses the
RETLW instruction.  Try as I might, the compiler always tells me it
was "expecting an opcode mnemonic" when it gets to RETLW.

Does the CCS compiler recognize this opcode (which IS a valid opcode
for the 16C505, I checked already) ???



-- Lawrence Lile

=> Median Filter Source Code
=> AutoCad blocks for electrical drafting
=> Brownout tester plans
=> Amateurish pictures of my family

at:  http://home1.gte.net/llile/index.htm

1999\01\21@121225 by Wolfgang Strobl

flavicon
face
On 21 Jan 99, 10:25  Lawrence Lile wrote:

> I've been struggling to port an assembly language routine into CCS
> C.  So far, no hitches until I got to a lookup table that uses the
> RETLW instruction.  Try as I might, the compiler always tells me it
> was "expecting an opcode mnemonic" when it gets to RETLW.

Hu? I just tried it.
....................  main()
.................... {
....................    int i;
0005:  CLRF   04
0006:  CLRF   03
....................    i=3;
0007:  MOVLW  03
0008:  MOVWF  0E
....................    #asm
....................    retlw 2
....................    #endasm
0009:  RETLW  02
.................... }


>
> Does the CCS compiler recognize this opcode (which IS a valid opcode
> for the 16C505, I checked already) ???

pcm 2.636 does.

Did you perhaps forget the colon after the label? Most assemblers I
am used to don't require (or even accept) colons after the label. But
the ccs builtin assembler does. If you for example write
fini   retlw 2
you get the aforementioned error message.
Write
fini: retlw 2
instead.


--
     o      (     spam_OUTWolfgang.StroblTakeThisOuTspamgmd.de (+49 2241) 14-2394
    /\        *   GMD mbH                       #include
  _`\ `_<===      Schloss Birlinghoven,         <std.disclaimer>
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany ________________

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...