Skip to content

Commit

Permalink
fixed typos, wording
Browse files Browse the repository at this point in the history
  • Loading branch information
dderjoel committed Sep 14, 2021
1 parent a2a3b82 commit 4dc93b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ struct INSTR_TABLE[] {
/* null-terminated string representation of an instruction ex: "mov"
* subsequent instructions of the same name with a different operand
* encoding will be place contiguously with the first instance of the
* encoding will be placed contiguously with the first instance of the
* instuction and will have the '\0' string
*/
char instr_name[MAX_INSTR_LEN];
Expand Down
7 changes: 4 additions & 3 deletions src/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,14 @@ typedef enum {
xor
} asm_instr;

// used to catagorize instruction based on their functionality
// used to categorize instruction based on their functionality
typedef enum {

// enforce a different mode of processing constant operand
DATA_TRANSFER,
/* to ensure shift instruction such as "shr REG, 1" does not
* assemble the predefined constant 1 operand
* assemble the predefined constant 1 operand. Rather use the special
* instruction for shr REG, 1
*/
SHIFT,
/* for control flow instructions constant operand is handled
Expand All @@ -202,7 +203,7 @@ typedef enum {
OTHER
} instr_type;

// register bit size and catagory(ext denotes extended x64 registers)
// register bit size and category (ext denotes extended x64 registers)
typedef enum {

reg8 = 0b00000000000,
Expand Down

0 comments on commit 4dc93b0

Please sign in to comment.