mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #420 from lioncash/qflag
dyncom: Actually set the Q flag for SMLABB/SMLABT/SMLATB/SMLATT
This commit is contained in:
		
						commit
						fb0c749223
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -5571,7 +5571,8 @@ unsigned InterpreterMainLoop(ARMul_State* state) { | ||||||
|                 operand2 = (BIT(RS, 31)) ? (BITS(RS, 16, 31) | 0xffff0000) : BITS(RS, 16, 31); |                 operand2 = (BIT(RS, 31)) ? (BITS(RS, 16, 31) | 0xffff0000) : BITS(RS, 16, 31); | ||||||
|             RD = operand1 * operand2 + RN; |             RD = operand1 * operand2 + RN; | ||||||
| 
 | 
 | ||||||
|             // TODO: FIXME: UPDATE Q FLAGS
 |             if (AddOverflow(operand1 * operand2, RN, RD)) | ||||||
|  |                 cpu->Cpsr |= (1 << 27); | ||||||
|         } |         } | ||||||
|         cpu->Reg[15] += GET_INST_SIZE(cpu); |         cpu->Reg[15] += GET_INST_SIZE(cpu); | ||||||
|         INC_PC(sizeof(smla_inst)); |         INC_PC(sizeof(smla_inst)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue