
02-23-2024, 21:42
|
|
Friend
|
|
Join Date: Sep 2022
Location: Bangladesh
Posts: 26
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 76
Thanks Rcvd at 7 Times in 2 Posts
|
|
Quote:
Originally Posted by 0x1F
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
|
The above code is not going to work.
|