techristian
Member level 1
- Joined
- Apr 3, 2013
- Messages
- 41
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Windsor, Ontario
- Activity points
- 1,612
MPASM for MPLABX is more than just an assembler. Much more.
I wanted to find a BRANCH ON ZERO command for the PIC16F1784 but it wasn't listed in the PIC16F1784 datasheets. In fact it doesn't exist for that micro. It is not one of the 49 instructions. So I looked up some PIC18X datasheets and found the BZ command. So I thought I would try it. Sure enough it worked. The assembler actually created the code listed below AND when the program ran, it ran just exactly like I expected it would. Assemblers I have worked with in the distant past such as 6502 or Z80 assemblers, worked ONLY with the commands directly and didn't do this kind of "interpretation", but I'm glad that MICROCHIP has.
Dan
I wanted to find a BRANCH ON ZERO command for the PIC16F1784 but it wasn't listed in the PIC16F1784 datasheets. In fact it doesn't exist for that micro. It is not one of the 49 instructions. So I looked up some PIC18X datasheets and found the BZ command. So I thought I would try it. Sure enough it worked. The assembler actually created the code listed below AND when the program ran, it ran just exactly like I expected it would. Assemblers I have worked with in the distant past such as 6502 or Z80 assemblers, worked ONLY with the commands directly and didn't do this kind of "interpretation", but I'm glad that MICROCHIP has.
Code:
0010 1903 [b]BTFSC STATUS, 0x2[/b] 43: BZ HIdisplay
Dan