Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. case 0x99: //RAL Absolute
  2. HB = fetch();
  3. LB = fetch();
  4. address += (WORD)((WORD)HB << 8) + LB;
  5. temp_word = Memory[address];
  6. if (address >= 0 && address < MEMORY_SIZE) {
  7. if ((temp_word & 0x80) == 0x80) {
  8. temp_word = (temp_word << 1) + 0x01;
  9. }
  10. else {
  11. temp_word = temp_word << 1;
  12. }
  13.  
  14. }
  15. set_flag_z((BYTE)temp_word);
  16. set_flag_n((BYTE)temp_word);
  17. Memory[address] = (BYTE)temp_word;
  18.  
  19. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement