Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. //ORI - Data bitwise inclusive or with Accumulator
  2.         case 0x85:
  3.             data = fetch();
  4.             temp_word = (WORD)data | (WORD)Registers[REGISTER_A];
  5.             set_flag_n((BYTE)temp_word);
  6.             set_flag_z((BYTE)temp_word);
  7.             Registers[REGISTER_A] = (BYTE)temp_word;
  8.             break;
  9.  
  10. //ANI - Data bitwise and with Accumulator
  11.         case 0x86:
  12.             data = fetch();
  13.             temp_word = (WORD)data & (WORD)Registers[REGISTER_A];
  14.             set_flag_n((BYTE)temp_word);
  15.             set_flag_z((BYTE)temp_word);
  16.             Registers[REGISTER_A] = (BYTE)temp_word;
  17.             break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement