mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 10:36:43 +00:00
simple typo
parent
75aafe7981
commit
56c8c83456
@ -287,7 +287,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`
|
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:**
|
**Register operand:**
|
||||||
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.
|
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:**
|
**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]`
|
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