Dans un programme assemble, je souhaiterai faire une attente de quelques secondes.
Exist-il une instruction asm ?
merci
Dans un programme assemble, je souhaiterai faire une attente de quelques secondes.
Exist-il une instruction asm ?
merci
Salut,
Non, pas exactement. Par contre, il existe plusieurs manières de faire dépendantes de l'environnement. Cette liste n'est pas exhaustive.Envoyé par themust
- BIOS interrupt
INT 15h Function 86h Wait
AH 86h
CXX 4-byte integer, number of microseconds to wait
CX high word, DX low word
return CF clear after wait elapses
CF set immediately due to error
1) Suspends the calling program for a specified interval in
microseconds.
2) The actual duration of the wait is always an integral multiple
of 976 microseconds.
3) Use of this function allows programmed, hardware-independent
delays at a finer resolution than can be obtained through use
of the MS-DOS Get Time function (int 21h fn 2Ch) which returns
time in hundredths of a second.
4) This function calls int 70h and is not the normal Int 08h/1Ch
clock tick. It is generated by the MC146818A Real Time Clock
chip. This is the battery backed CMOS clock chip.- self made
c'est une version améliorée de la célèbre boucle d'attente. Merci Randall
Timing Delay Loops- win32
sous windows la fonction Sleep fait l'affaire
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager