Need USB driver .asm listing

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
needusbinfo

Need USB driver .asm listing

Post 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]
needusbinfo

RE:Need USB driver .asm listing

Post by needusbinfo »

I knew I'd be pi$$ing in the wind asking for this info.
xsism

RE:Need USB driver .asm listing

Post 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
prog

RE:Need USB driver .asm listing

Post 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.
Post Reply