;
; NEWLN processes a hex record text line from the serial port.
;
; HyperTerminal should be set to 19.2 kb, 8 data bits, 1 stop bit,
; no parity, <Xon>/<Xoff> (software) handshaking, no 'echo', and
; 2-msec line delay.
;
; each 'hex record' starts with a colon (":") character, ends with
; <cr> and <lf> characters, and looks something like this;
;
; <:><bytecount><addrh><addrl><type><data>..<data><chksum><cr><lf>
;
; the <addrh> and <addrl> "byte" address must be converted into a
; "word" address for EEADR and EEADRH before write operations.
;
; <type> field values
; 00 = Data Record > address and data
; 01 = End of File Record
; 02 = Segment Address Record > ?
; 04 = Linear Address Record > two byte extended address
; (18F' > 0000=Program, 0020=IDLocs, 0040=Config, 00F0=EEProm)
;
; one Linear Address Record (type=04) appears at the beginning of
; 16F87/88 Hex files (":020000040000FA") with an address of 0000h.
;
; the 16F87/88 only supports writing program/flash and data/eeprom
; memory from within a program. no IDLOCS or configuration bits.
;