Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site uiucuxc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!uiucuxc!opr From: opr@uiucuxc.UUCP Newsgroups: net.sources Subject: another corewar fix... - (nf) Message-ID: <12500011@uiucuxc.UUCP> Date: Thu, 5-Jul-84 19:31:00 EDT Article-I.D.: uiucuxc.12500011 Posted: Thu Jul 5 19:31:00 1984 Date-Received: Sat, 7-Jul-84 07:31:20 EDT Lines: 19 Nf-ID: #N:uiucuxc:12500011:000:293 Nf-From: uiucuxc!opr Jul 5 18:31:00 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."