mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-10-31 08:16:52 +00:00 
			
		
		
		
	fix operandValid check; remove unused import;
This commit is contained in:
		
							parent
							
								
									9cb2c29f0f
								
							
						
					
					
						commit
						311889bc93
					
				| @ -10,7 +10,6 @@ import net.simon987.server.assembly.MachineCode; | ||||
| import net.simon987.server.assembly.exception.AssemblyException; | ||||
| import net.simon987.server.assembly.exception.IllegalOperandException; | ||||
| import net.simon987.server.assembly.exception.InvalidMnemonicException; | ||||
| import net.simon987.server.logging.LogManager; | ||||
| 
 | ||||
| import java.io.ByteArrayOutputStream; | ||||
| 
 | ||||
| @ -156,6 +155,11 @@ public class SetccInstruction extends Instruction { | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean operandValid(Operand o1) { | ||||
|         return o1.getType() != OperandType.IMMEDIATE16; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Encodes the instruction. Writes the result in the outputStream. | ||||
|      * Needs one operand of OperandType.REGISTER or OperandType.MEMORY_REG16 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user