Run FLASH.8XP on OS 2.41, 84+SE ONLY. It will crash, reset, and patch OS 2.41's _FlashWriteDisable to not check for A=0.

Then to unlock, do something to the effect of:

unlockFlash:
        in a,(6)
        push af
        ld a,7Bh
        out (6),a
        ld hl,returnPoint
        push hl
        ld hl,_FlashWriteDisable
        ld e,(hl)
        inc hl
        ld d,(hl)
        inc hl
        ld a,(hl)
        out (6),a
        ex de,hl
        ld bc,0FFFFh
        ld a,0AFh
        cpir
        push af
        ld a,1
        jp (hl)
returnPoint:
        pop af
        out (6),a
        ret

Don't do anything stupid.