I write a simple application (on FASM) in which the event is invoked. If this event occurs 10 times, the application should be closed, otherwise the work will continue. I wrote the code, the application closes when the event is triggered, the error is: Code:

button_event: add [accum], 1d cmp [accum], 10d je close_program jmp wait_event close_program: mcall -1 ... DATA accum dw 1d 

Closed due to the fact that the issue is too common for participants insolor , Yuri Glushenkov , Athari , Streletz , Vladimir Glinskikh Nov 17 '15 at 13:41 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    If you write in assembler and you need help, then: 1. Write the name and version of the program for the assembler 2. Give the full listing of the code, not the snaps 3. Write on which and under what platform you compile (DOS, Win32, Win64, Linux, etc) --------------- You can also try to contact the forum wasm.ru - Alex Krass
  • Use the debugger. - Abyx

0