Re: Core Wars Update
Robert Pilkington wrote:
>>I've decided that I will not be integrating a compiler
>>into the program (sorry, Buddy.)
<snip>
>Can you make it easy to plug in a compiler? That way, by adding an include
>statement and modifying a little code, and the source files can be loaded up
>directly with some command... I haven't tried it yet, but I understand that
>it's pretty easy to do currently. Can you keep it that way? :)
Definitely.
>>or "greater-than" branch instruction before, so I'm
>>considering something like a Jump-if-Greater-Than (JGT)
>>instruction. Anyone know exactly how the CMP function
>>works?
>
>CMP has mostly been replaced with Skip If EQual (SEQ). Basically because
>they are the exact same thing. :)
I suspected as much. Then I'll bypass this; it's fairly easy
to emulate (just subtract the two values, and jump-if-zero).
>I think a JGT won't make much since. It would have to compare two addresses,
>right? Then it'd have to jump somewhere. Umm, where? Both the A and B fields
>are already used. :)
>
>A Skip if Less Than (SLT) is standard, and if you reverse the values, it can
>mimic a SGT (which doesn't exist).
Hmm, then I'll look into adding SLT as the final instruction.
No need to be different just to be different.
Rod
|
Not Categorized, Please Help
|
|