Skip to content

Commit 08a4153

Browse files
committed
"opcodes" section renamed to "mnemonics"
1 parent 417e482 commit 08a4153

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def generateEnumerationLines(self, items):
7979
# Read definition file
8080
inputFile = open(args.input, 'r')
8181
opCodeList = yaml.load(inputFile)
82-
opCodeList = opCodeList['opcodes']
82+
opCodeList = opCodeList['mnemonics']
8383
inputFile.close()
8484

8585
# Read template

opcodes.example.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
opcodes:
1+
mnemonics:
22
- name: nop
33
code: "0x00"
4-
description: "Performs no operation."
4+
description: Performs no operation.
55

66
- name: b
77
code: "0xA0"
8-
description: "Unconditional branch."
8+
description: Unconditional branch.
99

1010
- name: [bz, b_false, b_zero, b_null] # the first opcode is lead, all others are aliases
1111
code: "0xA1"
12-
description: "Branch if the value on top of the stack equals to zero."
12+
description: Branch if the value on top of the stack equals to zero.
1313

1414
- name: [bnz, b_true, b_not_zero, b_not_null] # the first opcode is lead, all others are aliases
1515
code: "0xA2"
16-
description: "Branch if the value on top of the stack NOT equals to zero."
16+
description: Branch if the value on top of the stack NOT equals to zero.

0 commit comments

Comments
 (0)