flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
MCD 27 May 2005, 09:14
More complete version of AMDECHO. Please post any suggestions/bugs.
-AMDECHO with proper CPU and protected mode detection. -Fixed the bug which caused the retrieved string to be cut off at 32 instead of 48 characters. -Some basic user strings were added (usage...) Code: nl equ 0Dh,0Ah org 100h Start: mov ah,70h ;check for 80386+ CPU push ax popf ;BTW this clears direction and interrupt flags pushf pop bx cmp bh,ah jne ErrNoAMDAthlon pushfd ;check for CPUID instruction pop eax bts eax,21 push eax popfd pushfd pop ebx cmp ebx,eax jne ErrNoAMDAthlon xor eax,eax cpuid or eax,eax ;CPUID page 0 and 1 supported? jz ErrNoAMDAthlon cmp ebx,"Auth" ;Allow only AMD CPUs _________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.