another corewar fix... - (nf)

opr at uiucuxc.UUCP opr at uiucuxc.UUCP
Fri Jul 6 09:31:00 AEST 1984


#N:uiucuxc:12500011:000:293
uiucuxc!opr    Jul  5 18:31:00 1984

	Another corewar bug fix:

As written, the first program always wins whenever either hits an
illegal instruction. The bug is in execute:

Change (line 294)

	if ( -1 == (p1 = do_instruction(p1))) return 1;

to

	if ( -1 == (p1 = do_instruction(p1))) return 2;



"10-1, I get a lunch thingy."



More information about the Comp.sources.unix mailing list