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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…