[comp.sys.atari.st] Jclock auto program fix

opielask@clutx.clarkson.edu (Scott K. Opiela,,,2684025) (01/19/90)

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