Page 1 of 1

Need USB driver .asm listing

Posted: Thu Nov 21, 2002 12:00 am
by needusbinfo
I'm trying to write a USB device driver for an 'oddball' OS, but the 400 page usb specification is confusing and nonspecific. In short I need a turbo assembler listing for a USB driver.

I've managed to determine if a device is connected to a particular usb port, but when it comes to the get_descriptor SETUP/DATA/STATUS transactions I'm setting the run/stop bit in the command register (after setting up 3 tokens, frame lists, frame list pointers) and NOT getting the suposed 18 byte device descriptor back.  
If anyone has a concise .asm (prefer turbo assembler) listing of how to implement a ''get_device_descriptor'' command for USB, then could you send me the listing via email. Ideally I'd like to get data from devices such as webcams/joysticks/etc over USB and would appreciate any .asm programs that do this.

email to [email protected]

RE:Need USB driver .asm listing

Posted: Mon Nov 25, 2002 12:00 am
by needusbinfo
I knew I'd be pi$$ing in the wind asking for this info.

RE:Need USB driver .asm listing

Posted: Tue Dec 03, 2002 12:00 am
by xsism
lol, better to be pissed off than pissed on ehh? Try a pre-existing OS. search 4 assembly based OS's. Try www.programmersheaven.com . i highly doubt there is a turbo asm specific device driver out there for usb.

sorry, but we all have to learn somehow, i oftem learn the hard way. Be diligent ;)

regards,
Mr. Xsism

RE:Need USB driver .asm listing

Posted: Tue Dec 17, 2002 12:00 am
by prog
Tip #1: Writing a complex entirely in Asm is ridiculous. Use GCC or DJGPP.
Tip #2: If using ASM, at least use an asm that isn't dead. Use NASM or GAS
Tip #3: Look at existing Open-Source OSes.