Core War

new topic     » topic index » view thread      » older message » newer message

I'm interested in the Core War program.  I have studied both the original
documents and Rod's source code.

Rod, your source code works (why did you make it .e instead of .ex?).  You
can probably reduce it by a third by decoding the operand data only once and
then executing each instruction.  Store the data in SourceAddress,
SourceData, DestAddress, DestData, and then let the instruction do the rest
of the work.  Also, using hexadecimal and bit-operators might simplify your
code.

I want to do my own implementation, using hexadecimal for opcode coding and
using the original definition of the language.  I would probably throw in
SPL and PCT, though.  Those two instructions certainly make for interesting
warriors.

J.


________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu