X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=minsk.c;h=50038f6697ed40d61d3b45865ab11908383ab4cd;hb=HEAD;hp=9fd3fa440785b7e75540ddf4d8a7faba221209d4;hpb=5479e904f1abbf0b78025e5c87bb2806f2902081;p=minsk.git diff --git a/minsk.c b/minsk.c index 9fd3fa4..50038f6 100644 --- a/minsk.c +++ b/minsk.c @@ -472,7 +472,7 @@ static void run(void) int op = (w >> 30) & 0177; // Operation code int ax = (w >> 28) & 3; // Address extensions supported in Minsk-22 mode int ix = (w >> 24) & 15; // Indexing - loc x = { (ax & 2) >> 1, (w >> 12) & 07777 }; // Operands (original form) + loc x = { ax >> 1, (w >> 12) & 07777 }; // Operands (original form) loc y = { ax & 1, w & 07777 }; loc xi=x, yi=y; // (indexed form) if (trace) @@ -1284,7 +1284,7 @@ static void init_memory(int set_password) // not +00 00 0000 0000 (NOP). Otherwise, an empty program would reveal // the location of the password :) for (int i=0; i