Fixed a number of bugs in the NCR 53C810 code;

64-bit Windows 86Box now compiles without warnings.
This commit is contained in:
OBattler
2017-12-13 22:39:41 +01:00
parent b297311ba3
commit 044559f4e9
23 changed files with 312 additions and 155 deletions

View File

@@ -129,8 +129,8 @@ getouraddr()
//what?!
struct quehead_32 {
u_int32_t qh_link;
u_int32_t qh_rlink;
uintptr_t qh_link;
uintptr_t qh_rlink;
};
inline void
@@ -141,10 +141,10 @@ insque_32(a, b)
register struct quehead_32 *element = (struct quehead_32 *) a;
register struct quehead_32 *head = (struct quehead_32 *) b;
element->qh_link = head->qh_link;
head->qh_link = (u_int32_t)element;
element->qh_rlink = (u_int32_t)head;
head->qh_link = (uintptr_t)element;
element->qh_rlink = (uintptr_t)head;
((struct quehead_32 *)(element->qh_link))->qh_rlink
= (u_int32_t)element;
= (uintptr_t)element;
}
inline void