flat assembler
Message board for the users of flat assembler.

Index > Windows > Getting port address of device over windows

Author
Thread Post new topic Reply to topic
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Hi, I want to program my motherboard's sensor ( http://www.winbond.com/PDF/sheet/w83627thf.pdf ) but I don't know how programs like SANDRA and SpeedFan knows it's on port 0x290 Sad. The manual of w83627thf says that the default port is 0x295 for index and 0x296 for data.

This device is on LPC bus and a read it must be treated as ISA bus but I donĀ“t know how to scan it without risking to writing to another device.

Any suggestions of where can I read something about this?
Post 22 Nov 2005, 15:07
View user's profile Send private message Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 457
Location: Czech republic, Slovak republic
Feryno
Because I am better in disassembly than in assembly, I use another method to make monitors on my mobos - on my old MB Abit KT7A as well on new MB Asus A8N I have Award Bios.
Get bios from chip by included flashutil, then split it to LHA or LZW archives, unpack them and look for something like
mov al,'R'
call something_what_display_al
mov al,'P'
call...
mov al,'M'
call...
(this display fan RPM)

hiew.exe is good for playing with raw bios binaries.
try to search mov al,'R' as hexa opcode (2 bytes) by e.g. hiew.exe
you must disassemble code in near part and you will find what you want

If you have AMI bios, this couldn't help you.

If I remember correctly, it was near offset 00009600 (it may differ not much in other award bioses) in first LHA archive in A8N award bios - for first LHA just rename bios to filename with extension LHA and unpack it e.g. under Windows Commander, then try to google for hiew.exe if you don't have it.


Description: some plays by my bioses
z0urdze.azm use ports 0295h 0296h... maybe will help you

Download
Filename: playing_with_bios.zip
Filesize: 15.85 KB
Downloaded: 58 Time(s)

Post 22 Nov 2005, 16:07
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
IDA Pro is good to play with bios binaries as well Smile

Too bad it isn't free Crying or Very sad
Post 22 Nov 2005, 17:17
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Feryno, in this case I don't need to do that because I have the manual but I'm trying to find a way in which I can access w83627thf on any motherboard, not only in the mine. SANDRA and SpeedFan can do this and I want to know how they can detect the hardware.

Another thing that I want to know is how they knows how to handle the nForce4 chipset because I'm still searching info on how to program nForce4 without success Sad

Thanks for the sources anyway, it will help me to do something specific to my motherboard at least.
Post 22 Nov 2005, 18:38
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.