;________________________________________________________________________ ; ; O P T I O N S . A S M ;________________________________________________________________________ ; ; Reading Options from a table ; by Byon Garrabrant N6BG byon@mail.com Aug 99 ;________________________________________________________________________ ; ; This software is available only for non-commercial amateur radio ; or educational applications. ALL other uses are prohibited. ; This software may be modified only if the resulting code be ; made available publicly and the original author given credit. ; Contact the author or TAPR for information on commercial licenses. ; (c) Copyright 1999, Byon Garrabrant, N6BG. All rights reserved. ;________________________________________________________________________ #define OPT_AUTO_TX_DELAY D'0' #define OPT_MANUAL_TX_DELAY D'1' #define OPT_MESSAGE D'2' #define OPT_SYMBOL D'3' #define OPT_SYMBOL_TABLE D'4' #define OPT_PATH D'5' #define OPT_AUTO_TIME D'6' #define OPT_MANUAL_TIME D'7' #define OPT_QUIET_TIME D'8' #define OPT_BEACON_RATE D'9' #define OPT_BEACON_OFFSET D'10' #define OPT_CALLSIGN_DIGI D'11' ;#define OPT_SPEED_ADJUST 0 ;#define OPT_PTT_SENSE 0 #define CONFIG_SELECT PORTA, 4 ;________________________________________________________________________ ORG H'300' Get_Option bsf PCLATH,0 bsf PCLATH,1 btfss CONFIG_SELECT addlw D'120' call _Get_Option bcf PCLATH,0 bcf PCLATH,1 return ;________________________________________________________________________ _Get_Option addwf PCL, F ;(PRIMA PARTE) Option1_Start dt D'40' ; number of flags to send auto dt D'5' ; number of flags to send manual dt D'0' ; mic-e message Vedi nota 1 dt '>' ; aprs symbol Vedi nota 2 dt H'2F' ; aprs symbol table dt H'0' ; mic-e path dt D'18' ; auto time in 10 sec (2 = 20 sec) Vedi nota 3 dt D'1' ; manual time in 10 sec (1 = 10 sec) Vedi nota 4 dt D'4' ; quiet time in seconds Vedi nota 5 dt D'1' ; beacon rate (beacon every third) Vedi nota 6 dt Beacon1_Start - Option1_Start ; beacon offset dt "I2SDD ", D'9' + H'30' ; callsign and digis Vedi nota 7 dt "APRS ", D'0' + H'30' ; callsign and digis Vedi nota 8 dt "RELAY ", D'0' + H'30' ; callsign and digis Vedi nota 9 dt "TRACE7", D'7' + H'30' ; callsign and digis Vedi nota 10 dt 0 Beacon1_Start dt " G.A.L. - http://www.i2sdd.net" ; beacon Vedi nota 11 dt 0 ;________________________________________________________________________ ORG Option1_Start + D'120' ;(SECONDA PARTE) Option2_Start dt D'40' ; number of flags to send auto dt D'5' ; number of flags to send manual dt D'0' ; mic-e message Vedi nota 1 dt '[' ; aprs symbol Vedi nota 2 dt H'2F' ; aprs symbol table dt H'0' ; mic-e path dt D'30' ; auto time in 10 sec (2 = 20 sec) Vedi nota 3 dt D'4' ; manual time in 10 sec (1 = 10 sec) Vedi nota 4 dt D'4' ; quiet time in seconds Vedi nota 5 dt D'1' ; beacon rate (beacon every third) Vedi nota 6 dt Beacon2_Start - Option2_Start ; beacon offset dt "I2SDD ", D'0' + H'30' ; callsign and digis Vedi nota 7 dt "APRS ", D'0' + H'30' ; callsign and digis Vedi nota 8 dt "RELAY ", D'0' + H'30' ; callsign and digis Vedi nota 9 dt "TRACE7", D'7' + H'30' ; callsign and digis Vedi nota 10 dt 0 Beacon2_Start dt " EMERGENZA QRV. 433.xxx Mhz" ; beacon Vedi nota 11 dt 0 ;________________________________________________________________________