Page 1 of 1
Core War
Posted: Sat Jun 05, 2021 3:43 pm
by rje
A corewar VM could be implemented for the X16. That sort of fits the X16's target for software.
Probably start simple...
https://corewar.co.uk/standards/cwg.txt '86 versus '88:
https://corewar.co.uk/madtutor.txt
Core War
Posted: Mon Jun 07, 2021 3:23 am
by Ed Minchau
Yeah, was thinking about that myself. A single bank of RAM would be a natural arena, just wrap around from BFFF to A000.
Core War
Posted: Fri Jun 11, 2021 4:27 am
by rje
I got the Imp running.
https://github.com/bobbyjim/x16-corewar Just a proof of concept. I run the Imp for CORESIZE iterations, and watch it fill the core.
Core takes up 16K of main RAM. The program currently uses 8K, and all it does is run the VM with the one-liner Imp program. All the opcodes are implemented tho untested except for MOV.