1*45699Sbostic /* Amovzwl.c 1.2 90/12/04 */ 229619Ssam 3*45699Sbostic #include "align.h" 429619Ssam movzwl(infop) process_info *infop; 529619Ssam /* 629619Ssam /* Move word to longword, zero-extended 729619Ssam /* 829619Ssam /****************************************/ 929619Ssam { 1029619Ssam register long result; 1129619Ssam register struct oprnd *oppnt; 1229619Ssam 1329619Ssam oppnt = operand(infop,0); 1429619Ssam result = oppnt->data; 1529619Ssam negative_0; 1629619Ssam if (result == 0 ) zero_1 ; else zero_0; 1729619Ssam overflow_0; carry_1; 1829619Ssam if ((oppnt->mode & 0xff) == Dir) 1929619Ssam write_back (infop, result , operand(infop,1) ); 2029619Ssam else write_back (infop, result & 0xffff, operand(infop,1) ); 2129619Ssam } 22