mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-18 02:06:43 +00:00
Fix spelling
parent
79fa1e9f2d
commit
96efee6aff
@ -48,7 +48,7 @@
|
||||
|
||||
# Instruction Set
|
||||
## Introduction
|
||||
This is an effort to specify the specific MAR Assembly Instruction Set and its behaviour. The instruction set is a subset of the 8086 instruction set. A more detailed specification if the 8086 Instruction Set can be found [here](http://www.ousob.com/ng/iapx86/ng2e5.php). Note that the MAR Instruction Set can differ from the 8086 Instruction Set.
|
||||
This is an effort to specify the specific MAR Assembly Instruction Set and its behavior. The instruction set is a subset of the 8086 instruction set. A more detailed specification if the 8086 Instruction Set can be found [here](http://www.ousob.com/ng/iapx86/ng2e5.php). Note that the MAR Instruction Set can differ from the 8086 Instruction Set.
|
||||
|
||||
This manual tries to describe how to use the instructions and show any side effects they might have.
|
||||
|
||||
@ -62,7 +62,7 @@ This human readable format is parsed by the assembler which will output the actu
|
||||
|
||||
## Flags
|
||||
Some instructions will change certain flags based on their result. These are in a special non read-write register.
|
||||
The only way to set these flags is by using instructions and the only way to read these flags is with the jump behaviour
|
||||
The only way to set these flags is by using instructions and the only way to read these flags is with the jump behavior.
|
||||
|
||||
> NOTE: The flags might be readable in the future
|
||||
|
||||
@ -220,7 +220,7 @@ destination = destination >> count
|
||||
| `HWI source` | `0x09` | `source` : `reg` / `mem` / `imm` | `-` | `-` | `-` | `-` | `-` |
|
||||
|
||||
#### Description
|
||||
`HWI` triggers a [Hardware Interrupt](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware). `source` should be the address of the harware device. This is differnt from the RAM memory addresses. See the documentation of the hardware devices to see what an `HWI` does for each device.
|
||||
`HWI` triggers a [Hardware Interrupt](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware). `source` should be the address of the hardware device. This is different from the RAM memory addresses. See the documentation of the hardware devices to see what an `HWI` does for each device.
|
||||
|
||||
### JMP
|
||||
#### Details
|
||||
@ -380,7 +380,7 @@ memory[SP] = source
|
||||
#### Details
|
||||
| mnemonic | opcode | operands | carry | zero | sign | overflow | break |
|
||||
| -------- | ------ | -------- | ----- | ---- | ---- | -------- | ----- |
|
||||
| `POP destintation` | `0x14` | `destination` : `reg` / `mem` | `-` | `-` | `-` | `-` | `-` |
|
||||
| `POP destination` | `0x14` | `destination` : `reg` / `mem` | `-` | `-` | `-` | `-` | `-` |
|
||||
|
||||
#### Description
|
||||
`POP` copies the value of the memory address specified in the stack pointer to the `destination` and increments the stack pointer.
|
||||
@ -500,7 +500,7 @@ Y = temp % source
|
||||
#### Details
|
||||
| mnemonic | opcode | operands | carry | zero | sign | overflow | break |
|
||||
| -------- | ------ | -------- | ----- | ---- | ---- | -------- | ----- |
|
||||
| `NEG destintation` | `0x19` | `destination` : `mem` / `reg` | `X` | `X` | `X` | `X` | `-` |
|
||||
| `NEG destination` | `0x19` | `destination` : `mem` / `reg` | `X` | `X` | `X` | `X` | `-` |
|
||||
|
||||
#### Description
|
||||
`NEG` subtracts the `destination` operand from 0 and returns the result in the `destination`. This effectively produces the two's complement of the operand.
|
||||
|
Loading…
x
Reference in New Issue
Block a user