summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2019-12-06 10:50:29 +0100
committer yz70s <yz70s@users.noreply.github.com>2019-12-06 10:51:55 +0100
commit06a1b954eda3a566d6abec14de1139a6c116ce20 (patch)
tree1d8ea2f7f91d704ed453d352d9885df58158b839 /src/mame/drivers
parentce9205dddaae6ec2cd0eae35765a82039beb7595 (diff)
nforcepc.cpp: set voltage read registers to valid values (nw)
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/nforcepc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mame/drivers/nforcepc.cpp b/src/mame/drivers/nforcepc.cpp
index c778db7ee4a..59d5ca5d712 100644
--- a/src/mame/drivers/nforcepc.cpp
+++ b/src/mame/drivers/nforcepc.cpp
@@ -304,6 +304,11 @@ int as99127f_device::execute_command(int command, int rw, int data)
void as99127f_device::device_start()
{
memset(buffer, 0, sizeof(buffer));
+ // used to read voltages by bios, measured in mV
+ buffer[0x20] = 0x70; // multiplied by 0x10
+ buffer[0x2] = 0x7e; // multiplied by 0x10
+ buffer[0x23] = 0x96; // multiplied by 0x540 then divided by 0x32
+ buffer[0x24] = 0x9e; // multiplied by 0x260 then divided by 0xa
}
DEFINE_DEVICE_TYPE(AS99127F_SENSOR2, as99127f_sensor2_device, "as99127f_sensor2", "Asus AS99127F temperature sensor 2")