'MPASM long integer'
I'm writing a program for a 16F84 based speed meter.
I'd like insert some constant as EQU , to avoid manually
How can I copy a long constant into 3 byte variable.
ruota equ 1753
dividendo equ ruota * 3600 604b90h
ACCaLo equ 12 ;24 bit accumulator
ACCaMid equ 13
ACCaHi equ 14
movlw ???? ; 90h
movlw ???? ; 4bh
movlw ???? ; 60h
At 08:08 1/11/99 +0100, you wrote:
If I recall the MPASM thingo has some problems, and often truncated to
16bits for equates. If this problem does not exist, then you should be able
to do things like
Note that there is no range checking as it sees all as the one location
(Could use high and low for 16 bits). And I am assuming that it makes this
a 32 bit number. But I am not sure at all.
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...