Difference between revisions of "Template:Instruction"
Jump to navigation
Jump to search
| Line 11: | Line 11: | ||
|style="text-align: center;" colspan="3" |''{{{op_desc}}}'' | |style="text-align: center;" colspan="3" |''{{{op_desc}}}'' | ||
|} | |} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "Standard instruction template.", | ||
| + | "params": { | ||
| + | "op_name": { | ||
| + | "label": "Instruction name", | ||
| + | "type": "string", | ||
| + | "required": true, | ||
| + | "aliases": ["1"] | ||
| + | }, | ||
| + | "op_code": { | ||
| + | "label": "Opcode value", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "aliases": ["2"] | ||
| + | }, | ||
| + | "op_size": { | ||
| + | "label": "Opcode size", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "aliases": ["3"] | ||
| + | }, | ||
| + | |||
| + | "op_args": { | ||
| + | "label": "Number of arguments", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "aliases": ["4"] | ||
| + | }, | ||
| + | |||
| + | "op_desc": { | ||
| + | "label": "Short description", | ||
| + | "type": "string", | ||
| + | "suggested": true, | ||
| + | "aliases": ["5"] | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
Revision as of 15:27, 16 July 2019
| {{{op_name}}} | size: | {{{op_size}}} |
| args: | {{{op_args}}} | |
| opcode: {{{op_code}}} | ||
| {{{op_desc}}} | ||
Standard instruction template.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Instruction name | op_name 1 | no description | String | required |
| Opcode value | op_code 2 | no description | Number | required |
| Opcode size | op_size 3 | no description | Number | required |
| Number of arguments | op_args 4 | no description | Number | required |
| Short description | op_desc 5 | no description | String | suggested |