Search found 4 matches

by hardcode
Thu Jul 05, 2007 4:01 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39584

Hey tgoulart...I got it! thanks for your replies:)
by hardcode
Thu Jul 05, 2007 5:20 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39584

Thanks for your reply.I see what you're saying. The input itself is wrong. So what is the output then?

If 125,175 and 183 are being skipped, and then 256, 012 and 100 are being accessed,(012 doesn't produce a jump, since contents of register 2 is 0), Shouldn't the output be 7?

456 - 1st ...
by hardcode
Thu Jul 05, 2007 4:56 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39584

Exactly, so if 125 is not a valid instruction, how can it be counted towards the instruction count(that adds up to 5) and therefore make the program stop? I too am just using the 1st digit to conclude it is a halt,but isnt it necessary from the table that, 1 be followed by 2 zeroes?

thanks you for ...
by hardcode
Thu Jul 05, 2007 3:00 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39584

Actually, my program stops when 125 is reached. It is the halt instruction, so the program finishes there, and the subsequent lines should be ignored. This way we have 5 instructions executed, including the 125.

Why does your program stop when 125 is reached tgoulart? Isn't 100 mean to be the ...

Go to advanced search