New tool for porting. - page 5 - General Discussion and Assistance - CHDK Forum

New tool for porting.

  • 40 Replies
  • 9197 Views
*

Online philmoz

  • *****
  • 3177
    • Photos
Re: New tool for porting.
« Reply #40 on: 26 / September / 2014, 22:41:37 »
Advertisements
IMHO it would be nice to add comments to code lines (like REM, but leaving code line in place),
applying them after (or before) ASM/ENDASM block :
CMNT YYY "comment text"
so
/*YYY*/"    BL       sub_XXXXXXXX \n"
would be
/*YYY*/"    BL       sub_XXXXXXXX \n"  // comment text

In revision 3624, I've added the option for comments on the 'FW' command.

For example:
     FW comment="test comment"
will disassemble one instruction and add a comment.

For multi-line disassembly (FW n) then the comment is added to the first instruction.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)

 

Related Topics