I agree, I had to do something similar on the PIC-based rig I used to 'demo' the VDU before Ian's issue VI PCB made it easy to connect it back up to a real MK14. I had to use a lot of repeated, inline assembly code in that because I could not spare the extra time overhead needed for a loop downcounter and conditional jump.
The end justifies the means.