#196 New support/scripts/cinc2h.pl

closed-accepted
Borut Ražem
None
5
2012-09-26
2012-09-10
Molnár Károly
No

This program is managed uniformly the p14 and p16 branch. Some new features:

Create bit fields. In some register, can be found such bits which
belong together. For example: CVR0, CVR1, CVR2, CVR3
These may be useful, to merge during a common field name: CVR
The compiler helps handle these bit fields.

Create pseudo registers. Some registers are in pairs.
For example: FSR0L and FSR0H
If these are, by address next to each other there are and address of 'H'
marked is higher, then will want to create a 16-bit pseudo-register.
This register is of course there is in the lower address.

Discussion

  • The support/scripts/cinc2h.pl

     
    Attachments
  • The newer (2) support/scripts/cinc2h.pl program.

     
    Attachments
  • Minor change in the command line.

     
  • The "global" section, only the gpasm interprets in the pXXX.inc files. The sdcc does not understand, but nor should to him. The newer program will not create "global" section.

     
  • The newer (3) support/scripts/cinc2h.pl program. (No global section.)

     
    Attachments
  • Handling of alias in PIC18f2480 MCU (BAUDCTL -> BAUDCON).

     
  • The newer (4) support/scripts/cinc2h.pl program. (Alias handling.)

     
    Attachments
  • Borut Ražem
    Borut Ražem
    2012-09-26

    Script included in svn revision #8119.

    Borut

     
  • Borut Ražem
    Borut Ražem
    2012-09-26

    • assigned_to: nobody --> borutr
    • status: open --> closed-accepted