Rev 515 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 515 | Rev 532 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | xor edx, edx |
57 | xor edx, edx |
58 | mov eax, [total1] |
58 | mov eax, [total1] |
59 | mov ebx, 10000 |
59 | mov ebx, 10000 |
60 | div ebx |
60 | div ebx |
61 | mov [ost], eax ; example 160049 |
61 | mov [ost], eax ; example 160049 |
62 | mov eax, [total] |
62 | mov ecx, [total] |
63 | imul eax, 100 |
63 | imul ecx, 100 |
64 | mov [sot], eax ; example 160000 |
- | |
65 | mov eax, [ost] |
64 | neg ecx |
66 | sub eax, [sot] |
65 | add ecx, eax |
67 | mov [sot], eax ; example 49 |
66 | mov [sot], ecx ; example 49 |
68 | ;------------ |
67 | ;------------ |
69 | cpu: ;is CPUID supported? |
68 | cpu: ;is CPUID supported? |
70 | pushfd ;push original EFLAGS |
69 | pushfd ;push original EFLAGS |
71 | pop eax ;get original EFLAGS |
70 | pop eax ;get original EFLAGS |
72 | mov ebx, eax ;save original EFLAGS |
71 | mov ebx, eax ;save original EFLAGS |
Line 90... | Line 89... | ||
90 | 89 | ||
Line 91... | Line 90... | ||
91 | ; for various vendors we should later use different methods |
90 | ; for various vendors we should later use different methods |
Line 92... | Line 91... | ||
92 | 91 | ||
93 | ;Decoding cache L1 and L2 for Intel |
92 | ;Decoding cache L1 and L2 for Intel |
94 | - | ||
95 | cmp [smallvendor], 'ntel' |
- | |
Line 96... | Line 93... | ||
96 | jne cpu1 ;is not Intel |
93 | |
Line 97... | Line 94... | ||
97 | je .detec |
94 | cmp ecx, 'ntel' |
98 | .detec: |
95 | jne cpu1 ;is not Intel |
Line 99... | Line 96... | ||
99 | 96 | ||
100 | ;Starting L1, L2, L3 caches detection (Intel made it VERY HARD) |
97 | ;Starting L1, L2, L3 caches detection (Intel made it VERY HARD) |
101 | - | ||
Line 102... | Line 98... | ||
102 | mov eax, 2 |
98 | |
103 | cpuid |
99 | mov eax, 2 |
104 | 100 | cpuid |
|
105 | mov [che], al ; number of calls |
- | |
106 | multik: |
- | |
107 | dec [che] |
- | |
108 | - | ||
109 | .eaxl: |
- | |
110 | test eax, $80000000 ; Test bit 31 |
101 | |
111 | jnz .ebxl ; <> 0 =>invalid values |
102 | mov [che], al ; number of calls |
112 | shr eax, 8 |
103 | multik: |
113 | call decodecache |
104 | |
114 | shr eax, 8 |
105 | .eaxl: |
115 | call decodecache |
106 | test eax, eax ; Test bit 31 |
116 | shr eax, 8 |
- | |
117 | call decodecache |
- | |
118 | .ebxl: |
- | |
119 | test ebx, $80000000 |
- | |
120 | jnz .ecxl |
- | |
121 | mov eax, ebx |
- | |
122 | call decodecache |
107 | js .ebxl ; <> 0 =>invalid values |
123 | shr eax, 8 |
108 | call decodecache24 |
124 | call decodecache |
109 | .ebxl: |
125 | shr eax, 8 |
110 | test ebx, ebx |
126 | call decodecache |
111 | js .ecxl |
127 | shr eax, 8 |
- | |
128 | call decodecache |
- | |
129 | .ecxl: |
- | |
130 | test ecx, $80000000 |
- | |
131 | jnz .edxl |
- | |
132 | mov eax, ecx |
- | |
133 | call decodecache |
112 | mov eax, ebx |
134 | shr eax, 8 |
113 | call decodecache32 |
135 | call decodecache |
114 | .ecxl: |
136 | shr eax, 8 |
115 | test ecx, ecx |
137 | call decodecache |
116 | js .edxl |
138 | shr eax, 8 |
- | |
139 | call decodecache |
- | |
140 | .edxl: |
- | |
141 | test edx, $80000000 |
- | |
142 | jnz cpu1 |
- | |
143 | mov eax, edx |
- | |
Line 144... | Line 117... | ||
144 | call decodecache |
117 | mov eax, ecx |
145 | shr eax, 8 |
118 | call decodecache32 |
Line 146... | Line 119... | ||
146 | call decodecache |
119 | .edxl: |
Line 147... | Line 120... | ||
147 | shr eax, 8 |
120 | test edx, edx |
Line 164... | Line 137... | ||
164 | xor eax, eax |
137 | xor eax, eax |
165 | inc eax ; eax=1 |
138 | inc eax ; eax=1 |
166 | cpuid |
139 | cpuid |
Line 167... | Line 140... | ||
167 | 140 | ||
168 | mov ecx, eax |
- | |
169 | and ecx,00000F00h ; get CPU family |
141 | mov ecx, eax |
- | 142 | shr ecx,8 ; shift it to the correct position |
|
170 | shr ecx,8 ; shift it to the correct position |
143 | and ecx,0000000Fh ; get CPU family |
Line 171... | Line 144... | ||
171 | mov dword[f],ecx |
144 | mov dword[f],ecx |
172 | - | ||
173 | mov ecx, eax |
145 | |
- | 146 | mov ecx, eax |
|
174 | and ecx,000000F0h ; get CPU model |
147 | shr ecx,4 |
Line 175... | Line 148... | ||
175 | shr ecx,4 |
148 | and ecx,0000000Fh ; get CPU model |
176 | mov dword[m],ecx |
149 | mov dword[m],ecx |
177 | 150 | ||
Line 188... | Line 161... | ||
188 | ;======================================================= |
161 | ;======================================================= |
Line 189... | Line 162... | ||
189 | 162 | ||
190 | cmp dword[smallvendor], 'cAMD' |
163 | cmp dword[smallvendor], 'cAMD' |
191 | jz maybe_athlon |
164 | jz maybe_athlon |
192 | cmp dword[smallvendor], 'ntel' |
- | |
193 | jz detect_it |
165 | cmp dword[smallvendor], 'ntel' |
Line 194... | Line 166... | ||
194 | jmp no_full ; if not AMD or Intel |
166 | jnz no_full ; if not AMD or Intel |
195 | 167 | ||
196 | detect_it: |
168 | detect_it: |
Line 227... | Line 199... | ||
227 | 199 | ||
228 | maybe_athlon: |
200 | maybe_athlon: |
229 | mov eax, 0x80000001 ; CPUID ext. function 0x80000001 |
201 | mov eax, 0x80000001 ; CPUID ext. function 0x80000001 |
230 | cpuid |
202 | cpuid |
231 | mov ecx, eax |
- | |
232 | and ecx,00000F00h ; get CPU family |
203 | mov ecx, eax |
- | 204 | shr ecx,8 ; shift it to the correct position |
|
233 | shr ecx,8 ; shift it to the correct position |
205 | and ecx,0000000Fh ; get CPU family |
Line 234... | Line 206... | ||
234 | mov dword[ef],ecx |
206 | mov dword[ef],ecx |
235 | - | ||
236 | mov ecx, eax |
207 | |
- | 208 | mov ecx, eax |
|
237 | and ecx,000000F0h ; get CPU model |
209 | shr ecx,4 |
Line 238... | Line 210... | ||
238 | shr ecx,4 |
210 | and ecx,0000000Fh ; get CPU model |
Line 239... | Line 211... | ||
239 | mov dword[em],ecx |
211 | mov dword[em],ecx |
240 | 212 | ||
241 | fut: |
213 | fut: |
Line 242... | Line 214... | ||
242 | 214 | ||
243 | call decode_sse3 |
- | |
244 | ;- |
- | |
245 | call decode_extended |
- | |
246 | - | ||
247 | mov eax,$80000000 |
- | |
248 | cpuid |
- | |
Line 249... | Line 215... | ||
249 | 215 | call decode_sse3 |
|
250 | mov [extc], eax ; max number of calls |
- | |
251 | 216 | ;- |
|
Line 252... | Line -... | ||
252 | test eax, $80000000 ;// Test bit 31 |
- | |
253 | jz .noname |
217 | call decode_extended |
254 | 218 | ||
255 | cmp eax,$80000003 |
219 | mov dword [myname], $612F6E |
256 | ja .mynameis |
220 | |
257 | jmp .noname |
221 | cmp [extc], $80000003 |
Line 273... | Line 237... | ||
273 | cpuid |
237 | cpuid |
274 | mov [myname+32],eax |
238 | mov [myname+32],eax |
275 | mov [myname+36],ebx |
239 | mov [myname+36],ebx |
276 | mov [myname+40],ecx |
240 | mov [myname+40],ecx |
277 | mov [myname+44],edx |
241 | mov [myname+44],edx |
278 | jmp red |
- | |
Line 279... | Line 242... | ||
279 | 242 | ||
280 | .noname: |
- | |
281 | mov dword [myname], $612F6E |
- | |
282 | 243 | .noname: |
|
Line 283... | Line -... | ||
283 | red: |
- | |
284 | - | ||
285 | xor ecx, ecx |
- | |
286 | xor eax, eax |
- | |
287 | xor edx, edx |
- | |
288 | xor ebx, ebx |
244 | red: |
Line 289... | Line 245... | ||
289 | 245 | ||
290 | ;mov byte [multiplier], 115; ; for testing |
246 | ;mov byte [multiplier], 115; ; for testing |
Line 291... | Line -... | ||
291 | - | ||
292 | call multipl ; get multiplier |
247 | |
293 | mov byte [multiplier], cl |
- | |
294 | 248 | call multipl ; get multiplier |
|
Line 295... | Line 249... | ||
295 | xor eax, eax |
249 | mov byte [multiplier], cl |
- | 250 | ||
296 | xor ebx, ebx |
251 | mov dword [freqbb], 0 |
Line 297... | Line 252... | ||
297 | xor ecx, ecx |
252 | mov dword [freqll], 0 |
Line 298... | Line 253... | ||
298 | xor edx, edx |
253 | |
299 | 254 | mov ebx, dword [multiplier] |
|
300 | cmp dword[multiplier], 0 |
- | |
301 | jz contin |
- | |
302 | - | ||
303 | calc: |
- | |
304 | - | ||
305 | mov eax,dword [ost] ; example 166474 |
- | |
306 | imul eax, 10 ; example 1664740 |
- | |
307 | mov ebx, dword [multiplier] ; get system clock (if multiplier detected) |
- | |
308 | div ebx |
- | |
309 | mov dword [freqbb], eax ; 16647 |
- | |
310 | - | ||
311 | xor eax, eax |
- | |
312 | xor ebx, ebx |
- | |
313 | xor ecx, ecx |
- | |
314 | xor edx, edx |
- | |
315 | - | ||
316 | mov eax,dword [ost] ;example 166474 |
- | |
317 | mov ebx,10 |
- | |
318 | div ebx ;example 16647 |
255 | test ebx, ebx |
- | 256 | jz output |
|
Line 319... | Line -... | ||
319 | - | ||
320 | mov dword [temp], eax |
- | |
321 | - | ||
322 | xor eax, eax |
257 | |
323 | xor ebx, ebx |
- | |
324 | xor ecx, ecx |
- | |
325 | xor edx, edx |
- | |
326 | - | ||
327 | mov eax, dword [temp] |
- | |
328 | - | ||
329 | mov ebx, dword [multiplier] |
- | |
330 | div ebx ; example 166 |
- | |
331 | - | ||
332 | imul eax, 100 |
- | |
333 | mov dword[freqll], eax ; example 16600 |
- | |
334 | - | ||
335 | xor eax, eax |
- | |
336 | xor ebx, ebx |
- | |
337 | xor ecx, ecx |
- | |
338 | xor edx, edx |
- | |
339 | - | ||
340 | mov eax, dword[freqbb]; example 16647 |
- | |
341 | sub eax, dword[freqll]; example 16600 |
- | |
342 | mov dword[freqll], eax ;example 47 |
- | |
343 | - | ||
344 | 258 | calc: |
|
345 | xor eax, eax |
259 | |
346 | xor ebx, ebx |
260 | mov eax,dword [ost] ; example 166474 |
- | 261 | imul eax, 10 ; example 1664740 |
|
Line 347... | Line -... | ||
347 | xor ecx, ecx |
- | |
348 | xor edx, edx |
- | |
349 | - | ||
350 | 262 | xor edx,edx |
|
351 | mov eax,dword [freqbb]; example 16647 |
- | |
352 | mov ebx, 100 |
263 | div ebx ; get system clock (if multiplier detected) |
353 | div ebx |
264 | |
354 | mov dword [freqbb], eax ; example 166 |
265 | xor edx, edx ; example eax=16647 |
355 | 266 | mov ebx, 100 |
|
356 | xor eax, eax |
- | |
357 | xor ebx, ebx |
- | |
358 | xor ecx, ecx |
- | |
359 | xor edx, edx |
- | |
360 | - | ||
361 | mov eax,dword[multiplier] ; example 115 |
- | |
362 | mov ebx,10 |
- | |
363 | div ebx |
- | |
364 | mov dword[multb], eax ; example 11 |
- | |
365 | - | ||
366 | imul eax, 10 |
- | |
367 | mov dword[multa], eax ; example 110 |
267 | div ebx |
368 | - | ||
369 | xor eax, eax |
- | |
370 | xor ebx, ebx |
- | |
371 | xor ecx, ecx |
- | |
372 | xor edx, edx |
- | |
373 | - | ||
374 | mov eax, dword[multiplier] |
- | |
375 | sub eax, dword[multa] |
- | |
376 | mov dword[multa], eax ; example 5 |
- | |
377 | - | ||
378 | xor eax, eax |
- | |
379 | xor ebx, ebx |
- | |
Line 380... | Line 268... | ||
380 | xor ecx, ecx |
268 | mov dword [freqbb], eax ; example 166 |
Line 381... | Line 269... | ||
381 | xor edx, edx |
269 | mov dword [freqll], edx ; example 47 |
Line 382... | Line 270... | ||
382 | 270 | ||
383 | jmp output |
- | |
- | 271 | xor edx, edx |
|
384 | 272 | mov eax,dword[multiplier] ; example 115 |
|
385 | contin: |
273 | mov ebx,10 |
386 | 274 | div ebx |
|
387 | mov dword [freqbb], 0 |
- | |
388 | mov dword [freqll], 0 |
- | |
389 | 275 | mov dword[multb], eax ; example 11 |
|
390 | output: |
276 | mov dword[multa], edx ; example 5 |
391 | 277 | ||
392 | call draw_window ; Draw window |
- | |
393 | - | ||
394 | typedetect: |
278 | output: |
395 | 279 | ||
396 | cmp [t], 00b |
280 | call draw_window ; Draw window |
397 | jne t2d |
- | |
398 | Text 290,250,0x00000000,t1, t1len-t1 |
281 | |
399 | jmp PROCCORE |
282 | typedetect: |
- | 283 | mov edx, t1 |
|
- | 284 | cmp [t], 00b |
|
Line 400... | Line 285... | ||
400 | t2d: |
285 | jz @f |
401 | cmp [t], 01b |
286 | mov edx, t2 |
402 | jne t3d |
287 | cmp [t], 01b |
403 | Text 290,250,0x00000000,t2, t2len-t2 |
288 | jz @f |
Line 441... | Line 326... | ||
441 | ; jz .Rise |
326 | ; jz .Rise |
442 | ; cmp ecx, 'SiS ' |
327 | ; cmp ecx, 'SiS ' |
443 | ; jz .SiS |
328 | ; jz .SiS |
444 | ; cmp ecx, ' NSC' |
329 | ; cmp ecx, ' NSC' |
445 | ; jz .NSC |
330 | ; jz .NSC |
446 | jmp Other ; I don't know what to do with you... |
331 | ; jmp Other ; I don't know what to do with you... |
447 | Other: |
332 | Other: |
448 | Text 75,70,0x00000000,other, otherlen-other |
333 | Text 75,70,0x00000000,other, otherlen-other |
449 | jmp MMXtest |
334 | jmp MMXtest |
450 | ;------------------------- |
335 | ;------------------------- |
Line 451... | Line 336... | ||
451 | 336 | ||
Line 452... | Line 337... | ||
452 | AMD: |
337 | AMD: |
Line 453... | Line 338... | ||
453 | 338 | ||
Line 454... | Line 339... | ||
454 | Text 15, 190,0x00000000,cache, cachelen-cache |
339 | Text 15, 190,0x00000000,cache, cachelen-cache |
455 | 340 | ||
456 | Text 75,70,0x00000000,AMDn, AMDnlen-AMDn |
341 | Text 75,70,,AMDn, AMDnlen-AMDn |
457 | 342 | ||
Line 463... | Line 348... | ||
463 | ; Relax, man. AMD made PRETTY SIMPLE cache detection routine |
348 | ; Relax, man. AMD made PRETTY SIMPLE cache detection routine |
464 | ;CACHE1: |
349 | ;CACHE1: |
465 | mov eax, 80000005h |
350 | mov eax, 80000005h |
466 | cpuid |
351 | cpuid |
Line 467... | Line 352... | ||
467 | 352 | ||
468 | mov eax, ecx |
- | |
469 | ;shl eax, 24 |
- | |
470 | ;shr eax, 24 |
- | |
471 | - | ||
472 | and eax,000000FFh ; |
353 | movzx eax, cl |
Line 473... | Line 354... | ||
473 | mov [lineld], eax |
354 | mov [lineld], eax |
474 | 355 | ||
475 | mov eax, ecx |
356 | mov eax, ecx |
Line 482... | Line 363... | ||
482 | 363 | ||
483 | shr ecx, 24 |
364 | shr ecx, 24 |
Line 484... | Line 365... | ||
484 | mov [L1d], ecx |
365 | mov [L1d], ecx |
485 | - | ||
486 | - | ||
487 | mov eax, edx |
- | |
488 | ;shl eax, 24 |
- | |
489 | ;shr eax, 24 |
366 | |
Line 490... | Line 367... | ||
490 | 367 | ||
491 | and eax,000000FFh ; |
368 | movzx eax, dl |
492 | mov [lineli], eax |
369 | mov [lineli], eax |
Line 506... | Line 383... | ||
506 | 383 | ||
507 | ;CACHE2: |
384 | ;CACHE2: |
508 | mov eax, 80000006h |
385 | mov eax, 80000006h |
Line 509... | Line 386... | ||
509 | cpuid |
386 | cpuid |
510 | - | ||
511 | mov eax, ecx |
- | |
512 | ;and eax,000000FFh ; |
- | |
513 | shl eax, 24 |
387 | |
Line 514... | Line 388... | ||
514 | shr eax, 24 |
388 | movzx eax, cl |
515 | mov dword[linel2], eax |
- | |
516 | 389 | mov dword[linel2], eax |
|
517 | mov eax, ecx |
- | |
518 | shl eax, 16 |
- | |
519 | shr eax, 28 |
- | |
520 | - | ||
521 | cmp eax, 0010b |
390 | |
522 | je way2 |
- | |
523 | - | ||
524 | cmp eax, 0100b |
391 | push ecx |
525 | je way4 |
- | |
526 | - | ||
527 | cmp eax, 0110b |
392 | shr ecx, 12+1 |
528 | je way8 |
- | |
529 | - | ||
530 | cmp eax, 1000b |
- | |
531 | je way16 |
- | |
532 | - | ||
533 | jmp to_next |
- | |
534 | - | ||
535 | way2: |
- | |
536 | mov dword[wayl2], 2 |
- | |
537 | jmp to_next |
- | |
538 | - | ||
539 | way4: |
- | |
540 | mov dword[wayl2], 4 |
- | |
541 | jmp to_next |
- | |
542 | - | ||
543 | way8: |
- | |
544 | mov dword[wayl2], 8 |
- | |
545 | jmp to_next |
393 | and ecx, 0x7 |
546 | - | ||
547 | way16: |
- | |
548 | mov dword[wayl2], 16 |
- | |
549 | jmp to_next |
394 | mov eax, 1 |
Line 550... | Line 395... | ||
550 | 395 | shl eax, cl |
|
551 | 396 | mov dword [wayl2], eax |
|
Line 552... | Line 397... | ||
552 | to_next: |
397 | pop ecx |
Line 559... | Line 404... | ||
559 | cmp [f], $6 |
404 | cmp [f], $6 |
560 | jz .si |
405 | jz .si |
561 | cmp [f], $F |
406 | cmp [f], $F |
562 | jz fif |
407 | jz fif |
563 | .fiv: ; Family=5 |
408 | .fiv: ; Family=5 |
- | 409 | mov [micron], 50 |
|
- | 410 | mov edx, A50 |
|
564 | cmp [m],$0 |
411 | cmp [m], $0 |
565 | jz .A50 |
412 | jz @f |
- | 413 | mov [micron], 35 |
|
- | 414 | mov edx, A51 |
|
566 | cmp [m],$1 |
415 | cmp [m], $1 |
567 | jz .A51 |
416 | jz @f |
- | 417 | mov edx, A52 |
|
568 | cmp [m],$2 |
418 | cmp [m], $2 |
569 | jz .A52 |
419 | jz @f |
- | 420 | mov edx, A53 |
|
570 | cmp [m],$3 |
421 | cmp [m], $3 |
571 | jz .A53 |
422 | jz @f |
- | 423 | mov [micron], 30 |
|
- | 424 | mov edx, A56 |
|
572 | cmp [m],$6 |
425 | cmp [m], $6 |
573 | jz .A56 |
426 | jz @f |
- | 427 | mov [micron], 25 |
|
- | 428 | mov edx, A57 |
|
574 | cmp [m],$7 |
429 | cmp [m], $7 |
575 | jz .A57 |
430 | jz @f |
- | 431 | mov edx, A58 |
|
576 | cmp [m],$8 |
432 | cmp [m], $8 |
577 | jz .A58 |
433 | jz @f |
- | 434 | mov edx, A59 |
|
578 | cmp [m],$9 |
435 | cmp [m], $9 |
579 | jz .A59 |
- | |
580 | cmp [m],$D |
- | |
581 | jz .A5D |
436 | jz @f |
582 | .A50: |
- | |
583 | mov [micron], 50 ; 0.35? |
- | |
584 | Text 100,70,0x00000000,A50, A50len-A50 |
- | |
585 | jmp MMXtest |
- | |
586 | .A51: |
- | |
587 | mov [micron], 35 |
- | |
588 | Text 100,70,0x00000000,A51, A51len-A51 |
- | |
589 | jmp MMXtest |
- | |
590 | .A52: |
- | |
591 | mov [micron], 35 |
- | |
592 | Text 100,70,0x00000000,A52, A52len-A52 |
- | |
593 | jmp MMXtest |
- | |
594 | .A53: |
- | |
595 | mov [micron], 35 |
- | |
596 | Text 100,70,0x00000000,A53, A53len-A53 |
- | |
597 | jmp MMXtest |
- | |
598 | .A56: |
- | |
599 | mov [micron], 30 |
- | |
600 | Text 100,70,0x00000000,A56, A56len-A56 |
- | |
601 | jmp MMXtest |
- | |
602 | .A57: |
- | |
603 | mov [micron], 25 |
- | |
604 | Text 100,70,0x00000000,A57, A57len-A57 |
- | |
605 | jmp MMXtest |
- | |
606 | .A58: |
- | |
607 | mov [micron], 25 |
- | |
608 | Text 100,70,0x00000000,A58, A58len-A58 |
- | |
609 | jmp MMXtest |
- | |
610 | .A59: |
- | |
611 | mov [micron], 25 |
- | |
612 | Text 100,70,0x00000000,A59, A59len-A59 |
- | |
613 | jmp MMXtest |
- | |
614 | .A5D: |
- | |
615 | mov [micron], 18 |
437 | mov [micron], 18 |
616 | Text 100,70,0x00000000,A5D, A5Dlen-A5D |
438 | mov edx, A5D |
617 | jmp MMXtest |
439 | @@: |
618 | .si: ; Family=6 |
440 | jmp @f |
Line -... | Line 441... | ||
- | 441 | ||
- | 442 | .si: ; Family=6 |
|
- | 443 | mov [micron], 25 |
|
619 | 444 | mov edx, At1 |
|
620 | cmp [m],$1 |
445 | cmp [m], $1 |
- | 446 | jz @f |
|
- | 447 | mov [micron], 18 |
|
621 | jz A1 |
448 | mov edx, At2 |
622 | cmp [m],$2 |
449 | cmp [m], $2 |
- | 450 | jz @f |
|
623 | jz A2 |
451 | mov edx, At3 |
624 | cmp [m],$3 |
452 | cmp [m], $3 |
- | 453 | jz @f |
|
625 | jz A3 |
454 | mov edx, At4 |
626 | cmp [m],$4 |
455 | cmp [m], $4 |
627 | jz A4 |
456 | jz @f |
628 | cmp [m],$6 |
457 | cmp [m], $6 |
- | 458 | jz A6 |
|
- | 459 | mov [micron], 13 |
|
629 | jz A6 |
460 | mov edx, At7 |
630 | cmp [m],$7 |
461 | cmp [m], $7 |
631 | jz A7 |
462 | jz @f |
632 | cmp [m],$8 |
463 | cmp [m], $8 |
633 | jz A8 |
464 | jz A8 |
634 | cmp [m],$A |
- | |
635 | jz AA |
465 | jmp AA |
636 | A1: |
- | |
637 | mov [micron], 25 |
- | |
638 | Text 100,70,0x00000000,At1, At1len-At1 |
- | |
639 | jmp MMXtest |
- | |
640 | A2: |
- | |
641 | mov [micron], 18 |
- | |
642 | Text 100,70,0x00000000,At2, At2len-At2 |
- | |
643 | jmp MMXtest |
- | |
644 | A3: |
- | |
645 | mov [micron], 18 |
466 | @@: |
646 | Text 100,70,0x00000000,At3, At3len-At3 |
- | |
647 | jmp MMXtest |
- | |
648 | A4: |
- | |
649 | mov [micron], 18 |
- | |
650 | Text 100,70,0x00000000,At4, At4len-At4 |
467 | Text 100,70,0x80000000 |
651 | jmp MMXtest |
468 | jmp MMXtest |
652 | A6: |
- | |
653 | - | ||
654 | mov [micron], 18 |
- | |
655 | Text 100,70,0x00000000,At6, At6len-At6 |
- | |
656 | 469 | A6: |
|
Line 657... | Line 470... | ||
657 | mov [FRS], 266 ;!!!!!! |
470 | mov [FRS], 266 ;!!!!!! |
Line 658... | Line 471... | ||
658 | 471 | ||
Line 659... | Line 472... | ||
659 | Number 315,90,0,3,dword [FRS],0x000000; MHz |
472 | Number 315,90,0,3,dword [FRS],0x000000; MHz |
Line 660... | Line 473... | ||
660 | 473 | ||
661 | call newrating; !!!! |
- | |
662 | - | ||
663 | Text 245,70,0x00000000,pr, prlen-pr |
474 | call newrating; !!!! |
664 | - | ||
665 | Number 310,70,0,4,dword [rating],0x000000 |
475 | |
Line 666... | Line 476... | ||
666 | jmp MMXtest |
476 | Text 245,70,0x00000000,pr, prlen-pr |
Line 667... | Line -... | ||
667 | A7: |
- | |
668 | mov [micron], 13 |
477 | |
Line 669... | Line 478... | ||
669 | Text 100,70,0x00000000,At7, At7len-At7 |
478 | Number 310,70,0,4,dword [rating],0x000000 |
Line 670... | Line -... | ||
670 | jmp MMXtest |
- | |
671 | 479 | mov edx, At6 |
|
672 | A8: |
480 | jmp @b |
673 | - | ||
674 | mov [micron], 13 |
- | |
Line 675... | Line 481... | ||
675 | mov [FRS], 266 ;!!!!!! |
481 | |
Line 676... | Line 482... | ||
676 | 482 | A8: |
|
677 | Number 315,90,0,3,dword [FRS],0x000000; MHz |
483 | |
- | 484 | mov [FRS], 266 ;!!!!!! |
|
678 | 485 | ||
Line 679... | Line 486... | ||
679 | 486 | Number 315,90,0,3,dword [FRS],0x000000; MHz |
|
680 | cmp [L2], 256 |
487 | |
681 | jl .App ; Applebred |
488 | cmp [L2], 256 |
Line 682... | Line 489... | ||
682 | Text 100,70,0x00000000,At8, At8len-At8 |
489 | jl .App ; Applebred |
Line 683... | Line -... | ||
683 | - | ||
684 | - | ||
685 | call newrating;!!!! |
490 | |
686 | 491 | call newrating;!!!! |
|
Line 687... | Line 492... | ||
687 | Text 245,70,0x00000000,pr, prlen-pr |
492 | |
Line -... | Line 493... | ||
- | 493 | Text 245,70,0x00000000,pr, prlen-pr |
|
688 | Number 310,70,0,4,dword [rating],0x000000 |
494 | Number 310,70,0,4,dword [rating],0x000000 |
689 | jmp MMXtest |
495 | mov edx, At8 |
- | 496 | jmp @b |
|
- | 497 | ||
- | 498 | .App: |
|
Line 690... | Line 499... | ||
690 | 499 | mov edx, At8a |
|
691 | .App: |
- | |
Line 692... | Line 500... | ||
692 | Text 100,70,0x00000000,At8a, At8alen-At8a |
500 | jmp @b |
- | 501 | ||
- | 502 | AA: |
|
Line 693... | Line -... | ||
693 | jmp MMXtest |
- | |
694 | - | ||
695 | AA: |
- | |
696 | - | ||
697 | mov [micron], 13 |
- | |
698 | - | ||
699 | mov [FRS], 333; !!!! |
503 | |
Line 700... | Line 504... | ||
700 | Text 245,70,0x00000000,pr, prlen-pr |
504 | mov [FRS], 333; !!!! |
701 | 505 | Text 245,70,0x00000000,pr, prlen-pr |
|
Line 1160... | Line 964... | ||
1160 | mov [micron], 25 ;35? |
964 | mov [micron], 25 ;35? |
1161 | mov [L1i], 32 |
965 | mov [L1i], 32 |
1162 | mov [L1d], 32 |
966 | mov [L1d], 32 |
1163 | mov [L2], 512 |
967 | mov [L2], 512 |
1164 | Text 75,70,0x00000000,Centaurn, Centaurnlen-Centaurn |
968 | Text 75,70,0x00000000,Centaurn, Centaurnlen-Centaurn |
- | 969 | mov edx,C65 |
|
1165 | Text 100,70,0x00000000,C65, C65len-C65 |
970 | mov esi,C65len-C65 |
1166 | jmp MMXtest |
971 | jmp OutProcName |
1167 | ;--------------------- |
972 | ;--------------------- |
1168 | Centaur: |
973 | Centaur: |
Line 1169... | Line 974... | ||
1169 | 974 | ||
Line 1182... | Line 987... | ||
1182 | ; cache detection routine |
987 | ; cache detection routine |
1183 | ;CACHE1: |
988 | ;CACHE1: |
1184 | mov eax, 80000005h |
989 | mov eax, 80000005h |
1185 | cpuid |
990 | cpuid |
Line 1186... | Line 991... | ||
1186 | 991 | ||
1187 | mov eax, ecx |
- | |
1188 | - | ||
1189 | and eax,000000FFh ; |
992 | movzx eax, cl |
Line 1190... | Line 993... | ||
1190 | mov [lineld], eax |
993 | mov [lineld], eax |
1191 | - | ||
1192 | mov eax, ecx |
- | |
1193 | 994 | ||
- | 995 | mov eax, ecx |
|
1194 | and eax,00FF0000h |
996 | shr eax, 16 |
Line 1195... | Line 997... | ||
1195 | shr eax, 16 |
997 | and eax,000000FFh |
1196 | mov [wayld], eax |
998 | mov [wayld], eax |
Line 1197... | Line 999... | ||
1197 | 999 | ||
1198 | shr ecx, 24 |
- | |
1199 | mov [L1d], ecx |
- | |
1200 | 1000 | shr ecx, 24 |
|
Line 1201... | Line 1001... | ||
1201 | mov eax, edx |
1001 | mov [L1d], ecx |
Line 1202... | Line -... | ||
1202 | - | ||
1203 | and eax,000000FFh ; |
1002 | |
- | 1003 | movzx eax, dl |
|
1204 | mov [lineli], eax |
1004 | mov [lineli], eax |
Line 1205... | Line 1005... | ||
1205 | 1005 | ||
1206 | mov eax, edx |
1006 | mov eax, edx |
Line 1222... | Line 1022... | ||
1222 | jmp vl2old ; if not then old identification |
1022 | jmp vl2old ; if not then old identification |
1223 | vn: |
1023 | vn: |
1224 | cmp [m],$9 |
1024 | cmp [m],$9 |
1225 | jl vl2old |
1025 | jl vl2old |
1226 | ; else new |
1026 | ; else new |
1227 | mov eax, ecx |
1027 | movzx eax, cl |
1228 | shl eax, 24 |
- | |
1229 | shr eax, 24 |
- | |
1230 | mov dword[linel2], eax |
1028 | mov dword[linel2], eax |
Line 1231... | Line 1029... | ||
1231 | 1029 | ||
1232 | mov eax, ecx |
1030 | mov eax, ecx |
1233 | shl eax, 16 |
1031 | shl eax, 16 |
Line 1239... | Line 1037... | ||
1239 | mov [L2],ecx |
1037 | mov [L2],ecx |
Line 1240... | Line 1038... | ||
1240 | 1038 | ||
1241 | 1039 | ||
1242 | - | ||
1243 | vl2old: |
- | |
1244 | mov eax, ecx |
1040 | |
Line 1245... | Line 1041... | ||
1245 | shl eax, 24 |
1041 | vl2old: |
1246 | shr eax, 24 |
1042 | movzx eax, cl |
1247 | mov dword[linel2], eax |
1043 | mov dword[linel2], eax |
Line 1276... | Line 1072... | ||
1276 | jz .V58 |
1072 | jz .V58 |
1277 | cmp [m],$9 |
1073 | cmp [m],$9 |
1278 | jz .V59 |
1074 | jz .V59 |
1279 | .V54: |
1075 | .V54: |
1280 | mov [micron], 35 |
1076 | mov [micron], 35 |
- | 1077 | mov edx,V54 |
|
1281 | Text 100,70,0x00000000,V54, V54len-V54 |
1078 | mov esi,V54len-V54 |
1282 | jmp MMXtest |
1079 | jmp OutProcName |
1283 | .V58: |
1080 | .V58: |
1284 | mov [micron], 25 |
1081 | mov [micron], 25 |
- | 1082 | mov edx,V58 |
|
1285 | Text 100,70,0x00000000,V58, V58len-V58 |
1083 | mov esi,V58len-V58 |
1286 | jmp MMXtest |
1084 | jmp OutProcName |
1287 | .V59: |
1085 | .V59: |
1288 | mov [micron], 25 |
1086 | mov [micron], 25 |
- | 1087 | mov edx,V59 |
|
1289 | Text 100,70,0x00000000,V59, V59len-V59 |
1088 | mov esi,V59len-V59 |
1290 | jmp MMXtest |
1089 | jmp OutProcName |
Line 1291... | Line 1090... | ||
1291 | 1090 | ||
Line 1292... | Line 1091... | ||
1292 | sixC: ;Family=6 |
1091 | sixC: ;Family=6 |
1293 | 1092 | ||
Line 1308... | Line 1107... | ||
1308 | jz .V69 |
1107 | jz .V69 |
1309 | cmp [m],$A |
1108 | cmp [m],$A |
1310 | jz .V6A |
1109 | jz .V6A |
1311 | .V66: |
1110 | .V66: |
1312 | mov [micron], 18 ; 25? |
1111 | mov [micron], 18 ; 25? |
- | 1112 | mov edx,V66 |
|
1313 | Text 100,70,0x00000000,V66, V66len-V66 |
1113 | mov esi,V66len-V66 |
1314 | jmp MMXtest |
1114 | jmp OutProcName |
1315 | .V67: |
1115 | .V67: |
1316 | mov [micron], 15 |
1116 | mov [micron], 15 |
- | 1117 | mov edx,V67 |
|
1317 | Text 100,70,0x00000000,V67, V67len-V67 |
1118 | mov esi,V67len-V67 |
1318 | jmp MMXtest |
1119 | jmp OutProcName |
1319 | .V68: |
1120 | .V68: |
1320 | mov [micron], 13 |
1121 | mov [micron], 13 |
- | 1122 | mov edx,V68 |
|
1321 | Text 100,70,0x00000000,V68, V68len-V68 |
1123 | mov esi,V68len-V68 |
1322 | jmp MMXtest |
1124 | jmp OutProcName |
1323 | .V69: |
1125 | .V69: |
1324 | mov [micron], 13 |
1126 | mov [micron], 13 |
- | 1127 | mov edx,V69 |
|
1325 | Text 100,70,0x00000000,V69, V69len-V69 |
1128 | mov esi,V69len-V69 |
1326 | jmp MMXtest |
1129 | jmp OutProcName |
1327 | .V6A: |
1130 | .V6A: |
1328 | mov [micron], 9 |
1131 | mov [micron], 9 |
- | 1132 | mov edx,VA |
|
1329 | Text 100,70,0x00000000,VA, VAlen-VA |
1133 | mov esi,VAlen-VA |
1330 | jmp MMXtest |
1134 | jmp OutProcName |
1331 | ;----------- |
1135 | ;----------- |
1332 | Transmeta: |
1136 | Transmeta: |
Line 1333... | Line 1137... | ||
1333 | 1137 | ||
Line 1334... | Line 1138... | ||
1334 | Text 15, 190,0x00000000,cache, cachelen-cache |
1138 | Text 15, 190,0x00000000,cache, cachelen-cache |
Line 1335... | Line 1139... | ||
1335 | 1139 | ||
1336 | Text 75,70,0x00000000,Tranmsmetan, Tranmsmetanlen-Tranmsmetan |
1140 | Text 75,70,,Tranmsmetan, Tranmsmetanlen-Tranmsmetan |
1337 | 1141 | ||
1338 | mov esi, transmeta |
1142 | mov esi, transmeta |
Line 1344... | Line 1148... | ||
1344 | ; cache detection routine - it is the same as for AMD (almost) |
1148 | ; cache detection routine - it is the same as for AMD (almost) |
1345 | ;CACHE1: |
1149 | ;CACHE1: |
1346 | mov eax, 80000005h |
1150 | mov eax, 80000005h |
1347 | cpuid |
1151 | cpuid |
Line 1348... | Line 1152... | ||
1348 | 1152 | ||
1349 | mov eax, ecx |
- | |
1350 | - | ||
1351 | and eax,000000FFh ; |
1153 | movzx eax, cl |
Line 1352... | Line 1154... | ||
1352 | mov [lineld], eax |
1154 | mov [lineld], eax |
Line 1353... | Line -... | ||
1353 | - | ||
1354 | mov eax, ecx |
1155 | |
- | 1156 | mov eax, ecx |
|
1355 | 1157 | ||
Line 1356... | Line 1158... | ||
1356 | and eax,00FF0000h |
1158 | shr eax,16 |
1357 | shr eax, 16 |
1159 | and eax,000000FFh |
Line 1358... | Line 1160... | ||
1358 | mov [wayld], eax |
1160 | mov [wayld], eax |
1359 | - | ||
1360 | shr ecx, 24 |
- | |
1361 | mov [L1d], ecx |
1161 | |
Line 1362... | Line 1162... | ||
1362 | 1162 | shr ecx, 24 |
|
Line 1363... | Line -... | ||
1363 | mov eax, edx |
- | |
1364 | 1163 | mov [L1d], ecx |
|
- | 1164 | ||
1365 | and eax,000000FFh ; |
1165 | movzx eax, dl |
Line 1366... | Line 1166... | ||
1366 | mov [lineli], eax |
1166 | mov [lineli], eax |
1367 | 1167 | ||
Line 1368... | Line 1168... | ||
1368 | mov eax, edx |
1168 | mov eax, edx |
1369 | 1169 | ||
1370 | and eax,00FF0000h |
1170 | shr eax, 16 |
Line 1371... | Line 1171... | ||
1371 | shr eax, 16 |
1171 | and eax,000000FFh |
1372 | mov [wayli], eax |
- | |
1373 | - | ||
1374 | shr edx, 24 |
1172 | mov [wayli], eax |
Line 1375... | Line 1173... | ||
1375 | mov [L1i], edx |
1173 | |
1376 | 1174 | shr edx, 24 |
|
1377 | 1175 | mov [L1i], edx |
|
Line 1398... | Line 1196... | ||
1398 | jz .fivt |
1196 | jz .fivt |
1399 | cmp [f], $F |
1197 | cmp [f], $F |
1400 | jz .fift |
1198 | jz .fift |
1401 | .fivt: ; Family=5 |
1199 | .fivt: ; Family=5 |
Line 1402... | Line 1200... | ||
1402 | 1200 | ||
1403 | mov [micron], 13 ; ? |
1201 | mov edx,T5 |
1404 | Text 140,70,0x00000000,T5, T5len-T5 |
1202 | mov esi,T5len-T5 |
Line 1405... | Line 1203... | ||
1405 | jmp MMXtest |
1203 | jmp @f |
- | 1204 | ||
- | 1205 | .fift: ; Family=F |
|
- | 1206 | mov edx,TF |
|
1406 | 1207 | mov esi,TFlen-TF |
|
1407 | .fift: ; Family=F |
1208 | @@: |
1408 | mov [micron], 13 ; |
1209 | mov [micron], 13 ; |
Line -... | Line 1210... | ||
- | 1210 | Text 140,70,0 |
|
- | 1211 | jmp MMXtest |
|
- | 1212 | ||
1409 | Text 140,70,0x00000000,TF, TFlen-TF |
1213 | OutProcName: |
1410 | jmp MMXtest |
1214 | Text 100,70,0 |
Line 1411... | Line 1215... | ||
1411 | 1215 | ||
Line 1420... | Line 1224... | ||
1420 | xor eax,eax |
1224 | xor eax,eax |
1421 | inc eax |
1225 | inc eax |
1422 | cpuid |
1226 | cpuid |
1423 | HTTtest: |
1227 | HTTtest: |
1424 | test edx, $10000000; ;Test bit 28 |
1228 | test edx, $10000000; ;Test bit 28 |
1425 | jnz .EL ;HTT technology is supported |
- | |
1426 | jz .ELN |
1229 | jz .ELN |
Line 1427... | Line 1230... | ||
1427 | 1230 | ||
1428 | .EL: |
1231 | .EL: ;HTT technology is supported |
1429 | and ebx,00FF0000h ; numbers of logical processors |
- | |
1430 | shr ebx,16 ; shift it to the correct position |
1232 | and ebx,00FF0000h ; numbers of logical processors |
1431 | cmp ebx, 1 |
1233 | cmp ebx, 1 shl 16 |
1432 | ; mov [number_of_log_cpus], ebx |
1234 | ; mov [number_of_log_cpus], ebx |
Line 1433... | Line 1235... | ||
1433 | je .ELN ; HHT not enabled (Celeron) |
1235 | je .ELN ; HHT not enabled (Celeron) |
1434 | 1236 | ||
1435 | mov dword [HTTn+9], $736579 |
1237 | mov dword [HTTn+9], $736579 |
1436 | mov dword [HTT+ 6], $736579 |
1238 | mov dword [HTT+ 6], $736579 |
Line 1437... | Line 1239... | ||
1437 | jmp TEXTOUT |
1239 | jmp TEXTOUT |
1438 | .ELN: |
1240 | .ELN: |
1439 | - | ||
Line 1440... | Line 1241... | ||
1440 | mov dword [HTTn+ 9], $6F6E |
1241 | |
Line 1441... | Line 1242... | ||
1441 | mov dword [HTT+ 6], $6F6E |
1242 | mov dword [HTTn+ 9], $6F6E |
1442 | jmp TEXTOUT |
1243 | mov dword [HTT+ 6], $6F6E |
1443 | 1244 | ||
1444 | TEXTOUT: |
1245 | TEXTOUT: |
1445 | 1246 | ||
1446 | Text 15,110,0x00000000,fam, famlen-fam |
1247 | Text 15,110,0x00000000,fam, famlen-fam |
1447 | Text 15,130,0x00000000,mode, modelen-mode |
1248 | Text 15,130,,mode, modelen-mode |
1448 | Text 15,150,0x00000000,step, steplen-step |
1249 | Text 15,150,,step, steplen-step |
1449 | ;--------L1 L2 |
1250 | ;--------L1 L2 |
1450 | Number 75,170,0,3,dword [L1d],0x000000; |
1251 | Number 75,170,0,3,dword [L1d],0x000000; |
Line 1451... | Line 1252... | ||
1451 | Number 75,190,0,3,dword [L1i],0x000000; |
1252 | Number 75,190,,,dword [L1i] |
1452 | Number 41,210,0,4,dword[L2],0x000000; |
1253 | Number 41,210,0,4,dword[L2] |
Line 1453... | Line 1254... | ||
1453 | Number 35,230,0,5,dword[L3],0x000000; |
1254 | Number 35,230,0,5,dword[L3] |
Line 1454... | Line 1255... | ||
1454 | ;-----------Features |
1255 | ;-----------Features |
1455 | Number 258,50,0,2,dword [micron],0x000000 ; micron |
1256 | Number 258,50,0,2,dword [micron] ; micron |
1456 | 1257 | ||
Line 1457... | Line 1258... | ||
1457 | Text 275,290,0x00000000,HTT, HTTlen-HTT |
1258 | Text 275,290,0x00000000,HTT, HTTlen-HTT |
1458 | Text 275,310,0x00000000,sse3, sse3len-sse3 |
1259 | Text 275,310,,sse3, sse3len-sse3 |
Line 1459... | Line 1260... | ||
1459 | 1260 | ||
1460 | Text 15,70,0x00000000,name, namelen-name |
1261 | Text 15,70,,name, namelen-name |
Line 1461... | Line 1262... | ||
1461 | 1262 | ||
1462 | Text 15,290,0x00000000,MMXs, MMXslen-MMXs |
1263 | Text 15,290,,MMXs, MMXslen-MMXs |
Line 1463... | Line 1264... | ||
1463 | Text 15,310,0x00000000,SSE, SSElen-SSE |
1264 | Text 15,310,,SSE, SSElen-SSE |
1464 | Text 95,310,0x00000000,SSE2, SSE2len-SSE2 |
1265 | Text 95,310,,SSE2, SSE2len-SSE2 |
Line 1465... | Line -... | ||
1465 | - | ||
1466 | Number 140,170,0,2,dword [wayld],0x000000 |
1266 | |
1467 | Number 218,170,0,2,dword [lineld],0x000000 |
1267 | Number 140,170,0,2,dword [wayld],0x000000 |
Line -... | Line 1268... | ||
- | 1268 | Number 218,170,,,dword [lineld] |
|
1468 | 1269 | ||
1469 | Number 140,190,0,2,dword [wayli],0x000000 |
- | |
1470 | Number 218,190,0,2,dword [lineli],0x000000 |
1270 | Number 140,190,,,dword [wayli] |
1471 | - | ||
1472 | Number 140,210,0,2,dword [wayl2],0x000000 |
- | |
1473 | Number 218,210,0,2,dword [linel2],0x000000 |
- | |
1474 | - | ||
1475 | Number 140,230,0,2,dword [wayl3],0x000000 |
- | |
1476 | Number 218,230,0,2,dword [linel3],0x000000 |
- | |
1477 | - | ||
1478 | jmp TEST3DNOW |
- | |
1479 | ;------------------- |
- | |
1480 | TEST3DNOW: |
- | |
1481 | - | ||
1482 | cmp [smallvendor], 'ntel' |
- | |
1483 | je .NOEXTENDED |
- | |
1484 | jne .t |
- | |
1485 | - | ||
1486 | .t: |
- | |
1487 | - | ||
1488 | mov eax, $80000001 ;// Setup extended function 8000_0001h |
- | |
1489 | cpuid |
- | |
1490 | - | ||
1491 | test edx, $80000000 ;// Test bit 31 |
- | |
1492 | jnz .XIT |
- | |
Line 1493... | Line 1271... | ||
1493 | 1271 | Number 218,190,,,dword [lineli] |
|
1494 | .NOEXTENDED: ;// 3DNow! technology is supported |
1272 | |
Line -... | Line 1273... | ||
- | 1273 | Number 140,210,,,dword [wayl2] |
|
1495 | mov dword [now+ 9], $6F6E |
1274 | Number 218,210,,,dword [linel2] |
- | 1275 | ||
1496 | jmp TEST3DNOWP |
1276 | Number 140,230,,,dword [wayl3] |
1497 | .XIT: |
1277 | Number 218,230,,,dword [linel3] |
1498 | mov dword [now+ 9], $736579 |
- | |
1499 | jmp TEST3DNOWP |
1278 | |
1500 | 1279 | ;------------------- |
|
1501 | TEST3DNOWP: |
- | |
1502 | 1280 | TEST3DNOW: |
|
1503 | cmp [smallvendor], 'ntel' |
- | |
Line 1504... | Line 1281... | ||
1504 | je .NOEXTENDEDP |
1281 | |
Line 1505... | Line 1282... | ||
1505 | 1282 | xor edx, edx |
|
1506 | .tp: |
1283 | cmp [smallvendor], 'ntel' |
Line 1507... | Line 1284... | ||
1507 | 1284 | je @f |
|
1508 | mov eax, $80000001 ;// Setup extended function 8000_0001h |
1285 | |
Line 1509... | Line 1286... | ||
1509 | cpuid |
1286 | mov eax, $80000001 ;// Setup extended function 8000_0001h |
1510 | 1287 | cpuid |
|
1511 | test edx, $40000000 ;// Test bit 30 |
1288 | |
1512 | jnz .XITP ;// 3DNow! technology is supported |
1289 | @@: |
Line 1546... | Line 1323... | ||
1546 | mov dword [MMXPi+ 8], $6F6E |
1323 | mov dword [MMXPi+ 8], $6F6E |
1547 | jmp text3d |
1324 | jmp text3d |
1548 | XITM: |
1325 | XITM: |
1549 | mov dword [mmxp+ 7], $736579 |
1326 | mov dword [mmxp+ 7], $736579 |
1550 | mov dword [MMXPi+ 8], $736579 |
1327 | mov dword [MMXPi+ 8], $736579 |
1551 | jmp text3d |
- | |
Line 1552... | Line 1328... | ||
1552 | 1328 | ||
Line 1553... | Line 1329... | ||
1553 | text3d: |
1329 | text3d: |
1554 | 1330 | ||
1555 | Text 175,290,0x00000000,now, nowlen-now |
1331 | Text 175,290,0x00000000,now, nowlen-now |
Line 1556... | Line 1332... | ||
1556 | Text 175,310,0x00000000,nowp, nowplen-nowp |
1332 | Text 175,310,,nowp, nowplen-nowp |
Line 1557... | Line 1333... | ||
1557 | Text 95,290,0x00000000,mmxp, mmxplen-mmxp |
1333 | Text 95,290,,mmxp, mmxplen-mmxp |
1558 | 1334 | ||
1559 | jmp still |
1335 | jmp still |
1560 | - | ||
Line 1561... | Line 1336... | ||
1561 | ;-------------------------- |
1336 | |
1562 | NO_CPUID: |
1337 | ;-------------------------- |
1563 | Text 15,50,0x00000000,oblom, oblomlen-oblom |
1338 | NO_CPUID: |
1564 | jmp FREEZE |
1339 | Text 15,50,0x00000000,oblom, oblomlen-oblom |
Line 1590... | Line 1365... | ||
1590 | shr eax, 10 |
1365 | shr eax, 10 |
Line 1591... | Line 1366... | ||
1591 | 1366 | ||
Line 1592... | Line 1367... | ||
1592 | mov [ram_size_t], eax |
1367 | mov [ram_size_t], eax |
- | 1368 | ||
Line 1593... | Line 1369... | ||
1593 | 1369 | Text 115,340,0x00000000,ram, ramlen-ram |
|
Line 1594... | Line 1370... | ||
1594 | Text 115,340,0x00000000,ram, ramlen-ram |
1370 | Text 300,340,,mb, mblen-mb |
1595 | - | ||
Line 1596... | Line 1371... | ||
1596 | Number 200,340,0,4,dword [ram_size_a],0x000000 |
1371 | |
Line 1597... | Line 1372... | ||
1597 | 1372 | Number 200,340,0,4,dword [ram_size_a],0x000000 |
|
1598 | Number 270,340,0,4,dword [ram_size_t],0x000000 |
1373 | |
Line 1610... | Line 1385... | ||
1610 | je key ; key |
1385 | je key ; key |
1611 | cmp eax,3 ; |
1386 | cmp eax,3 ; |
1612 | je button ; button |
1387 | je button ; button |
1613 | jmp still ; |
1388 | jmp still ; |
1614 | key: ; |
1389 | key: ; |
1615 | mov eax,2 ; |
- | |
1616 | mcall ; |
1390 | mcall ; |
1617 | jmp still ; |
1391 | jmp still ; |
1618 | button: ; |
1392 | button: ; |
1619 | mov eax,17 ; |
1393 | mov eax,17 ; |
1620 | mcall ; |
1394 | mcall ; |
Line 1623... | Line 1397... | ||
1623 | 1397 | ||
1624 | cmp ah,2 ; = 2 ? |
1398 | cmp ah,2 ; = 2 ? |
1625 | je thread_start ; |
1399 | je thread_start ; |
1626 | ; |
1400 | ; |
1627 | cmp ah,3 ; = 3 ? |
- | |
1628 | je vybor ; vybor |
- | |
1629 | 1401 | cmp ah,3 ; = 3 ? |
|
Line 1630... | Line -... | ||
1630 | jne noclose |
- | |
1631 | 1402 | jne still |
|
Line 1632... | Line 1403... | ||
1632 | jmp event_wait |
1403 | |
Line 1633... | Line 1404... | ||
1633 | vybor: |
1404 | vybor: |
Line 1634... | Line 1405... | ||
1634 | 1405 | ||
1635 | Number 310,70,0,4,dword [rating],0xFFFFFF ; |
1406 | Number 310,70,0,4,dword [rating],0xFFFFFF ; |
1636 | 1407 | ||
1637 | Number 315,90,0,3,dword [FRS],0xFFFFFF; MHz |
1408 | Number 315,90,0,3,dword [FRS]; MHz |
1638 | 1409 | ||
1639 | cmp [FRS], 266 |
1410 | cmp [FRS], 266 |
Line 1640... | Line 1411... | ||
1640 | jz .s1 |
1411 | jz .s1 |
1641 | cmp [FRS], 333 |
1412 | cmp [FRS], 333 |
- | 1413 | jz .s2 |
|
1642 | jz .s2 |
1414 | cmp [FRS], 400 |
1643 | cmp [FRS], 400 |
1415 | jz .s3 |
Line 1644... | Line 1416... | ||
1644 | jz .s3 |
1416 | |
1645 | 1417 | .s1: |
|
Line 1646... | Line 1418... | ||
1646 | .s1: |
1418 | mov [FRS], 333 |
1647 | mov [FRS], 333 |
1419 | .rating: |
1648 | call newrating |
- | |
1649 | Number 310,70,0,4,dword [rating],0x000000 |
- | |
1650 | - | ||
1651 | Number 315,90,0,3,dword [FRS],0x000000; MHz |
- | |
1652 | jmp still |
- | |
1653 | - | ||
1654 | .s2: |
1420 | call newrating |
Line 1655... | Line 1421... | ||
1655 | mov [FRS], 400 |
1421 | Number 310,70,0,4,dword [rating],0x000000 |
1656 | 1422 | ||
1657 | call newrating |
- | |
1658 | - | ||
1659 | Number 310,70,0,4,dword [rating],0x000000 |
- | |
1660 | - | ||
1661 | Number 315,90,0,3,dword [FRS],0x000000; MHz |
- | |
1662 | jmp still |
- | |
1663 | 1423 | Number 315,90,0,3,dword [FRS]; MHz |
|
1664 | .s3: |
- | |
1665 | mov [FRS], 266 |
- | |
1666 | call newrating |
- | |
Line 1667... | Line 1424... | ||
1667 | 1424 | jmp still |
|
1668 | Number 310,70,0,4,dword [rating],0x000000 |
1425 | |
1669 | 1426 | .s2: |
|
Line 1684... | Line 1441... | ||
1684 | cmp [num_win2],0 |
1441 | cmp [num_win2],0 |
Line 1685... | Line 1442... | ||
1685 | 1442 | ||
Line 1686... | Line 1443... | ||
1686 | jne still |
1443 | jne still |
1687 | - | ||
1688 | ;================================================RSA test |
- | |
1689 | call init_test ; start RSA code |
- | |
Line 1690... | Line -... | ||
1690 | call module_test |
- | |
1691 | jmp somewhere |
1444 | |
- | 1445 | ;================================================RSA test |
|
1692 | 1446 | ||
1693 | module_test: |
1447 | ;test rsa coding speed |
1694 | ;test rsa coding speed |
1448 | call init_test |
1695 | ;length of module - 256 bit |
1449 | ;length of module - 256 bit |
1696 | mov eax,26 |
1450 | mov eax,26 |
1697 | mov ebx,9 |
1451 | mov ebx,9 |
1698 | mcall |
1452 | mcall |
1699 | add eax,100 ;test lasts 1 second. |
- | |
1700 | push eax |
1453 | add eax,100 ;test lasts 1 second. |
1701 | .loop: |
1454 | push eax |
1702 | mov ecx,4 ;do 4 iterations |
1455 | .loop: |
1703 | push ecx ;this reduces number of calls mcall. |
1456 | push 4 ;do 4 iterations - this reduces number of calls mcall. |
1704 | .loop1: |
1457 | .loop1: |
1705 | call rsa_test ;this procedure change all registers |
1458 | call rsa_test ;this procedure change all registers |
Line 1711... | Line 1464... | ||
1711 | mcall |
1464 | mcall |
1712 | cmp eax,dword [esp] ;Is time changed? |
1465 | cmp eax,dword [esp] ;Is time changed? |
1713 | jl .loop |
1466 | jl .loop |
1714 | pop eax |
1467 | pop eax |
1715 | shr dword [iter],4 ;[iter] - speed in Kb/sec. (every iteration codes 64 bytes) |
1468 | shr dword [iter],4 ;[iter] - speed in Kb/sec. (every iteration codes 64 bytes) |
1716 | ret |
- | |
1717 | - | ||
1718 | somewhere: |
- | |
1719 | ;====================================================================== |
- | |
1720 | CreateTread window_2,thread2_esp |
1469 | CreateTread window_2,thread2_esp |
1721 | - | ||
1722 | jmp still |
1470 | jmp still |
Line 1723... | Line 1471... | ||
1723 | 1471 | ||
1724 | window_2: |
1472 | window_2: |
1725 | mov [num_win2],1 |
1473 | mov [num_win2],1 |
Line 1738... | Line 1486... | ||
1738 | je button_2 ; button_2 |
1486 | je button_2 ; button_2 |
Line 1739... | Line 1487... | ||
1739 | 1487 | ||
Line 1740... | Line 1488... | ||
1740 | jmp still_2 ; |
1488 | jmp still_2 ; |
1741 | - | ||
1742 | key_2: ; |
1489 | |
1743 | mov eax,2 ; 2 |
1490 | key_2: ; |
Line 1744... | Line 1491... | ||
1744 | mcall ; |
1491 | mcall ; |
1745 | jmp still_2 ; |
1492 | jmp still_2 ; |
1746 | 1493 | ||
Line 1747... | Line 1494... | ||
1747 | button_2: ; |
1494 | button_2: ; |
1748 | mov eax,17 ; 17 |
1495 | mov eax,17 ; 17 |
Line 1749... | Line 1496... | ||
1749 | mcall ; |
1496 | mcall ; |
Line 1750... | Line 1497... | ||
1750 | 1497 | ||
1751 | cmp ah,1 ; = 1 ? |
1498 | cmp ah,1 ; = 1 ? |
Line 1752... | Line -... | ||
1752 | jne noclose_2 ; noclose |
- | |
1753 | - | ||
1754 | mov [num_win2],0 ; |
- | |
1755 | - | ||
1756 | or eax,-1 ; |
1499 | jne still_2 ; noclose |
1757 | mcall |
1500 | |
1758 | 1501 | mov [num_win2],0 ; |
|
1759 | noclose_2: |
1502 | |
Line 1760... | Line 1503... | ||
1760 | 1503 | or eax,-1 ; |
|
1761 | jmp still_2 ; |
1504 | mcall |
Line 1762... | Line 1505... | ||
1762 | 1505 | ||
1763 | draw_window_2: |
1506 | draw_window_2: |
Line 1764... | Line 1507... | ||
1764 | mov eax,12 ; function 12:tell os about windowdraw |
1507 | mov eax,12 ; function 12:tell os about windowdraw |
1765 | mov ebx,1h ; 1, start of draw |
1508 | mov ebx,1h ; 1, start of draw |
Line 1766... | Line 1509... | ||
1766 | mcall |
1509 | mcall |
1767 | 1510 | ||
1768 | 1511 | ||
1769 | Window 250,250,420,390, 0x33FFFFFF, 0x805080d0, standard |
1512 | Window 250,250,420,390, 0x33FFFFFF, 0x805080d0, standard |
1770 | ; place size |
1513 | ; place size |
1771 | 1514 | ||
1772 | Text 15, 10,0x00000000, STDCA, STDCAlen-STDCA |
1515 | Text 15, 10,0x00000000, STDCA, STDCAlen-STDCA |
1773 | Text 215, 10,0x00000000, EXTCA, EXTCAlen-EXTCA |
1516 | Text 215, 10,, EXTCA, EXTCAlen-EXTCA |
1774 | 1517 | ||
1775 | Number 135,10,1*256,8,dword [stdc],0x000000 |
1518 | Number 135,10,1*256,8,dword [stdc],0x000000 |
1776 | Number 335,10,1*256,8,dword [extc],0x000000 |
1519 | Number 335,10,,,dword [extc], |
1777 | 1520 | ||
1778 | Text 15, 30,0x00000000, FPU, FPUlen-FPU |
1521 | Text 15, 30,0x00000000, FPU, FPUlen-FPU |
1779 | Text 115, 30,0x00000000, VME, VMElen-VME |
1522 | Text 115, 30,, VME, VMElen-VME |
1780 | Text 215, 30,0x00000000, DE, DElen-DE |
1523 | Text 215, 30,, DE, DElen-DE |
1781 | Text 315, 30,0x00000000, PSE, PSElen-PSE |
1524 | Text 315, 30,, PSE, PSElen-PSE |
1782 | 1525 | ||
1783 | Text 15, 50,0x00000000,TSC, TSClen-TSC |
1526 | Text 15, 50,,TSC, TSClen-TSC |
1784 | Text 115, 50,0x00000000,MSR, MSRlen-MSR |
1527 | Text 115,50,,MSR, MSRlen-MSR |
1785 | Text 215,50,0x00000000,PAE, PAElen-PAE |
1528 | Text 215,50,,PAE, PAElen-PAE |
1786 | Text 315,50,0x00000000,MCE, MCElen-MCE |
1529 | Text 315,50,,MCE, MCElen-MCE |
1787 | 1530 | ||
1788 | Text 15,70,0x00000000,CX8, CX8len-CX8 |
1531 | Text 15,70,,CX8, CX8len-CX8 |
1789 | Text 115,70,0x00000000,APIC, APIClen-APIC |
1532 | Text 115,70,,APIC, APIClen-APIC |
1790 | Text 215,70,0x00000000,Res, Reslen-Res |
1533 | Text 215,70,,Res, Reslen-Res |
1791 | Text 315,70,0x00000000,SEP, SEPlen-SEP |
1534 | Text 315,70,,SEP, SEPlen-SEP |
1792 | 1535 | ||
1793 | Text 15,90,0x00000000,MTRR, MTRRlen-MTRR |
1536 | Text 15,90,,MTRR, MTRRlen-MTRR |
1794 | Text 115,90,0x00000000,PGE, PGElen-PGE |
1537 | Text 115,90,,PGE, PGElen-PGE |
1795 | Text 215,90,0x00000000,MCA, MCAlen-MCA |
1538 | Text 215,90,,MCA, MCAlen-MCA |
1796 | Text 315,90,0x00000000,CMOV, CMOVlen-CMOV |
1539 | Text 315,90,,CMOV, CMOVlen-CMOV |
1797 | 1540 | ||
1798 | Text 15,110,0x00000000,PAT, PATlen-PAT |
1541 | Text 15,110,,PAT, PATlen-PAT |
1799 | Text 115,110,0x00000000,PSE36, PSE36len-PSE36 |
1542 | Text 115,110,,PSE36, PSE36len-PSE36 |
1800 | Text 215,110,0x00000000,PSNUM, PSNUMlen-PSNUM |
1543 | Text 215,110,,PSNUM, PSNUMlen-PSNUM |
1801 | Text 315,110,0x00000000,CLFLUSHn, CLFLUSHnlen-CLFLUSHn |
1544 | Text 315,110,,CLFLUSHn, CLFLUSHnlen-CLFLUSHn |
1802 | 1545 | ||
1803 | Text 15,130,0x00000000,Res, Reslen-Res |
1546 | Text 15,130,,Res, Reslen-Res |
1804 | Text 115,130,0x00000000,DTS, DTSlen-DTS |
1547 | Text 115,130,,DTS, DTSlen-DTS |
1805 | Text 215,130,0x00000000,ACPI, ACPIlen-ACPI |
1548 | Text 215,130,,ACPI, ACPIlen-ACPI |
1806 | Text 315,130,0x00000000,MMX, MMXlen-MMX |
1549 | Text 315,130,,MMX, MMXlen-MMX |
Line 1807... | Line 1550... | ||
1807 | 1550 | ||
1808 | Text 15,150,0x00000000,FXSR, FXSRlen-FXSR |
1551 | Text 15,150,,FXSR, FXSRlen-FXSR |
1809 | Text 115,150,0x00000000,SSE, SSElen-SSE |
1552 | Text 115,150,,SSE, SSElen-SSE |
1810 | Text 215,150,0x00000000,SSE2, SSE2len-SSE2 |
1553 | Text 215,150,,SSE2, SSE2len-SSE2 |
1811 | Text 315,150,0x00000000,SSn, SSnlen-SSn |
1554 | Text 315,150,,SSn, SSnlen-SSn |
Line 1812... | Line 1555... | ||
1812 | 1555 | ||
1813 | Text 15,170,0x00000000,HTT, HTTnlen-HTTn |
1556 | Text 15,170,,HTT, HTTnlen-HTTn |
1814 | Text 115,170,0x00000000,TM, TMlen-TM |
1557 | Text 115,170,,TM, TMlen-TM |
Line 1815... | Line 1558... | ||
1815 | Text 215,170,0x00000000,IA64, IA64len-IA64 |
1558 | Text 215,170,,IA64, IA64len-IA64 |
1816 | Text 315,170,0x00000000,PBE, PBElen-PBE |
1559 | Text 315,170,,PBE, PBElen-PBE |
1817 | ;--------------- |
1560 | ;--------------- |
1818 | DrawLine 0, 410, 185,185,0x8080FF ;10 |
1561 | DrawLine 0, 410, 185,185,0x8080FF ;10 |
1819 | 1562 | ||
1820 | mov eax,$80000000 |
1563 | mov eax,$80000000 |
1821 | cpuid |
1564 | cpuid |
1822 | ;mov eax, $03020101 for test of reaction |
1565 | ;mov eax, $03020101 for test of reaction |
1823 | test eax, 80000000h |
1566 | test eax, eax |
1824 | jnz goooddd |
1567 | js goooddd |
1825 | 1568 | ||
1826 | baaadd: |
1569 | baaadd: |
1827 | Text 95,235,0x00000000,NEF, NEFlen-NEF |
1570 | Text 95,235,0x00000000,NEF, NEFlen-NEF |
1828 | jmp too |
1571 | jmp too |
1829 | 1572 | ||
1830 | goooddd: |
1573 | goooddd: |
1831 | Text 15,195,0x00000000,SS3, SS3len-SS3 |
1574 | Text 15,195,0x00000000,SS3, SS3len-SS3 |
1832 | Text 15,215,0x00000000,MON, MONlen-MON |
1575 | Text 15,215,,MON, MONlen-MON |
1833 | Text 15,235,0x00000000,DS_CPL, DS_CPLlen-DS_CPL |
1576 | Text 15,235,,DS_CPL, DS_CPLlen-DS_CPL |
1834 | Text 15,255,0x00000000,EST, ESTlen-EST |
1577 | Text 15,255,,EST, ESTlen-EST |
1835 | Text 15,275,0x00000000,TM2, TM2len-TM2 |
1578 | Text 15,275,,TM2, TM2len-TM2 |
1836 | Text 15,295,0x00000000,VMX, VMXlen-VMX |
1579 | Text 15,295,,VMX, VMXlen-VMX |
1837 | Text 15,315,0x00000000,SVM, SVMlen-SVM |
1580 | Text 15,315,,SVM, SVMlen-SVM |
1838 | 1581 | ||
1839 | Text 115,195,0x00000000,CNXT_ID, CNXT_IDlen-CNXT_ID |
1582 | Text 115,195,,CNXT_ID, CNXT_IDlen-CNXT_ID |
1840 | Text 115,215,0x00000000,CX16, CX16len-CX16 |
1583 | Text 115,215,,CX16, CX16len-CX16 |
1841 | Text 115,235,0x00000000,ETPRD, ETPRDlen-ETPRD |
1584 | Text 115,235,,ETPRD, ETPRDlen-ETPRD |
1842 | Text 115,255,0x00000000,SYS, SYSlen-SYS |
1585 | Text 115,255,,SYS, SYSlen-SYS |
1843 | Text 115,275,0x00000000,LAF, LAFlen-LAF |
1586 | Text 115,275,,LAF, LAFlen-LAF |
1844 | Text 115,295,0x00000000,SSSE3, SSSE3len-SSSE3 |
1587 | Text 115,295,,SSSE3, SSSE3len-SSSE3 |
Line 1845... | Line 1588... | ||
1845 | Text 115,315,0x00000000,MCR8, MCR8len-MCR8 |
1588 | Text 115,315,,MCR8, MCR8len-MCR8 |
1846 | 1589 | ||
Line 1847... | Line 1590... | ||
1847 | Text 215,195,0x00000000,MP, MPlen-MP |
1590 | Text 215,195,,MP, MPlen-MP |
1848 | Text 215,215,0x00000000,NX, NXlen-NX |
1591 | Text 215,215,,NX, NXlen-NX |
Line 1849... | Line 1592... | ||
1849 | Text 215,235,0x00000000,MMXPi, MMXPilen-MMXPi |
1592 | Text 215,235,,MMXPi, MMXPilen-MMXPi |
Line 1850... | Line 1593... | ||
1850 | Text 215,255,0x00000000,MMXn, MMXnlen-MMXn |
1593 | Text 215,255,,MMXn, MMXnlen-MMXn |
1851 | Text 215,275,0x00000000,FXSRn, FXSRnlen-FXSRn |
1594 | Text 215,275,,FXSRn, FXSRnlen-FXSRn |
Line 1899... | Line 1642... | ||
1899 | mcall |
1642 | mcall |
Line 1900... | Line 1643... | ||
1900 | 1643 | ||
Line 1901... | Line 1644... | ||
1901 | Text 130,270,0x00000000,instruct, instructlen-instruct |
1644 | Text 130,270,0x00000000,instruct, instructlen-instruct |
1902 | 1645 | ||
1903 | DrawLine 10, 330, 325,325,0x8080FF |
1646 | DrawLine 10, 330, 325,325,0x8080FF |
1904 | DrawLine 330, 330, 275,325,0x8080FF |
1647 | DrawLine 330, 330, 275,325;,0x8080FF |
1905 | DrawLine 10, 10, 275,325,0x8080FF |
1648 | DrawLine 10, 10, 275,325;,0x8080FF |
Line 1906... | Line 1649... | ||
1906 | DrawLine 10, 125, 275,275,0x8080FF |
1649 | DrawLine 10, 125, 275,275;,0x8080FF |
1907 | DrawLine 230, 330, 275,275,0x8080FF |
1650 | DrawLine 230, 330, 275,275;,0x8080FF |
1908 | 1651 | ||
1909 | cmp dword[smallvendor], 'cAMD' |
1652 | cmp dword[smallvendor], 'cAMD' |
1910 | jne cont |
- | |
1911 | cmp [f], $6 |
- | |
Line 1912... | Line 1653... | ||
1912 | jne cont |
1653 | jne cont |
Line 1913... | Line 1654... | ||
1913 | cmp [f], $6 |
1654 | cmp [f], $6 |
Line 1921... | Line 1662... | ||
1921 | 1662 | ||
Line 1922... | Line 1663... | ||
1922 | cont: |
1663 | cont: |
1923 | 1664 | ||
1924 | 1665 | ||
1925 | Text 15,50,0x00000000,tsum, tsumlen-tsum ; |
1666 | Text 15,50,0x00000000,tsum, tsumlen-tsum ; |
Line 1926... | Line 1667... | ||
1926 | Text 15,90,0x00000000,cpuname, cpunamelen-cpuname; |
1667 | Text 15,90,,cpuname, cpunamelen-cpuname; |
1927 | Text 255,250,0x00000000,typen, typenlen-typen; |
1668 | Text 255,250,,typen, typenlen-typen; |
Line 1928... | Line 1669... | ||
1928 | Text 175, 50,0x00000000,tech, techlen-tech; |
1669 | Text 175, 50,,tech, techlen-tech; |
1929 | 1670 | ||
1930 | Number 82,50,0,4,dword [total],0x000000; MHz |
1671 | Number 82,50,0,4,dword [total],0x000000; MHz |
Line 1931... | Line 1672... | ||
1931 | Number 110,50,0,2,dword [sot],0x000000; KHz |
1672 | Number 110,50,0,2,dword [sot]; KHz |
1932 | 1673 | ||
1933 | Text 15,170,0x00000000,cache2, cache2len-cache2 |
1674 | Text 15,170,0x00000000,cache2, cache2len-cache2 |
Line 1934... | Line 1675... | ||
1934 | Text 15,210,0x00000000,cache3, cache3len-cache3 |
1675 | Text 15,210,,cache3, cache3len-cache3 |
1935 | Text 15,230,0x00000000,cache4, cache4len-cache4 |
1676 | Text 15,230,,cache4, cache4len-cache4 |
Line 1936... | Line 1677... | ||
1936 | 1677 | ||
- | 1678 | ||
1937 | 1679 | Number 75,110,1*256,1,dword [f],0x000000 ; |
|
1938 | Number 75,110,1*256,1,dword [f],0x000000 ; |
1680 | Number 75,130,,,dword [m] |
1939 | Number 75,130,1*256,1,dword [m],0x000000; |
- | |
1940 | Number 75,150,1*256,1,dword [s],0x000000; |
- | |
1941 | 1681 | Number 75,150,,,dword [s] |
|
1942 | Number 110,110,1*256,2,dword [ef],0x000000 ; |
1682 | |
1943 | Number 110,130,1*256,2,dword [em],0x000000; |
1683 | Number 110,110,1*256,2,dword [ef] |
1944 | 1684 | Number 110,130,,,dword [em] |
|
1945 | Text 15,30,0x00000000,multil, multillen-multil |
1685 | |
Line 1968... | Line 1708... | ||
1968 | mov esi,mynamelen |
1708 | mov esi,mynamelen |
1969 | sub esi,edi |
1709 | sub esi,edi |
1970 | Text 105, 10, 0x00000000, edi, esi |
1710 | Text 105, 10, 0x00000000, edi, esi |
1971 | ; Text 105,20,0x00000000,myname, mynamelen-myname |
1711 | ; Text 105,20,0x00000000,myname, mynamelen-myname |
1972 | ;- |
1712 | ;- |
1973 | Text 15,250,0x00000000,brandid, brandidlen-brandid |
1713 | Text 15,250,,brandid, brandidlen-brandid |
Line 1974... | Line 1714... | ||
1974 | 1714 | ||
Line 1975... | Line 1715... | ||
1975 | ret ; |
1715 | ret ; |
1976 | 1716 | ||
1977 | load_gif: |
1717 | load_gif: |
1978 | mov edi, img_area |
1718 | mov edi, img_area |
1979 | load_gif2: |
1719 | load_gif2: |
Line 1980... | Line 1720... | ||
1980 | gif2img esi,edi |
1720 | gif2img esi,edi |
Line 1981... | Line 1721... | ||
1981 | ret |
1721 | ; ret |
Line 2152... | Line 1892... | ||
2152 | db '3DNOW!+: ' |
1892 | db '3DNOW!+: ' |
2153 | nowplen: |
1893 | nowplen: |
Line 2154... | Line 1894... | ||
2154 | 1894 | ||
Line 2155... | Line -... | ||
2155 | ;-Type |
- | |
2156 | 1895 | ;-Type |
|
2157 | t1: |
- | |
2158 | db 'OEM' |
- | |
2159 | t1len: |
- | |
2160 | 1896 | ||
2161 | t2: |
- | |
2162 | db 'Overdrive' |
- | |
2163 | t2len: |
- | |
2164 | 1897 | t1 db 'OEM',0 |
|
2165 | t3: |
- | |
2166 | db 'Dual' |
- | |
2167 | t3len: |
- | |
2168 | 1898 | t2 db 'Overdrive',0 |
|
2169 | t4: |
- | |
Line 2170... | Line 1899... | ||
2170 | db 'Unknown' |
1899 | t3 db 'Dual',0 |
2171 | t4len: |
1900 | t4 db 'Unknown',0 |
2172 | 1901 | ||
2173 | ;----------Intel |
1902 | ;----------Intel |
Line 2270... | Line 1999... | ||
2270 | PF5clen: |
1999 | PF5clen: |
2271 | PF6c: |
2000 | PF6c: |
2272 | db 'Celeron D (Presler)' |
2001 | db 'Celeron D (Presler)' |
2273 | PF6clen: |
2002 | PF6clen: |
2274 | ;---------AMD |
2003 | ;---------AMD |
2275 | A50: |
- | |
2276 | db 'K5 (PR75, PR90, PR100)' |
2004 | A50 db 'K5 (PR75, PR90, PR100)',0 |
2277 | A50len: |
- | |
2278 | A51: |
- | |
2279 | db '5k86 (PR120, PR133)' |
2005 | A51 db '5k86 (PR120, PR133)',0 |
2280 | A51len: |
- | |
2281 | A52: |
- | |
2282 | db '5k86 (PR166)' |
2006 | A52 db '5k86 (PR166)',0 |
2283 | A52len: |
- | |
2284 | A53: |
- | |
2285 | db '5k86 (PR200)' |
2007 | A53 db '5k86 (PR200)',0 |
2286 | A53len: |
- | |
2287 | A56: |
- | |
2288 | db 'K6' |
2008 | A56 db 'K6',0 |
2289 | A56len: |
- | |
2290 | A57: |
- | |
2291 | db 'K6' |
2009 | A57 db 'K6',0 |
2292 | A57len: |
- | |
2293 | A58: |
- | |
2294 | db 'K6-2' |
2010 | A58 db 'K6-2',0 |
2295 | A58len: |
- | |
2296 | A59: |
- | |
2297 | db 'K6-III' |
2011 | A59 db 'K6-III',0 |
2298 | A59len: |
- | |
2299 | A5D: |
- | |
2300 | db 'K6-2+ or K6-III+' |
2012 | A5D db 'K6-2+ or K6-III+',0 |
2301 | A5Dlen: |
- | |
2302 | ;------------------- |
2013 | ;------------------- |
2303 | At1: |
- | |
2304 | db 'Athlon' |
2014 | At1 db 'Athlon',0 |
2305 | At1len: |
- | |
2306 | At2: |
- | |
2307 | db 'Athlon' |
2015 | At2 db 'Athlon',0 |
2308 | At2len: |
- | |
2309 | At3: |
- | |
2310 | db 'Duron (Spitfire)' |
2016 | At3 db 'Duron (Spitfire)',0 |
2311 | At3len: |
- | |
2312 | At4: |
- | |
2313 | db 'Athlon (Thunderbird)' |
2017 | At4 db 'Athlon (Thunderbird)',0 |
2314 | At4len: |
- | |
2315 | At6: |
- | |
2316 | db 'AthlonXP (Palomino)' |
2018 | At6 db 'AthlonXP (Palomino)',0 |
2317 | At6len: |
- | |
2318 | At7: |
- | |
2319 | db 'Duron (Morgan)' |
2019 | At7 db 'Duron (Morgan)',0 |
2320 | At7len: |
- | |
2321 | At8: |
- | |
2322 | db 'AthlonXP (Thoroughbred)' |
2020 | At8 db 'AthlonXP (Thoroughbred)',0 |
2323 | At8len: |
- | |
2324 | At8a: |
- | |
2325 | db 'Duron (Applebred)' |
2021 | At8a db 'Duron (Applebred)',0 |
2326 | At8alen: |
- | |
2327 | Ata: |
- | |
2328 | db 'AthlonXP (Barton)' |
2022 | Ata db 'AthlonXP (Barton)',0 |
2329 | Atalen: |
- | |
2330 | Atat: |
- | |
2331 | db 'AthlonXP (Thorton)' |
2023 | Atat db 'AthlonXP (Thorton)',0 |
2332 | Atatlen: |
- | |
2333 | ;------------------- |
2024 | ;------------------- |
2334 | AF1: |
2025 | AF1: |
2335 | db 'Dual-core Opteron' |
2026 | db 'Dual-core Opteron' |
2336 | AF1len: |
2027 | AF1len: |
2337 | AF3: |
2028 | AF3: |
Line 2430... | Line 2121... | ||
2430 | athloncoef3 db 45, 50, 40, 55, 25, 30, 60, 35 |
2121 | athloncoef3 db 45, 50, 40, 55, 25, 30, 60, 35 |
2431 | p4coef db 160, 170, 180, 190, 200, 210, 220, 230, 80, 90, 100, 110, 120, 130, 140, 150 ; Pentium 4 (Willamete) |
2122 | p4coef db 160, 170, 180, 190, 200, 210, 220, 230, 80, 90, 100, 110, 120, 130, 140, 150 ; Pentium 4 (Willamete) |
2432 | coppercoeff db 50, 30, 40, 20, 55, 35, 45, 25, 35, 70, 80, 60, 20, 75, 15, 65, 90, 110, 120, 20, 95, 115, 85, 25, 35, 70, 80, 100, 20, 75, 15, 105 |
2123 | coppercoeff db 50, 30, 40, 20, 55, 35, 45, 25, 35, 70, 80, 60, 20, 75, 15, 65, 90, 110, 120, 20, 95, 115, 85, 25, 35, 70, 80, 100, 20, 75, 15, 105 |
2433 | tualatcoeff db 120, 35, 35, 40, 55, 35, 115, 35, 160, 70, 80, 60, 40, 75, 35, 65, 90, 110, 35, 35, 95, 35, 85, 35, 35, 35, 130, 100, 140, 35, 150, 105 |
2124 | tualatcoeff db 120, 35, 35, 40, 55, 35, 115, 35, 160, 70, 80, 60, 40, 75, 35, 65, 90, 110, 35, 35, 95, 35, 85, 35, 35, 35, 130, 100, 140, 35, 150, 105 |
Line 2434... | Line -... | ||
2434 | - | ||
2435 | 2125 | ||
2436 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2126 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2437 | ; |
2127 | ; |
2438 | ; include images and unpacking- and hasharea |
2128 | ; include images and unpacking- and hasharea |
2439 | ; |
2129 | ; |
Line 2448... | Line 2138... | ||
2448 | rd 4096+1 ;hash area size for unpacking gif |
2138 | rd 4096+1 ;hash area size for unpacking gif |
2449 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2139 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 2450... | Line 2140... | ||
2450 | 2140 | ||
Line -... | Line 2141... | ||
- | 2141 | I_END: |
|
- | 2142 | ||
- | 2143 | ; RSA test data |
|
- | 2144 | align 4 |
|
- | 2145 | num1 rd 40 |
|
- | 2146 | num2 rd 40 |
|
- | 2147 | num3 rd 40 |
|
- | 2148 | iter rd 1 |
|
- | 2149 | openkey rd 1 |
|
- | 2150 | ||
- | 2151 | ; GIF unpacker data |
|
- | 2152 | globalColor dd ? |
|
- | 2153 | img_count dd ? |
|
- | 2154 | cur_info dd ? ; image table pointer |
|
- | 2155 | codesize dd ? |
|
- | 2156 | compsize dd ? |
|
- | 2157 | bit_count dd ? |
|
- | 2158 | CC dd ? |
|
- | 2159 | EOI dd ? |
|
- | 2160 | Palette dd ? |
|
- | 2161 | block_ofs dd ? |
|
- | 2162 | table_ptr dd ? |
|
2451 | I_END: |
2163 | |
2452 | 2164 | ||
2453 | ost dd ? |
2165 | ost dd ? |
2454 | sot dd ? |
2166 | sot dd ? |
2455 | f dd ? |
2167 | f dd ? |
Line 2468... | Line 2180... | ||
2468 | L1d dd ? |
2180 | L1d dd ? |
2469 | L1i dd ? |
2181 | L1i dd ? |
2470 | L2 dd ? |
2182 | L2 dd ? |
2471 | L3 dd ? |
2183 | L3 dd ? |
2472 | micron dd ? |
2184 | micron dd ? |
2473 | sse3sup dd ? |
- | |
2474 | brand dd ? |
2185 | brand dd ? |
Line 2475... | Line 2186... | ||
2475 | 2186 | ||
2476 | ram_size_a dd ? |
2187 | ram_size_a dd ? |
Line 2477... | Line 2188... | ||
2477 | ram_size_t dd ? |
2188 | ram_size_t dd ? |
2478 | 2189 | ||
Line 2479... | Line 2190... | ||
2479 | stdc dd ? |
2190 | stdc dd ? |
2480 | extc dd ? |
2191 | extc dd ? |
- | 2192 | ||
Line 2481... | Line -... | ||
2481 | - | ||
2482 | FRS dd ? |
2193 | FRS dd ? |
2483 | freqsel db ? |
2194 | freqsel db ? |
Line 2484... | Line 2195... | ||
2484 | 2195 | sse3sup db ? |
|
2485 | temp dd ? |
2196 |