From 615b85025b3ad45847ecb268d513c7a2f7f31cf2 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Mon, 20 Oct 2008 17:29:23 +0000 Subject: - improved waitForJ loop by 1 instruction --- usbdrv/usbdrvasm12.inc | 3 +-- usbdrv/usbdrvasm128.inc | 3 +-- usbdrv/usbdrvasm15.inc | 3 +-- usbdrv/usbdrvasm16.inc | 3 +-- usbdrv/usbdrvasm165.inc | 3 +-- usbdrv/usbdrvasm20.inc | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/usbdrv/usbdrvasm12.inc b/usbdrv/usbdrvasm12.inc index f891ab6..3d815e7 100644 --- a/usbdrv/usbdrvasm12.inc +++ b/usbdrv/usbdrvasm12.inc @@ -52,9 +52,8 @@ USB_INTR_VECTOR: ;YL is guarenteed to be < 0x80 because I flag is clear. When we jump to ;waitForJ, ensure that this prerequisite is met. waitForJ: - sbic USBIN, USBMINUS - rjmp waitForK inc YL + sbis USBIN, USBMINUS brne waitForJ ; just make sure we have ANY timeout waitForK: ;The following code results in a sampling window of 1/4 bit which meets the spec. diff --git a/usbdrv/usbdrvasm128.inc b/usbdrv/usbdrvasm128.inc index 2dd6fe1..7cbc6e1 100644 --- a/usbdrv/usbdrvasm128.inc +++ b/usbdrv/usbdrvasm128.inc @@ -111,9 +111,8 @@ USB_INTR_VECTOR: ;YL is guarenteed to be < 0x80 because I flag is clear. When we jump to ;waitForJ, ensure that this prerequisite is met. waitForJ: - sbic USBIN, USBMINUS - rjmp waitForK inc YL + sbis USBIN, USBMINUS brne waitForJ ; just make sure we have ANY timeout waitForK: ;The following code results in a sampling window of 1/4 bit which meets the spec. diff --git a/usbdrv/usbdrvasm15.inc b/usbdrv/usbdrvasm15.inc index a315eae..1232018 100644 --- a/usbdrv/usbdrvasm15.inc +++ b/usbdrv/usbdrvasm15.inc @@ -47,9 +47,8 @@ USB_INTR_VECTOR: ;YL is guarenteed to be < 0x80 because I flag is clear. When we jump to ;waitForJ, ensure that this prerequisite is met. waitForJ: - sbic USBIN, USBMINUS - rjmp waitForK inc YL + sbis USBIN, USBMINUS brne waitForJ ; just make sure we have ANY timeout ;------------------------------------------------------------------------------- ; The following code results in a sampling window of < 1/4 bit diff --git a/usbdrv/usbdrvasm16.inc b/usbdrv/usbdrvasm16.inc index b59f74d..36fae4a 100644 --- a/usbdrv/usbdrvasm16.inc +++ b/usbdrv/usbdrvasm16.inc @@ -45,9 +45,8 @@ USB_INTR_VECTOR: ;YL is guarenteed to be < 0x80 because I flag is clear. When we jump to ;waitForJ, ensure that this prerequisite is met. waitForJ: - sbic USBIN, USBMINUS - rjmp waitForK inc YL + sbis USBIN, USBMINUS brne waitForJ ; just make sure we have ANY timeout waitForK: ;The following code results in a sampling window of < 1/4 bit which meets the spec. diff --git a/usbdrv/usbdrvasm165.inc b/usbdrv/usbdrvasm165.inc index acad899..2ebf321 100644 --- a/usbdrv/usbdrvasm165.inc +++ b/usbdrv/usbdrvasm165.inc @@ -50,9 +50,8 @@ USB_INTR_VECTOR: ;YL is guarenteed to be < 0x80 because I flag is clear. When we jump to ;waitForJ, ensure that this prerequisite is met. waitForJ: - sbic USBIN, USBMINUS - rjmp waitForK inc YL + sbis USBIN, USBMINUS brne waitForJ ; just make sure we have ANY timeout waitForK: ;The following code results in a sampling window of < 1/4 bit which meets the spec. diff --git a/usbdrv/usbdrvasm20.inc b/usbdrv/usbdrvasm20.inc index ebe14e2..fe618f6 100644 --- a/usbdrv/usbdrvasm20.inc +++ b/usbdrv/usbdrvasm20.inc @@ -61,9 +61,8 @@ USB_INTR_VECTOR: ;YL is guarenteed to be < 0x80 because I flag is clear. When we jump to ;waitForJ, ensure that this prerequisite is met. waitForJ: - sbic USBIN, USBMINUS - rjmp waitForK inc YL + sbis USBIN, USBMINUS brne waitForJ ; just make sure we have ANY timeout waitForK: ;The following code results in a sampling window of < 1/4 bit which meets the spec. -- cgit v1.2.3