Joe G Member Feb 23, 2011 #1 if i write "movlw .100" equals the decimal of 100. would thousands be "1.00" , tens be ".01" and ones be ".001" ?
if i write "movlw .100" equals the decimal of 100. would thousands be "1.00" , tens be ".01" and ones be ".001" ?
blueroomelectronics Well-Known Member Feb 23, 2011 #2 No the "." just signifies what follows is in decimal (integer).
Joe G Member Feb 23, 2011 #3 i just put them there for the wording, i should of know that in coding they may chg what you ment... i should of wrote movlw .100 my oops, thanks
i just put them there for the wording, i should of know that in coding they may chg what you ment... i should of wrote movlw .100 my oops, thanks
blueroomelectronics Well-Known Member Feb 23, 2011 #4 Since W is only a byte register you can only use .0 - .255 or 0x00 - 0xFF
Joe G Member Feb 23, 2011 #5 ugh, i got it now, you used the quotes too, roll. i'm a little slow today.
Joe G Member Feb 23, 2011 #6 )then, how would i write onethousand ,if i wanted to subtract 1000 from my pulse reading ( im working on a rpm 7seg display)?
)then, how would i write onethousand ,if i wanted to subtract 1000 from my pulse reading ( im working on a rpm 7seg display)?
Joe G Member Feb 23, 2011 #7 also i should of wrote subwf , i'd be subtracting from a file that holds my result
blueroomelectronics Well-Known Member Feb 23, 2011 #8 You need a math library or figure out how to do multi byte math. You might want to look into a high level language with math functions like C or BASIC.
You need a math library or figure out how to do multi byte math. You might want to look into a high level language with math functions like C or BASIC.