This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

who can tell me,how turn this word into keil c's word. think you!!

who can tell me,how turn this word into keil c's word. think you!!

ERR: CLR 0AFH
MOV DPTR, #ERR1
PUSH DPH
PUSH DPL
RETI
RETI
ERR1: MOV DPTR, #READY1
PUSH DPH
PUSH DPL
RETI
RETI

Parents
  • What is its purpose?
    Does it work?

    If it works, why not just use it? why convert it?
    If it doesn't work, why not just fix it? why convert it and risk introducing even more problems!

    In fact, it looks like this code is hacking the return address on the stack, or somesuch.
    You need to use assembler to do that stuff - it cannot be done in 'C'.

Reply
  • What is its purpose?
    Does it work?

    If it works, why not just use it? why convert it?
    If it doesn't work, why not just fix it? why convert it and risk introducing even more problems!

    In fact, it looks like this code is hacking the return address on the stack, or somesuch.
    You need to use assembler to do that stuff - it cannot be done in 'C'.

Children
No data