I spoke too soon. I'm still having trouble.
I have the following lines:
movf dec1
movwf PORTB
call number + PORTB
where dec1 holds the value 0..9, and PORTB is a register.
The interface that I'm using has a program memory window which displays these lines for the lines above:
movf...
Im trying to program a PIC microcontroller. I have the lines
number
call zero
call one
call two
.
.
.
call ten
return
call nuber + i
where i is an integer. I want to call the adress of "number", plus the value of "i", but my program calls the adress...
zBuilder, you were right there is no divide operand for this microcontroller. Im still working on the details, but so far, your method seems to work good. Thanks!
Hi,
Im trying to display a number stored in a register (as hex of course) of a PIC16F84 series microcontroller on a 7-segmented LED display as decimal. Im presented with the problem of converting that number to dec and displaying it. I am fairly new to the language. Any helpful tips?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.