From 140a8d3238929ae82a789af1183833ca0e616b91 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Sun, 6 Apr 2003 10:41:52 +0000 Subject: [PATCH] fixed bug in Descriptor::Load/SaveValues Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@873 --- include/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cpu.h b/include/cpu.h index ad377657..f0195944 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -106,12 +106,12 @@ public: void LoadValues (Bit32u address) { Bit32u* data = (Bit32u*)&desc; *data = mem_readd(address); - *(data+1) = mem_readd(address+1); + *(data+1) = mem_readd(address+4); } void SaveValues (Bit32u address) { Bit32u* data = (Bit32u*)&desc; mem_writed(address,*data); - mem_writed(address+1,*(data+1)); + mem_writed(address+4,*(data+1)); } Bit32u GetBase (void) { return (desc.base_24_31<<24) | (desc.base_16_23<<16) | desc.base_0_15; }; Bit32u GetLimit (void) {