Rev 983 | Rev 1496 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 983 | Rev 1329 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | ;; ;; |
14 | ;; ;; |
15 | ;; Note: playnote.txt ;; |
15 | ;; Note: playnote.txt ;; |
16 | ;; ;; |
16 | ;; ;; |
17 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
17 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 19... | Line 19... | ||
19 | $Revision: 983 $ |
19 | $Revision: 1329 $ |
20 | 20 | ||
Line 21... | Line 21... | ||
21 | align 4 |
21 | align 4 |
Line 141... | Line 141... | ||
141 | RET |
141 | RET |
142 | ReadNoteByte: |
142 | ReadNoteByte: |
143 | ;result: |
143 | ;result: |
144 | ; al - note |
144 | ; al - note |
145 | push eax |
145 | push eax |
146 | push ebx |
- | |
147 | push ecx |
146 | push ecx |
148 | push edx |
147 | push edx |
- | 148 | push esi |
|
- | 149 | ||
149 | mov eax,[pidProcessNote] |
150 | mov eax,[pidProcessNote] |
150 | call pid_to_slot |
151 | call pid_to_slot |
151 | test eax,eax |
152 | test eax,eax |
152 | jz .failed |
153 | jz .failed |
153 | lea ebx,[esp+12] |
154 | lea ecx,[esp+12] |
154 | mov ecx,1 |
155 | mov edx,1 |
155 | mov edx,[memAdrNote] |
156 | mov esi,[memAdrNote] |
156 | inc [memAdrNote] |
157 | inc [memAdrNote] |
- | 158 | ||
157 | call read_process_memory |
159 | call read_process_memory |
158 | .failed: |
160 | .failed: |
- | 161 | pop esi |
|
159 | pop edx |
162 | pop edx |
160 | pop ecx |
163 | pop ecx |
161 | pop ebx |
- | |
162 | pop eax |
164 | pop eax |
163 | ret |
165 | ret |
164 | ;------------------- END CODE -------------------><><<> |
166 | ;------------------- END CODE -------------------><><<> |