13.07.2015 Views

The PowerPC 604 RISC Microprocessor - eisber.net

The PowerPC 604 RISC Microprocessor - eisber.net

The PowerPC 604 RISC Microprocessor - eisber.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Printed by andi from a0.complang.tuwien.ac.alMar 29 1996 16:42 Karel<strong>The</strong>Robot.java Page 17return definition;return null;void put_object_at_pos(int pos. Name name) (if (pos 1)this.definition . name;)void printlint level)Karel<strong>The</strong>Robot.printin(level, definition.get_namo()):)int exec_step() (if (Karel<strong>The</strong>Robot.offset !. 0)return internal_program_error;if ((definition null) II (definition.define.i<strong>net</strong>ruction null))return incomplete_program_error;return definition.define.push(thie);final class BasicInstrNode extends Node implements Olobalestatic final int description()(basic_instr_node, is_i<strong>net</strong>r, is_undef, is_undef, la_undef);tnt instruction;BasicInstrNode(1instruction ■undef_i<strong>net</strong>r;BasicInstrNode(int instr)instruction instr;)int deecription(int pos)return deecription(poel;)int get_int_at_poslint pos)(if (pop 1)return instruction;return 0;)void put_object_at_pos(int pos, tnt veil (if (pos 1)instruction val;)void print(int level)Karel<strong>The</strong>Robot.printinilevel, i<strong>net</strong>ruction_namos(instruction));)int exec_stepl)int retval;retval KarelsWorld.exec_instt(instruction);Karel<strong>The</strong>Robot.offset ■ offset;Karel<strong>The</strong>Robot.inntruction • next;return retval;Karel<strong>The</strong>Robot.java 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!