MPLAB X Assembler

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 […]

Read More

XC8 V2 C99 Issues

warning: (520) function “_SomeFunctionName” is never called Setting warning level to 0 will get rid of this one Right click project > Properties > XC8 Global Options > XC8 Compiler > Warning Level = 0 warning: ‘/*’ within block comment [-Wcomment] This is a stupid GCC warning that is detailed here. To suppress it include this […]

Read More

warning: expression generates no code

Example error message: “ap-main.c:189:: warning: (759) expression generates no code” Example that will cause it: This error is not usually generated by compilers, but is for XC8 and Microchip supported it with: The compiler detects that the condition is true, eliminates the code generation for the condition and produces a warning to this effect. No […]

Read More