View Single Post
  #13  
Old 02-23-2024, 06:57
0x1F 0x1F is offline
Guest
 
Join Date: Jan 2024
Posts: 2
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 1
Thanks Rcvd at 0 Times in 0 Posts
0x1F Reputation: 0
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