push af ; Protect register in a,($bf) ; Satisfy interrupt or a ; Check if line or frame interrupt jp p,$de80 ; Jump to RAM code for line interrupt jp $016f ; Jump to ROM code for frame interrupt