View Single Post
  #12  
Old 02-23-2024, 06:57
0x1F
 
Posts: n/a
Code:
.data
    msgTemplate db "serial %d", 0
    serial dd ? ; initialize this somewhere

.code
start:
    mov ecx, 222222 

loop_start:
    mov eax, 2 ; c1
    mov ebx, 2 ; c2, etc.

    cmp eax, [serial]
    je match_found

    inc ecx
    cmp ecx, 999999
    jle loop_start

    jmp exit

match_found:
    ; write your msgbox here :)

exit:
    ; do your cleanup
Here is a good start for you
You have to write your own logic for digit extraction and calling msgbox
Reply With Quote