#58 Generate mpasm compatible .config sections

None
closed
Borut Ražem
None
3
2013-04-11
2012-03-14
Borut Ražem
No

For config words gpasm generates a single section named .config, containing all config words, while mpasm generates a separate sectuions for each config word, named .config_<address>_<capital_file_base_name>.

Gpasm example:

Section Header
Name                    .config
Physical address        0x2007
Virtual address         0x1003
Size of Section         2
Number of Relocations   0
Number of Line Numbers  0
Flags                   0x1020
  Executable code.
  Absolute.

Data
002007:  1f30  btfss    0x30, 0x6

Mpasm example:

Section Header
Name                    .config_2007_PULSER_1.O
Physical address        0x2007
Virtual address         0x1003
Size of Section         2
Number of Relocations   0
Number of Line Numbers  1
Flags                   0x1020
  Executable code.
  Absolute.

Data
002007:  1f30  btfss    0x30, 0x6

Discussion

  • Marko Kohtala
    Marko Kohtala
    2012-03-14

    MPASM has changed the way it works since this was written in gpasm.

    I did consider this at some point, but felt there was some other internal changes in gpasm regards section handling that needed to be done first. Unfortunately I never had the time to make those changes.

     


Anonymous


Cancel   Add attachments