Commit Graph

5 Commits

Author SHA1 Message Date
Kienan Stewart 8a6d684287 Fix relative mode parameters for destination parameters of multiple operations 2022-05-15 14:39:33 -04:00
Kienan Stewart 261b67afbb Fix support for relative mode addressing in input 2022-05-15 14:23:19 -04:00
Kienan Stewart 25cd57559e Implement "boosted" Int-code computer
* Support for 64bit integer values and non-continguous memory regions
* Add support for relative mode parameters
* New opcode to adjust relative mode base value
* Legacy 32bit integer API is preserved via simulate()
2022-05-15 14:03:01 -04:00
Kienan Stewart 9411a5231d Major version for int-code computer
* Programs may start at non-zero instructions
 * Input uses mutable VecDeques and consumes values as they are encountered
 * Output uses a mutable vector, and multiple outputs will be pushed on it
 * If no value is present in the input queue, the program blocks on input
 returning the status Status::WaitingForInput and the instruction to resume
 the program from.
2022-05-15 07:35:41 -04:00
Kienan Stewart f3832e6d88 Move intcode computer to separate crate 2022-05-10 07:04:24 -04:00