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.

help with decimal points

Status
Not open for further replies.

treefort

New Member
Hi all,

I am trying to figure out the difference between decfsz .13 and decfsz 13.

This is the code I am looking at:

movlw .13 ; Delay another 10mS plus whatever was above
movwf Delay2
TenmSdelay:
decfsz Delay1,f ; Delay1 is currently at 255
goto TenmSdelay
decfsz Delay2,f
goto TenmSdelay

Is there a difference if it was movlw 13?

Thanks,

Trevor
 
Putting a dot in front tells the assembler that it should treat the number as decimal. MPASM defaults to hexadecimal and so without the dot it will be the same as movlw 0x13 which is 19 decimal. You can also do movlw d'13'.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top