mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-10-31 16:26:51 +00:00 
			
		
		
		
	Updated Basic Assembly tutorial (markdown)
							parent
							
								
									b5a240c7b2
								
							
						
					
					
						commit
						ae763065db
					
				| @ -285,7 +285,7 @@ The instruction's mnemonic is followed by one or two operands. There are 3 types | ||||
| An immediate value operand is simple a base-10 or base-16 number (with 0x prefix). The following immediate operands are *valid*: `12, -3, 0x0002, 0x03, label_name, +4` and the following immediate operands are *invalid*: `12.3, -0x02, abcd` | ||||
| 
 | ||||
| **Register operand:** | ||||
| A register operand is the name of a register. only the following registers can be used in instructions: `A, B, X, Y, SP, BP`, the register `FLAGS, IP` can't be modified or accessed directly. Register names and mnemonics are not case-sensitive. | ||||
| A register operand is the name of a register. only the following registers can be used in instructions: `A, B, C, D, X, Y, SP, BP`, the register `FLAGS, IP` can't be modified or accessed directly. Register names and mnemonics are not case-sensitive. | ||||
| 
 | ||||
| **Memory Operand:** | ||||
| A memory operand is a memory address in between square brackets. An immediate value or a register can be used to specify the address. The following memory operands are *valid*: `[12], [0xFFFE], [-3], [A], [BP], [label_name]`. You can also specify a register with a displacement value: `[A + 3], [BP-4], [X + label_name]` | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user