Difference between revisions of "Template:Instruction"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
| title="Instruction mnemonic" rowspan="2" style="text-align: center; vertical-align: middle; width: 70%; height:115px; border: solid 1px #eee; background-color: #f5f5f5; font-size: 1.2em;" |'''<big>{{{op_name}}}</big>''' | | title="Instruction mnemonic" rowspan="2" style="text-align: center; vertical-align: middle; width: 70%; height:115px; border: solid 1px #eee; background-color: #f5f5f5; font-size: 1.2em;" |'''<big>{{{op_name}}}</big>''' | ||
| style="text-align: right;" |size: | | style="text-align: right;" |size: | ||
| − | | style="text-align: center; width: 30px;" |{{{op_size}}} | + | | title="Size of instruction in bytes" style="text-align: center; width: 30px;" |{{{op_size}}} |
|- style="border: solid 1px #eee" | |- style="border: solid 1px #eee" | ||
| style="text-align: right;" |args: | | style="text-align: right;" |args: | ||
| − | | style="text-align: center; width: 30px;" |{{{op_args}}} | + | ret: |
| + | | title="Number of arguments popped from stack and whether it pushes result to the stack" style="text-align: center; width: 30px;" |{{{op_args}}} | ||
| + | {{{op_ret}}} | ||
|- style="border: solid 1px #eee" | |- style="border: solid 1px #eee" | ||
| title="Instruction code" colspan="3" style="text-align: center; background-color: #f5f5f5;" |'''<big>{{{op_code}}}</big>''' | | title="Instruction code" colspan="3" style="text-align: center; background-color: #f5f5f5;" |'''<big>{{{op_code}}}</big>''' | ||
| Line 39: | Line 41: | ||
"aliases": [ | "aliases": [ | ||
"4" | "4" | ||
| − | ] | + | ], |
| + | "autovalue": "" | ||
}, | }, | ||
"op_code": { | "op_code": { | ||
| Line 53: | Line 56: | ||
"type": "string", | "type": "string", | ||
"aliases": [ | "aliases": [ | ||
| − | " | + | "6" |
], | ], | ||
"suggested": true, | "suggested": true, | ||
"autovalue": " " | "autovalue": " " | ||
| + | }, | ||
| + | "op_ret": { | ||
| + | "aliases": [ | ||
| + | "5" | ||
| + | ], | ||
| + | "label": "Return value", | ||
| + | "type": "boolean", | ||
| + | "autovalue": "false", | ||
| + | "required": true | ||
} | } | ||
}, | }, | ||
| Line 64: | Line 76: | ||
"op_size", | "op_size", | ||
"op_args", | "op_args", | ||
| + | "op_ret", | ||
"op_desc" | "op_desc" | ||
], | ], | ||
Revision as of 20:10, 16 July 2019
| {{{op_name}}} | size: | {{{op_size}}} |
| args:
ret: |
{{{op_args}}}
{{{op_ret}}} | |
| {{{op_code}}} | ||
| {{{op_desc}}} | ||
Instruction template
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Instruction name | op_name 1 | no description | String | required |
| Instruction code | op_code 2 | no description | Number | required |
| Instruction size | op_size 3 | no description | Number | required |
| Number of arguments | op_args 4 | no description
| Number | required |
| Return value | op_ret 5 | no description
| Boolean | required |
| Short description | op_desc 6 | no description
| String | suggested |