Weird MPLAB ASM instruction

Status
Not open for further replies.

subzero349

New Member
Hello,

I was just wondering if anyone knows what:

Code:
movlw .5

means. I know it means move literal to W reg... but what's with the .5?
not 5 but ".5"
 
Well... just in case anyone else runs into this problem

MPLABASM treats the '.' like a decimal number...

so
Code:
movlw .5
is eqivalent to
Code:
movlw D'5'
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…