Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

 
5.8 .device
Mas can generate code for dozens of microcontrollers. So, we must chose device. Name for device is like real name:
 real name  device name

 PIC16C84   P16C84

 PIC16F84   P16F84
(instead PIC just 'P'). 

With .device we chose device. All devices are in 'device' directory and have extension .dev. For writing new device see '9. Device Description File':

  .device p16c84

  start:

     ; some code
 

 

FIRST LINE OF CODE MUST BE DEVICE SPECIFICATION!

Every device has name (it is declared in .dev file). After specification of device mas introduce new const name with value 1. That name is same like device name except it is prefixed with '__'. It can be used in specific include files:

 .if .isndef __P12C509

    .error Only for PIC12C509 devices

 .endif
[PREV][INDEX][NEXT]