MPASM pic16f84A standalone assembly file template

Status
Not open for further replies.

neazoi

Advanced Member level 6
Joined
Jan 5, 2008
Messages
4,123
Helped
13
Reputation
26
Reaction score
15
Trophy points
1,318
Location
Greece
Activity points
36,955
Working with MPASM (not complete IDE), I would like to create standalone programs for the pic16f84A, without having to include in my programs the 16F84A.INC file. So what I have done, I have taken out it's contents and put them inside my program (template attached).

First of all, Is what I have done right? It seems to assemble ok in simple programs.

Second, will the produced hex file get bigger, because of the full 16f84a definitions included at the beginning of each program? Or the assembler uses only the ones that are actually used in the main program?
 

Attachments

  • TEMPLATE.TXT
    4.9 KB · Views: 53

Hi,

You could ignore the .inc file all together and address everything direct. eg H'0085 instead of TRISA

The 84A.inc file just makes it easy for you when coding, think your .hex file will be the same size either way.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…