Re: Disabling The Keyboard
- From: Herbert Kleebauer <klee@xxxxxxxxx>
- Date: Sun, 15 Jan 2006 10:55:54 +0100
look and see wrote:
> > Now LOOK and SEE and then post a correct version
> Here is a "correct" version.
No need for a complete rewrite. All you had to do was to delete
the line "jmp wake_up" in your previous post.
But don't you think it is much simpler instead to add
the delay to old value and compare this sum with the new
value, to subtract the old value from the new value and
compare this difference with the delay. This way there
is no wrap around problem and it also doesn't matter
whether you use a signed or unsigned brach condition.
0100: b4 00 move.b #0,m0
0102: cd 1a trap #$1a
0104: 89 d3 move.w r1,r3
0106: b4 00 loop: move.b #0,m0
0108: cd 1a trap #$1a
010a: 29 da sub.w r3,r1
010c: 83 fa 48 cmpq.w #72,r1
010f: 76 f5 bls.b loop
.
- Follow-Ups:
- Re: Disabling The Keyboard
- From: Alex
- Re: Disabling The Keyboard
- References:
- Re: Disabling The Keyboard
- From: Annie
- Re: Disabling The Keyboard
- From: look and see
- Re: Disabling The Keyboard
- From: Herbert Kleebauer
- Re: Disabling The Keyboard
- From: look and see
- Re: Disabling The Keyboard
- Prev by Date: Re: Disabling The Keyboard
- Next by Date: Re: Normal for a HLA program?
- Previous by thread: Re: Disabling The Keyboard
- Next by thread: Re: Disabling The Keyboard
- Index(es):
Relevant Pages
|