Re: Update on emulating a paddle on the C64.

From: Greg King (
Date: 2004-12-09 04:05:35

From: Jim Brain; on Date: November 20, 2004, at 12:36 AM -0500
> ...  Then, the counter value is subtracted from the last
> captured counter value.  The result is made positive, and it is checked
> for sanity.  Assuming the number is < 7000, it is checked for equality
> with 4096.  ...

Is that sign-inversion necessary?  If the code to subtract the old counter
value from the new one is less efficient, then can't you use the negative
difference directly?  (If it's greater than -7000, then, compare it
to -4096.)

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.