From: Toni Wilen Date: Thu, 18 Jun 2015 17:50:30 +0000 (+0300) Subject: Fix byte and word writes. X-Git-Tag: 3200~176 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=42f778bb40534056d373a4241e1f05efa514ed5b;p=francis%2Fwinuae.git Fix byte and word writes. --- 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) {