Difference between revisions of "Template:MC-Basic/ErrorCodeHeader"
(Draft) |
m (branding) |
||
(5 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
<tr> | <tr> | ||
<th width="70">Number</th> | <th width="70">Number</th> | ||
− | <th width=" | + | <th width="300">Message</th> |
<th>Description</th> | <th>Description</th> | ||
− | <th width=" | + | <th width="100">Type</th> |
− | <th width=" | + | <th width="100">Severity</th> |
− | <th width=" | + | <th width="100">Action</th> |
</tr> | </tr> | ||
{{{1}}} | {{{1}}} | ||
Line 16: | Line 16: | ||
{{Template | {{Template | ||
|description= | |description= | ||
+ | Header for error codes tables in MC-Basic reference (softMC firmware). | ||
|template= | |template= | ||
Line 26: | Line 27: | ||
|parameters= | |parameters= | ||
;contents | ;contents | ||
− | : | + | : Error code entries, which require the [[Template:MC-Basic/ErrorCode|<nowiki>{{MC-Basic/ErrorCode}}</nowiki>]] template. |
− | |||
|examples= | |examples= | ||
+ | ;Input | ||
+ | <pre> | ||
+ | {{MC-Basic/ErrorCodeHeader| | ||
+ | {{MC-Basic/ErrorCode|1|CPU Divide error|Generated by the CPU if the divisor is zero or the quotient overflows the result register.|ASYNC|Fatal Fault|Watchdog}} | ||
+ | {{MC-Basic/ErrorCode|2|CPU Debug|Generated by the CPU after each instruction if Trap Flag is set.|ASYNC|Fatal Fault|Watchdog}} | ||
+ | {{MC-Basic/ErrorCode|3|CPU NMI|Generated by the CPU when the input to the NMI pin is asserted|ASYNC|Fatal Fault|Watchdog}} | ||
+ | }} | ||
+ | </pre> | ||
+ | ;Output | ||
+ | {{MC-Basic/ErrorCodeHeader| | ||
+ | {{MC-Basic/ErrorCode|1|CPU Divide error|Generated by the CPU if the divisor is zero or the quotient overflows the result register.|ASYNC|Fatal Fault|Watchdog}} | ||
+ | {{MC-Basic/ErrorCode|2|CPU Debug|Generated by the CPU after each instruction if Trap Flag is set.|ASYNC|Fatal Fault|Watchdog}} | ||
+ | {{MC-Basic/ErrorCode|3|CPU NMI|Generated by the CPU when the input to the NMI pin is asserted|ASYNC|Fatal Fault|Watchdog}} | ||
+ | }} | ||
}} | }} | ||
+ | |||
[[Category:Template:MC-Basic]] | [[Category:Template:MC-Basic]] | ||
</noinclude> | </noinclude> |
Latest revision as of 07:43, 23 March 2014
Header for error codes tables in MC-Basic reference (softMC firmware).
Template
{{MC-Basic/ErrorCodeHeader| contents }}
Parameters
- contents
- Error code entries, which require the {{MC-Basic/ErrorCode}} template.
Examples
- Input
{{MC-Basic/ErrorCodeHeader| {{MC-Basic/ErrorCode|1|CPU Divide error|Generated by the CPU if the divisor is zero or the quotient overflows the result register.|ASYNC|Fatal Fault|Watchdog}} {{MC-Basic/ErrorCode|2|CPU Debug|Generated by the CPU after each instruction if Trap Flag is set.|ASYNC|Fatal Fault|Watchdog}} {{MC-Basic/ErrorCode|3|CPU NMI|Generated by the CPU when the input to the NMI pin is asserted|ASYNC|Fatal Fault|Watchdog}} }}
- Output
Number | Message | Description | Type | Severity | Action |
---|---|---|---|---|---|
1 | CPU Divide error | Generated by the CPU if the divisor is zero or the quotient overflows the result register. | ASYNC | Fatal Fault | Watchdog |
2 | CPU Debug | Generated by the CPU after each instruction if Trap Flag is set. | ASYNC | Fatal Fault | Watchdog |
3 | CPU NMI | Generated by the CPU when the input to the NMI pin is asserted | ASYNC | Fatal Fault | Watchdog |
For more examples refer to pages, which use this template: What links here.
Help:Templates describes general usage of templates, including treatment of special characters.