I forgot what to do so I do not have to type the whole section.
Macro comes to mind, but I am probably wrong.
mov ecx, 15
@@:
push ecx
invoke Beep, 1000, 55 ; Frequency in hertz and sound duration
invoke Beep, 800, 55
pop ecx
dec ecx
jnz @B
invoke Sleep, 1500
I found some examples in MASM32/macros/ but I am lost.
Magnum: ... I do not have to type the whole section.
- I don't understand what u want to do. What section?
I want to repeat the code I posted without typing the whole thing.
I know a lot of folks are mad at me, so the responses will be minimal. :biggrin:
I will try real hard to not post anything to the Colesseum or other controversial areas. :-)
playbeeps MACRO
LOCAL beeploop
mov ecx, 15
beeploop:
push ecx
invoke Beep, 1000, 55 ; Frequency in hertz and sound duration
invoke Beep, 800, 55
pop ecx
dec ecx
jnz beeploop
invoke Sleep, 1500
ENDM