mirror of
https://github.com/libretro/mgba.git
synced 2024-11-30 19:50:34 +00:00
GBA BIOS: Fix more potential regressions with signed 16-bit loads
This commit is contained in:
parent
01f7036401
commit
d4d42a2eee
@ -90,10 +90,10 @@ static void _BgAffineSet(struct GBA* gba) {
|
||||
// [ 0 0 1 ] [ 0 0 1 ] [ 0 0 1 ] [ 0 0 1 ]
|
||||
ox = cpu->memory.load32(cpu, offset, 0) / 256.f;
|
||||
oy = cpu->memory.load32(cpu, offset + 4, 0) / 256.f;
|
||||
cx = cpu->memory.load16(cpu, offset + 8, 0);
|
||||
cy = cpu->memory.load16(cpu, offset + 10, 0);
|
||||
sx = cpu->memory.load16(cpu, offset + 12, 0) / 256.f;
|
||||
sy = cpu->memory.load16(cpu, offset + 14, 0) / 256.f;
|
||||
cx = (int16_t) cpu->memory.load16(cpu, offset + 8, 0);
|
||||
cy = (int16_t) cpu->memory.load16(cpu, offset + 10, 0);
|
||||
sx = (int16_t) cpu->memory.load16(cpu, offset + 12, 0) / 256.f;
|
||||
sy = (int16_t) cpu->memory.load16(cpu, offset + 14, 0) / 256.f;
|
||||
theta = (cpu->memory.load16(cpu, offset + 16, 0) >> 8) / 128.f * M_PI;
|
||||
offset += 20;
|
||||
// Rotation
|
||||
|
Loading…
Reference in New Issue
Block a user