I'm looking to embed some _asm { } in my c code for an implementation of semaphores... i'm not really all that familar with x86 asm and was wondering if someone had a tutorial or some insight into the subject. i know i need to diasable all interrupts.. inc a register and then enable interrupts... vice versa for the down semaphore routine. any help is much appreciated. ::chris::
Posted on 2001-03-10 11:11:00 by yeyo
yeyo, You're better of using the systems semaphores,mutexes and critical sections, they are managed by the system, fast and you don't have to get your hands dirty.... unless there is a specificreason to use asm, then I'd stick to the Win32 ones :) Umbongo
Posted on 2001-03-12 04:08:00 by umbongo