Beginner's Post
Posted: Mon Sep 14, 2009 6:51 pm
Please, help me...
i am a beginner in c, assembly, and usb., everything i saw in this source code, it always make me want to cry at loud...
i started study assembly part of usb driver:
when i look into assembly part of this usb driver, in this case "usbdrvasm12.inc", in this piece:
rxLoop:
eor x3, shift ;1 [0] reconstruct: x3 is 0 at bit locations we changed, 1 at others
in x1, USBIN ;1 [1] <-- sample bit 0
st y+, x3 ;2 [3] store data
ser x3 ;1 [4]
nop ;1 [5]
eor x2, x1 ;1 [6]
bst x2, USBMINUS;1 [7]
bld shift, 0 ;1 [8]
in x2, USBIN ;1 [9] <-- sample bit 1 (or possibly bit 0 stuffed)
andi x2, USBMASK ;1 [10]
breq se0 ;1 [11] SE0 check for bit 1
source above branch to label "se0".. where can i find those label ?
pleeaaaseee... and thanks before
sorry, my english bad
i am a beginner in c, assembly, and usb., everything i saw in this source code, it always make me want to cry at loud...
i started study assembly part of usb driver:
when i look into assembly part of this usb driver, in this case "usbdrvasm12.inc", in this piece:
rxLoop:
eor x3, shift ;1 [0] reconstruct: x3 is 0 at bit locations we changed, 1 at others
in x1, USBIN ;1 [1] <-- sample bit 0
st y+, x3 ;2 [3] store data
ser x3 ;1 [4]
nop ;1 [5]
eor x2, x1 ;1 [6]
bst x2, USBMINUS;1 [7]
bld shift, 0 ;1 [8]
in x2, USBIN ;1 [9] <-- sample bit 1 (or possibly bit 0 stuffed)
andi x2, USBMASK ;1 [10]
breq se0 ;1 [11] SE0 check for bit 1
source above branch to label "se0".. where can i find those label ?
pleeaaaseee... and thanks before
sorry, my english bad