PHK PEA .jslrtsreturn-1 PEA.w $0084CF-1 JML $008000 .jslrtsreturn: ; or if you also need to set the DBR: PHB db $F4,$008000>>16,.jslrtsreturn>>16 ; stamp out a PEA in hex because the math otherwise gets annoying PLB PEA .jslrtsreturn-1 PEA.w $0084CF-1 JML $008000 .jslrtsreturn: PLB