Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Weird MPLAB ASM instruction

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'
 

Latest threads

Back
Top