As you start decisions for an assembler project in MPLAB X

Memory mode

Absolute mode (not recommended)

Newer versions of MPLABX apparently support absolute mode a bit better, but problems with global variables can be caused by using absolute addressing instead of relative addressing. This is a 30 years old technique.

MPLAB X will not show variables using absolute addressing in the watch window, this is a massive problem!  Rumours it may now, true??

You will need to manually set a checkbox in the project properties to tell MPLABX that this is an absolute mode project.

Relocatable mode

This is the modern recommended addressing mode.

MPLABX PIC Assembly support

MPLAB X no longer supports mpasm

There’s a new XC8 PIC Assembly “pic-as”. You need to install an up to date version of XC8 and you’ll then get “pic-as” offered as a compiler toolchain when creating a new project.

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *