Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!image.soe.clarkson.edu!news From: opielask@clutx.clarkson.edu (Scott K. Opiela,,,2684025) Newsgroups: comp.sys.atari.st Subject: Jclock auto program fix (programming question) Message-ID: <1990Jan18.220046.3795@sun.soe.clarkson.edu> Date: 18 Jan 90 22:00:46 GMT References: <18606@dartvax.Dartmouth.EDU> Sender: news@sun.soe.clarkson.edu Reply-To: opielask@clutx.clarkson.edu Organization: Clarkson University, Potsdam, NY Lines: 34 I have been using JCLOCK.PRG in my auto folder for quite a while, and I love it. It's a corner clock that changes resolutions with you, a capslock indicator and is easily enabled/disabled via key combos. BUT I hate the fact that it waits for a return from the keyboard while booting. I have disassembled it, and found where it input from the keyboard: H42A: move.w #7, -(a7) * 3F3C 0007 trap #1 * 4E41 addq.l #2, a7 * 548F rts * 4E75 Quite straight forward. Push C_RAWCIN function call, call function, then "tidy" stack and return. I would like to change it to essentually: H42A: move.l d0, xxxxxxxx rts This would cause it to return with a "return." But my problem is that I don't know what value is being returned for that key by the C_RAWCIN function. Could someone CODE this little subroutine AND include the HEX so I can use a disk editor to change it? I will try to figure out how to post the result once I get it working. --------------------------- AAron nAAs opielask@clutx.clarkson.edu