From 42f778bb40534056d373a4241e1f05efa514ed5b Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 18 Jun 2015 20:50:30 +0300 Subject: [PATCH] Fix byte and word writes. --- qemuvga/ne2000.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemuvga/ne2000.cpp b/qemuvga/ne2000.cpp index b4a14afc..9099ce7e 100644 --- a/qemuvga/ne2000.cpp +++ b/qemuvga/ne2000.cpp @@ -952,11 +952,11 @@ static void gotfunc(void *devv, const uae_u8 *databuf, int len) static void REGPARAM2 ne2000_bput(struct pci_board_state *pcibs, uaecptr addr, uae_u32 b) { - ne2000_write(ncs.ne2000state, addr, b, 1); + ne2000_write(ncs.ne2000state, addr, b & 0xff, 1); } static void REGPARAM2 ne2000_wput(struct pci_board_state *pcibs, uaecptr addr, uae_u32 b) { - ne2000_write(ncs.ne2000state, addr, b, 2); + ne2000_write(ncs.ne2000state, addr, b & 0xffff, 2); } static void REGPARAM2 ne2000_lput(struct pci_board_state *pcibs, uaecptr addr, uae_u32 b) { -- 2.47.3