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 \masm32\include\windows.inc
include \masm32\include\masm32.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
include \masm32\include\shell32.inc
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\shell32.lib
include \masm32\macros\macros.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
Track down why program will not run under Wine
Aucun commentaire:
Enregistrer un commentaire