RE: [uCsimm] Assembler code problems with uCsimm C compiler

From: Paugam Luc (
Date: Mon Nov 27 2000 - 08:31:29 EST

>Roberto Lulli [] wrote
>asm("ORI.W #$0700,SR");
>asm("ANDI.W #$F0FF,SR");

prefer the following syntax (no $ sign for hexa, all registers named with a
% prefix):

asm volatile ("ori.w #0x0700,%sr");
asm volatile ("andi.w #0xF0FF,%sr);

Hope this help

This message resent by the list server

This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:39 EST