flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
AsmGuru62 17 Mar 2025, 20:40
|
|||
![]() |
|
bmmueller 19 Mar 2025, 07:52
Es muss unter real Modus und DOS 16 Bit funktionieren, da es alte Laptops sind mit MS-DOS 5.0 bis Novell Dos 7.
|
|||
![]() |
|
AsmGuru62 19 Mar 2025, 11:53
Code: ; ; MS-DOS COM executable file ; org 100h ; ; Check the CPU type ; cpuid ; ; In 16-bit debugger look into registers filled by CPUID ; I was not able to try this in debugger, because my computer cannot run 16-bit code. I have old Turbo Debugger 3.1 in my archives from Windows 95 days, but it does not run. |
|||
![]() |
|
Core i7 19 Mar 2025, 12:32
bmmueller wrote: Es muss unter real Modus und DOS 16 Bit funktionieren Since 1985 all processors are 32-bit (i80386). Where can you find a 16-bit processor now? Check this code, it may work on all your systems: Code: org 100h jmp start cpuName db 64 dup('$') start: mov di,cpuName mov cx,3 mov eax,0x80000002 @@: push ax cx cpuid stosd xchg eax,ebx stosd xchg eax,ecx stosd xchg eax,edx stosd pop cx ax inc ax loop @b mov ah,9 mov dx,cpuName int 21h xor ax,ax int 16h ret |
|||
![]() |
|
Mat-Quasar 19 Mar 2025, 12:49
But CPUID is not available on some 32-bit processors.
Please see my attached screenshot of Intel SDM on how to detect early CPUs.
|
|||||||||||||||||||
![]() |
|
bmmueller 19 Mar 2025, 17:24
Ok
Danke schon mal Also CPUID scheint nicht unterstützt zu werden bei meinen Maschinen, aber ich werde mal mit den Flags herumprobieren. |
|||
![]() |
|
bmmueller 22 Apr 2025, 08:23
Danke an Alle ,hab alles im Griff
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.