Difference between revisions of "Template:Instruction"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
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" 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: left;" |size:
+
| 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"
 
|- style="border: solid 1px #eee"
| style="text-align: left;" |args:
+
| style="text-align: right;" |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}}}
 
| 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 56: Line 54:
 
"type": "string",
 
"type": "string",
 
"aliases": [
 
"aliases": [
"6"
+
"5"
 
],
 
],
 
"suggested": true,
 
"suggested": true,
 
"autovalue": "&nbsp;"
 
"autovalue": "&nbsp;"
},
 
"op_ret": {
 
"aliases": [
 
"5"
 
],
 
"label": "Return value",
 
"type": "boolean",
 
"autovalue": "false",
 
"required": true
 
 
}
 
}
 
},
 
},
Line 76: Line 65:
 
"op_size",
 
"op_size",
 
"op_args",
 
"op_args",
"op_ret",
 
 
"op_desc"
 
"op_desc"
 
],
 
],

Revision as of 20:14, 16 July 2019

{{{op_name}}} size: {{{op_size}}}
args: {{{op_args}}}
{{{op_code}}}
{{{op_desc}}}

Instruction template

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Instruction nameop_name 1

no description

Stringrequired
Instruction codeop_code 2

no description

Numberrequired
Instruction sizeop_size 3

no description

Numberrequired
Number of argumentsop_args 4

no description

Auto value
Numberrequired
Short descriptionop_desc 5

no description

Auto value
&nbsp;
Stringsuggested