From 7693fd805e7c99d4a1ea492de6e290e43910ae6a Mon Sep 17 00:00:00 2001 From: Kevin Ramharak Date: Sun, 3 Nov 2019 14:20:38 +0100 Subject: [PATCH] add missing documentation for the JA instruction. Add the JAE (JNC alias) instruction --- Instruction-Set.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Instruction-Set.md b/Instruction-Set.md index 2a72fe7..274898d 100644 --- a/Instruction-Set.md +++ b/Instruction-Set.md @@ -39,6 +39,7 @@ Current opcodes unsused | [**HWQ**](#hwq) *source* | *mem/reg/imm* | 0x1C |`- - - - -` | | [**INC**](#inc) *destination* | *mem/reg* | 0x2A | `- X X X -` | | [**JA**](#ja) *target* | *mem/reg/imm* | 0x2E |`- - - - -` | +| [**JAE**](#jae) *target* | *mem/reg/imm* | 0x22 |`- - - - -` | | [**JC**](#jc) *target* | *mem/reg/imm* | 0x21 |`- - - - -` | | [**JG**](#jg) *target* | *mem/reg/imm* | 0x0F |`- - - - -` | | [**JGE**](#jge) *target* | *mem/reg/imm* | 0x10 |`- - - - -` | @@ -300,14 +301,23 @@ destination = destination + 1 ### JA #### Details +| mnemonic | opcode | operands | carry | zero | sign | overflow | break | +| -------- | ------ | -------- | ----- | ---- | ---- | -------- | ----- | +| `JA target` | `0x2E` | `target` : `mem` / `reg` / `imm` | `-` | `-` | `-` | `-` | `-` | #### Description +`JA` jumps to the `target` if the carry flag and the zero flag are **NOT** set. #### Pseudo code ```py - +if CARRY_FLAG == 0 and ZERO_FLAG == 0: + IP = target ``` +### JAE +#### Description +`JAE` is an alias for the [`JNC`](#jnc) instruction + ### JC #### Details | mnemonic | opcode | operands | carry | zero | sign | overflow | break |