flat assembler
Message board for the users of flat assembler.

flat assembler > Main > SIDT — Store Interrupt Descriptor Table Register

Author
Thread Post new topic Reply to topic
SC0U7



Joined: 20 Feb 2018
Posts: 12
Hello today i read a article about SIDT register and i trying
this example code but without sucess.

Code:
sidt    fword ptr [eax] 
mov     al, [eax+5]         
cmp     al, 0FFh            
jnz     short loc_401E19
    


Now my questions is How to i can use SIDT instrcution in Fasm?
Code:
 sidt    fword ptr [eax]     


Or is here any alternative? Thanks for reply
Post 21 Mar 2018, 10:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15912
Location: SDSS J140821.67+025733.2
Code:
sidt fword[eax]    
fasm doesn't use ptr
Post 21 Mar 2018, 10:49
View user's profile Send private message Visit poster's website Reply with quote
SC0U7



Joined: 20 Feb 2018
Posts: 12
Thanks revolution your helping me like Jesus Very Happy can i ask you for helping me next problem? i googlit everywhere how to i can do WMI query but without solution i need read a cpu temperature have you some ideas how to do that?
Post 21 Mar 2018, 11:17
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15912
Location: SDSS J140821.67+025733.2
SC0U7 wrote:
i googlit everywhere how to i can do WMI query but without solution i need read a cpu temperature have you some ideas how to do that?
I have found the WMI thing to be unreliable. Some systems will show the actual temperature, while other systems will show a static value that was read once at start-up.

You might want to explore the IOCTL (or is it IOCTRL?) options available. They probably aren't portable though, so each system will require specific code to work correctly.
Post 21 Mar 2018, 12:42
View user's profile Send private message Visit poster's website Reply with quote
SC0U7



Joined: 20 Feb 2018
Posts: 12
Thanks but i cant find any examples for IOCTL and this is kernel driver only ? Is possible make it like exe file?
Post 21 Mar 2018, 13:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.