aboutsummaryrefslogtreecommitdiffstats
path: root/usbdrv
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2008-10-17 17:25:00 +0000
committerChristian Starkjohann <cs+github@obdev.at>2008-10-17 17:25:00 +0000
commit0f024642bf9a9971eeb3469e5ab58e43c564298d (patch)
tree07bf53e88b1eb0f8af148116cc488a4b38649bea /usbdrv
parentb1428efa54cf1f2948a4a324230de3528c8ead5e (diff)
downloadv-usb-0f024642bf9a9971eeb3469e5ab58e43c564298d.tar.gz
v-usb-0f024642bf9a9971eeb3469e5ab58e43c564298d.tar.bz2
v-usb-0f024642bf9a9971eeb3469e5ab58e43c564298d.zip
- fixed comments
Diffstat (limited to 'usbdrv')
-rw-r--r--usbdrv/usbdrvasm12.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/usbdrv/usbdrvasm12.inc b/usbdrv/usbdrvasm12.inc
index c1fab2f..389dbb7 100644
--- a/usbdrv/usbdrvasm12.inc
+++ b/usbdrv/usbdrvasm12.inc
@@ -297,8 +297,8 @@ usbSendX3: ;0 [-16]
;usbSend:
;pointer to data in 'Y'
;number of bytes in 'cnt' -- including sync byte
-;uses: x1...x3, shift, cnt, Y [x1 = mirror USBOUT, x2 = USBMASK, x3 = bitstuff cnt]
-;Numbers in brackets are time since first bit of sync pattern is sent
+;uses: x1...x2, x4, shift, cnt, Y [x1 = mirror USBOUT, x2 = USBMASK, x4 = bitstuff cnt]
+;Numbers in brackets are time since first bit of sync pattern is sent (start of instruction)
usbSendAndReti:
in x2, USBDDR ;[-12] 12 cycles until SOP
ori x2, USBMASK ;[-11]
@@ -325,7 +325,7 @@ doExorN2:
ldi x4, 6 ;[05] [13]
commonN2:
nop ;[06] [14]
- subi cnt, 171 ;[07] [15]
+ subi cnt, 171 ;[07] [15] trick: (3 * 171) & 0xff = 1
out USBOUT, x1 ;[08] [16] <--- set bit
brcs txBitloop ;[09] [25] [41]