[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] IAR MACRO
From: |
Glen Bankston |
Subject: |
[avr-gcc-list] IAR MACRO |
Date: |
Fri, 30 Aug 2002 09:55:45 -0400 |
Hello,
Anybody know how to fix the IAR problems MUL and LPM Rd,Z?
I tried this and it chokes badly. I am trying to build a hardcoder based
on the
address of register a and b, but it does not work.
MULU MACRO a,b
if((a&0x10)&(b&0X10))
DB 0X10011111,(a&0X0F)<<4+(b&0X0F)
elseif((a&0x10)&!(b&0X10))
DB 0X10011110,(a&0X0F)<<4+(b&0X0F)
elseif(!(a&0x10)&(b&0X10))
DB 0X10011101,(a&0X0F)<<4+(b&0X0F)
else
DB 0X10011100,(a&0X0F)<<4+(b&0X0F)
endif
ENDM
Thanks,
Glen WB4ZNW
avr-gcc-list at http://avr1.org
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-gcc-list] IAR MACRO,
Glen Bankston <=