define(PP,'Prom Programmer') # for future reference ################################################################################ # Definitions of constants used in the PP software ################################################################################ define(RAMBUFLEN,100) # RAM input buffer size define(HRAMBUFLEN,)# half of the RAM input buffer length define(NDOUT,16) # # of data bytes in one output listing record define(LINMAX,132) # length of line input buffer used by # PP subroutines define(SPACE,' ') # define(COMMA,',') # define(TAB,' ') # define(CR,13) # carriage return define(EOS,0) # null byte, string terminator define(LF,10) # line feed define(ESCAPE,27) # escape character define(DELETE,127) # delete character define(ARB,1) # arbitrary length array dimension ################################################################################ # Codes that are used in initialization of the prom programmer ################################################################################ define(SETNULLS,'0U') # set nulls command define(XFORMAT,'53A') # data translation format define(STARTCODE,2) # start code corresponding to the format define(STOPCODE,3) # stop code corresponding to the format define(SOFTNUM,'3599>') # software configuration number ################################################################################ # Function code returns from the PP ################################################################################ define(READY,'>') # code retURned by PP when successful operation define(ERROR,'?') # code returned by PP when PP could NOT understand # or process command define(FAILURE,'F') # code returned by PP indicating operation was # correctly performed but failed, (e.g. see BLANK # subroutine). ################################################################################ # Codes returned by HOST PP subroutines ################################################################################ define(SUCCES,1) # function was successful, or PP function returned '>' define(FAIL,0) # PP function returned 'F' define(RCVERR,-1) # data receive error, i.e. UART error or # receiver buffer input overflow define(PPERR,-2) # PP function returned '?' define(HEXERR,-3) # illegal hex value define(NODATA,0) # no data has been received yet # # function returns from IPPTOK: define(ADDRESS,10) # TOKEN returns a 4 byte address string define(CHECKSUM,11) # string TOKEN returns a 5 byte checksum string define(HEXDATA,12) # TOKEN returns a two byte ASCII hex data word.