include "icddefs1.bas" asm ; Defines for APP-II routines ; Description: Set up RS232 port (19.2K baud) ; Call with bank= 0 ; Returns with bank= 0 _SerialSetup EQU 0x0F03 ; Description: Send data in W to RS232 ; Call with bank= Any ; Returns with bank= 0 _SerialTransmit EQU 0x0F14 ; Description: Read character from RS232 to W (waits) ; Echos character back to sender ; Call with bank= Any ; Returns with bank= 0 _SerialReceive EQU 0x0F0E ; Description: Write byte at FSR to RS232 as ASCII hex ; Call with bank= Any ; Returns with bank= 0 _Hexout EQU 0xF1A ; Description: Writes least significant 4 bits of W out as ASCII hex ; Call with bank= Any ; Returns with bank=0 _Hexout0 EQU 0xF1D ; Description: Delays # of cycles in W (11 to 255) ; does not count time to load W or PCLATH, if necessary ; Call with bank= Any ; Returns with bank= No change _Delay EQU 0xF23 ; Description: Writesdata at EEDATH:EEDATA to EEADRH:EEADR ; (Flash memory) ; Call with bank= Any ; Returns with bank= No change _FlashWrite EQU 0xFBF ; Description: Read word from EEADRH:EEADR to EEDATH:EEDATA ; (Flash memory) ; Call with bank=Any ; Returns with bank=2 _FlashRead EQU 0xFCA ; Description: Read a hex byte from RS232 to W & location 0x20 ; Call with bank=Any ; Returns with bank=0 ; warning routine uses ; RAM 0x20 _GetHexByte EQU 0xFAD endasm