made a function for masking + fixed jsr

jump table now uses JMP instead of JSR, also made a function to remove a
few lines of code for every jmp