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