I'm try yo use SHA256 Intel instructions.
_start:
mov eax,0x01
CPUID
test edx, 1<<25
jz _quit
smsw eax
movaps xmm1, [d1]
movaps xmm2, [d2]
SHA256msg1 xmm1,xmm2
Wen prg fetch sha256 instruction returns the error: received signal SIGILL, Illegal instruction.
- OS is Ubuntu 22.04.1LTS
- iMac Late '11 (27")
- Intel i5-2500s (4core)
- NASM 2.15.05
There are possibility to run it not in protected mode? Is that problem caused by running in protected mode or somethings else?
Grazie!
New in programming so please be tolerant