Fix #511: eliminate "Left shift of negative value" warnings

This commit is contained in:
Rangi 2018-05-06 21:27:47 -04:00
parent e5d4f741ee
commit aa51dbc612

View File

@ -4,13 +4,13 @@ MagnetTrain: ; 8cc04
jr nz, .ToGoldenrod
ld a, 1 ; forwards
lb bc, $40, $60
lb de, (11 * 8) - (11 * 8 + 4), -$60
lb de, ((11 * 8) - (11 * 8 + 4)), -$60
jr .continue
.ToGoldenrod:
ld a, -1 ; backwards
lb bc, -$40, -$60
lb de, (11 * 8) + (11 * 8 + 4), $60
lb de, ((11 * 8) + (11 * 8 + 4)), $60
.continue
ld h, a