File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ proc BestScores.DrawScores uses eax ecx ebx,\
32
32
mov ecx , [ ebx ]
33
33
cmp ecx , 0
34
34
je .exit
35
+ cmp ecx , TABELS_ON_PAGE
36
+ jbe @F
37
+ mov ecx , TABELS_ON_PAGE
38
+ @@:
35
39
mov ebx , [ object ]
36
40
.saveData:
37
41
push edi
@@ -50,10 +54,26 @@ proc BestScores.DrawScores uses eax ecx ebx,\
50
54
pop edi
51
55
add edi , 4
52
56
loop .saveData
53
- .exit:
54
57
mov ebx , [ count ]
55
58
mov ecx , [ ebx ]
56
- cmp ecx ,
59
+ cmp ecx , TABELS_ON_PAGE
60
+ ja .exit
61
+ mov eax , TABELS_ON_PAGE
62
+ sub eax , ecx
63
+ xchg ecx , eax
64
+ .clearLoop:
65
+ push edi
66
+ mov edi , [ edi ]
67
+ inc edi
68
+ stdcall ConvertStringToOutputString , str_nullerror , edi
69
+ add edi , 3
70
+ stdcall ConvertStringToOutputString , str_nullerror , edi
71
+ add edi , 31
72
+ stdcall ConvertStringToOutputString , str_nullerror , edi
73
+ pop edi
74
+ add edi , 4
75
+ loop .clearLoop
76
+ .exit:
57
77
stdcall BestScores.DataPrepears
58
78
ret
59
79
endp
Original file line number Diff line number Diff line change 1
- Login db 'QWERTY' , 0 ; 30 dup(0), 0
2
- Password db '12345678' , 0 ; 30 dup(0), 0
1
+ Login db 30 dup( 0 ) , 0
2
+ Password db 30 dup( 0 ) , 0
3
3
CurrentPlayerId dd 0
4
4
gameCounter dd 0
5
5
You can’t perform that action at this time.
0 commit comments