gte: Fix gteH division and sign extension (from PCSX4ALL) (#185)
authorgameblabla <gameblabla@users.noreply.github.com>
Mon, 16 Aug 2021 21:18:58 +0000 (21:18 +0000)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 21:18:58 +0000 (00:18 +0300)
commitb7159e1ade78d9e8aa44b2b065c9a38dd2a2b306
tree672ec82684c008d870d2cf9d8e0c2d7e71855e80
parent502ea36eb42c455c063ce30a5ee93ddd75f839e6
gte: Fix gteH division and sign extension (from PCSX4ALL) (#185)

gteH register is u16, not s16. DIVIDE macro/func assumed it was
s16 for some reason. Behavior now matches Mednafen.

Co-authored-by: senquack <dansilsby@gmail.com>
libpcsxcore/gte.c
libpcsxcore/gte_divider.h