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

From: Paugam Luc (PAUGAML@thmulti.com)
Date: Mon Nov 27 2000 - 08:31:29 EST


>Roberto Lulli [SMTP:robertolulli@tin.it] 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
Luc

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



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