I have Ollydbg.
This is one example that does not run correctly.
Code:
;Telephone.asm
; Simulate telephone ringing
; Help from SuperDave -- a.k.a. DednDave,
;
; PRODUCE 1 KHz TONE FOR 54.9 mS
; PRODUCE 800 Hz TONE FOR 54.9 mS
.486 ; create 32 bit code
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include masm32includewindows.inc
include masm32includemasm32.inc
include masm32includeuser32.inc
include masm32includekeel32.inc
include masm32includeshell32.inc
includelib masm32libmasm32.lib
includelib masm32libuser32.lib
includelib masm32libkeel32.lib
includelib masm32libshell32.lib
include masm32macrosmacros.asm
.data
.code
start:
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
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
invoke ExitProcess,0
end start

برچسب:
نویسنده: استخدام کار