Firstly, ... forget about firstly - I've mistaken the variable address , so my point wasn't valid. Compiler sets the access memory designator for GPRs properly, whatever the user's setting is.
The following also does not make sense, but stays as a reminder .
Secondly, instructions containing SFRs are not always having correct access memory designator. For example, instruction negf is almost always compiled with access memory designator set to default (i.e. 1). Like in this:
Code: Select all
negf WREG,F,0
Code: Select all
$6DE8 NEGF WREG, F
Why can't the compiler take the contents of asm block code as it is - with user defined access memory designator (or default)? It's the simplest solution and moves responsibility for the final code to the user.