Re:Two Programs Enter, One Program Leaves
by sylvinus on Wednesday April 20, 2011 @11:19AM
(#2466941)
I've got the precompiler working quite well. Interestingly, it translates the redcode/pMARS code line-to-line to Javascript which is then executed to produce the assembly.
redcode is indeed a mess, clearly the result of an evolving and blurry standard :)
anyway, I'm spitting out assembly for 90% of the bots I've tried and have the Imp running. From now on it will indeed be a job of implementing each instructions and addressing modes. I'm definitely uploading this on github in a few hours and will be very happy to have some help ! :)
redcode is indeed a mess, clearly the result of an evolving and blurry standard :)
anyway, I'm spitting out assembly for 90% of the bots I've tried and have the Imp running. From now on it will indeed be a job of implementing each instructions and addressing modes. I'm definitely uploading this on github in a few hours and will be very happy to have some help ! :)