flat assembler
Message board for the users of flat assembler.
Index
> Windows > test CPUID code |
Author |
|
revolution 07 Dec 2017, 16:03
catafest wrote: ... any idea to solve this issue ? |
|||
07 Dec 2017, 16:03 |
|
catafest 07 Dec 2017, 16:08
so show infos about CPUID ( or CPU) .
|
|||
07 Dec 2017, 16:08 |
|
revolution 07 Dec 2017, 16:10
What does it display now?
|
|||
07 Dec 2017, 16:10 |
|
catafest 07 Dec 2017, 18:16
Just testing with fasm . Why ?
|
|||
07 Dec 2017, 18:16 |
|
revolution 08 Dec 2017, 00:11
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?
|
|||
08 Dec 2017, 00:11 |
|
catafest 13 Dec 2017, 07:45
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. |
|||
13 Dec 2017, 07:45 |
|
donn 17 Dec 2017, 20:19
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.... |
|||
17 Dec 2017, 20:19 |
|
catafest 18 Dec 2017, 10:57
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? |
|||
18 Dec 2017, 10:57 |
|
donn 18 Dec 2017, 19:44
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] |
|||
18 Dec 2017, 19:44 |
|
catafest 19 Dec 2017, 11:45
@donn: no, wrong again , even the pages are wrongs...
is anyone moderating this forum? |
|||
19 Dec 2017, 11:45 |
|
Furs 19 Dec 2017, 13:02
Pages? What? You're being pretty vague on what "doesn't work". Is it just the snippet or full code or what.
|
|||
19 Dec 2017, 13:02 |
|
donn 20 Dec 2017, 01:32
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...! |
|||
20 Dec 2017, 01:32 |
|
rugxulo 20 Dec 2017, 22:31
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? |
|||
20 Dec 2017, 22:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.