|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Apr 2002
Città: Vigevano(PV)
Messaggi: 2124
|
[Nasm] .data
Codice:
[BITS 16] [ORG 0100h] [SECTION .text] start: xor eax, eax ; empty eax mov eax, 1 CPUID test edx, 00800000h ; MMX bit(23) jnz MMX test edx, 00200000h ; SSE bit(25) jnz SSE ; set int 21h service 4Ch(exit) mov ah, 4Ch int 21h MMX: mov dx, MMXMsg ; set int 21h service 09h mov ah, 09h int 21h SSE: mov dx, SSEMsg ; set int 21h service 09h mov ah, 09h int 21h [SECTION .data] MMXMsg db 'This CPU support the MMX extension', 13d, 10d, '$' SSEMsg db 'This CPU support the SSE extension', 13d, 10d, '$'
__________________
Gnu/Linux User
|
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Togli il "d" alle costanti 13 e 10.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Apr 2002
Città: Vigevano(PV)
Messaggi: 2124
|
tnk 1000
__________________
Gnu/Linux User
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:16.



















