Core War

All aspects of programming on the Commander X16.
Post Reply
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

Core War

Post 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

Ed Minchau
Posts: 508
Joined: Sat Jul 11, 2020 3:30 pm

Core War

Post 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.

rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

Core War

Post 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.

 

Post Reply