ref: 2a907fd4597d57d94fdf573f37c1d553318a7104
parent: 781a8f8d9f50221dc34c0dab5baf48e197444269
author: Alex Musolino <alex@musolino.id.au>
date: Fri Nov 27 06:19:49 EST 2020
games/mix: fix implementation of MOVE instruction (thanks nicolagi) Plan 9 memcpy(2) uses the same implementation as memmove(2) to handle overlapping ranges. Hovewer, the MIX MOVE instruction, as described in TAOCP, specifically does not do this. It copies words one at a time starting from the lowest address. This change also expands the address validation to check that all addresses within the source and destination ranges are valid before proceeding.