Add small gate auto-close to existing PIC16F873 .asm + build HEX (no code changes).

Job ID: 40251238

Budget: $30 – $250 AUD

Legacy PIC16F873 assembly file (sp501404.asm, ~5000 lines) compiled successfully last year — no changes to ORG/RES, # immediates, banking or any legacy syntax needed.

Task:
Insert this ~15-line gate auto-close block in READINP after INP8 check, before NOIP/RETURN (with clear start/end comments):

BTFSS INPUTS,6 ; Skip if closed
GOTO NOIP
BTFSC SYSTAT2,2 ; Skip if manual open mode
GOTO NOIP
BANK1
MOVF OPENPULSE,F ; Skip if open pulse active
BTFSS ZERO
GOTO NOIP
MOVF CLOSEPULSE,F ; Skip if close pulse active
BTFSS ZERO
GOTO NOIP
MOVF DOSETIME,F ; Skip if dose timer active
BTFSS ZERO
GOTO DOSETIME_LSB_CHECK
MOVF DOSETIME+1,F
BTFSS ZERO
GOTO NOIP
DOSETIME_LSB_CHECK:
BANK0
GOTO CHKCL

Build to .hex using a compatible old MPASM version - do not convert to CBLOCK, do not remove # immediates, do not fix banking or any legacy syntax.

Additional scope (included in fixed price):

After .hex delivery, I will test on hardware (PIC16F873 board with PICkit 4).
Up to 2 revision rounds for minor fixes (e.g. timing, banking, unexpected behavior) if needed — no scope change.

Deliverables:

Updated .asm file (only insertion added)
Compiled .hex file
Full MPLAB X project folder (for future edits)
Short note: MPASM version used + "build clean" + insertion location

Board uses 4 MHz crystal (XT mode, 22 pF load caps) — keep __CONFIG 0xD01 unchanged.
No hardware testing required on your end.
Fixed price $150–$250 AUD total (no hourly). Timeline 1–3 days preferred.
Please confirm in your bid:

You can use old MPASM (no PIC-AS/modern rewrite)
Total fixed price and timeline

Original .asm provided on award. Light formatting cleanup (spacing/comments alignment) is okay if it helps.
Thank you. Looking for fast, reliable turnaround from someone experienced with legacy PIC assembly.