Difference between revisions of "Template:Instruction"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="float: left; margin-right: 8px; margin-bottom: 8px; border: solid 1px #eee; background-color: #fafafa; border-collapse: collapse; width: 250px; height: 220px;" | {| style="float: left; margin-right: 8px; margin-bottom: 8px; border: solid 1px #eee; background-color: #fafafa; border-collapse: collapse; width: 250px; height: 220px;" | ||
− | | 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" {{#ifeq:{{{op_size|}}}|3|rowspan="3"|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: | + | | title="Size of instruction in bytes" style="text-align: right;" |size: |
| title="Size of instruction in bytes" 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" | + | {{#ifeq:{{{op_size|}}}|3 |
− | | style="text-align: right;" |args | + | |{{!}}- |
− | + | {{!}} colspan="2" style="text-align: center;" {{!}} ''immediate'' | |
− | | title="Number of arguments popped from | + | |}} |
− | + | |- style="border: solid 1px #eee; height: 69px;" | |
+ | | title="Number of arguments popped from stack" style="text-align: right;" |args: | ||
+ | | title="Number of arguments popped from stack" style="text-align: center; width: 30px;" |{{{op_args}}} | ||
|- 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 33: | Line 35: | ||
"aliases": [ | "aliases": [ | ||
"3" | "3" | ||
− | ] | + | ], |
+ | "autovalue": "1" | ||
}, | }, | ||
"op_args": { | "op_args": { | ||
Line 42: | Line 45: | ||
"4" | "4" | ||
], | ], | ||
− | "autovalue": "" | + | "autovalue": "0" |
}, | }, | ||
"op_code": { | "op_code": { | ||
Line 56: | Line 59: | ||
"type": "string", | "type": "string", | ||
"aliases": [ | "aliases": [ | ||
− | " | + | "5" |
], | ], | ||
"suggested": true, | "suggested": true, | ||
"autovalue": " " | "autovalue": " " | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
}, | }, | ||
Line 76: | Line 70: | ||
"op_size", | "op_size", | ||
"op_args", | "op_args", | ||
− | |||
"op_desc" | "op_desc" | ||
], | ], |
Latest revision as of 07:54, 17 July 2019
{{{op_name}}} | size: | {{{op_size}}} |
args: | {{{op_args}}} | |
{{{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 |
Short description | op_desc 5 | no description
| String | suggested |