How to write usleep function?

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
kapitan_hak
Posts: 3
Joined: Sat Nov 10, 2007 1:03 pm

How to write usleep function?

Post by kapitan_hak »

Welcome
first - sorry for my English, because I'm Polish, and don't speak in this language very well. I'm writing simple OS. It yet don't have Memory Manager, Filesystem Support, Multitasking. When I'm writing floppy driver I need to use usleep function. How can I do it? Thanks for your help. k_h
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Set up the PIT timer, then repeatedly read back the time.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply