flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
catafest wrote: ... any idea to solve this issue ? |
|||
![]() |
|
catafest
so show infos about CPUID ( or CPU) .
|
|||
![]() |
|
revolution
What does it display now?
|
|||
![]() |
|
catafest
Just testing with fasm . Why ?
|
|||
![]() |
|
revolution
I can't run your code right now from where I am, so you will need to explain more about what you see. Does it display anything? Does it only display a partial message? Does it crash? Something else?
|
|||
![]() |
|
catafest
Running well .
I wanted to improve it with other tasks or to find other solutions to solve these issues of displaying hardware information in the CPU and beyond. |
|||
![]() |
|
donn
Hi, maybe a test for threading capabilities such as number of logical processors?
You have a Hyper-Threading enabled check, but the number of cores could extend this. It could be a precursor check so that a multithreading engine could scale correctly, for example. I think there are legacy and extended methods. I was interested in running a check for this just between two local test environments and think it's something like: Code: mov eax, 10000000000000000000000000001000b ; Function Fn8000_0008h cpuid ; 1111b,10100010b / 0F,A2 cpuid mov rdx, 0 mov edx, cl ; 7:0 Num cores-1 mov rcx, 1b add rcx, rdx but haven't run it yet. This wouldn't be very proper probably since it doesn't cover every case, but if it returns the number of logical processors on my chips, would be good enough for now.... |
|||
![]() |
|
catafest
Is a good example on this thread : https://board.flatassembler.net/topic.php?p=158513
I try to test your code , I get en error on mov rdx, 0 (illegal intruction) Where is the documentation for: this Function Fn8000_0008h ? donn wrote: Hi, maybe a test for threading capabilities such as number of logical processors? |
|||
![]() |
|
donn
Ah sorry, probably 64-bit:
Code: mov eax, 10000000000000000000000000001000b ; Function Fn8000_0008h cpuid ; 1111b,10100010b / 0F,A2 cpuid mov edx, 0 mov dl, cl ; 7:0 Num cores-1 mov ecx, 1b add ecx, edx http://support.amd.com/TechDocs/24594.pdf on pgs. 614 (E.4.7) & 624 (E.5).[/code] |
|||
![]() |
|
catafest
@donn: no, wrong again , even the pages are wrongs...
is anyone moderating this forum? |
|||
![]() |
|
Furs
Pages? What? You're being pretty vague on what "doesn't work". Is it just the snippet or full code or what.
|
|||
![]() |
|
donn
He probably meant the pgs from the link I posted. My docs are pretty old so the pages have changed for the same sections. I have the June 2015 version locally and thought it would be better to post a URL. Pages are now 622-3 and 633.
Sorry about that. Feel like I've been posting too much lately anyway... have FASM on the mind...! |
|||
![]() |
|
rugxulo
I'm not directly familiar with this myself, but beware that the HTT flag probably isn't what you think it is. I think it's the capability of SMP for your machine, not the current existence of it.
HTT Means Hyper-Threading, Right? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.