At 08:08 1/11/99 +0100, you wrote: >Hi ! >I'm writing a program for a 16F84 based speed meter. >I'd like insert some constant as EQU , to avoid manually >calculate them. >How can I copy a long constant into 3 byte variable. >Ex. >.... const. > ruota equ 1753 > dividendo equ ruota * 3600 604b90h >.... var. > ACCaLo equ 12 ;24 bit accumulator > ACCaMid equ 13 > ACCaHi equ 14 >... > movlw ???? ; 90h > movwf ACCaLo > movlw ???? ; 4bh > movwf ACCaMid > movlw ???? ; 60h > movwf ACCaHi > > Thanks > Gianni > > 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 dividendo (dividendo+1) (dividendo+2) (dividendo+3) 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. Dennis