Difference between revisions of "ROMHeader"
From Sega Retro
Line 1: | Line 1: | ||
− | <div style="display:none;">{{#vardefine:input|{{#replace:{{uc:{{{1|}}}}}| |}}}} | + | <includeonly><div style="display:none;"> |
+ | <!--format input--> | ||
+ | {{#vardefine:input|{{#replace:{{uc:{{{1|}}}}}| |}}}} | ||
− | + | <!--generate output--> | |
− | + | {{#vardefine:i|0}}{{#vardefine:j|0}}{{#vardefine:hex|}}{{#vardefine:text|}} | |
− | {{#vardefine:i|0}}{{#vardefine:j|0}}{{#vardefine:hex|}} | ||
{{#while: | {{#while: | ||
| {{#ifexpr:{{#var:i}} < {{#len:{{#var:input}}}}|true}} | | {{#ifexpr:{{#var:i}} < {{#len:{{#var:input}}}}|true}} | ||
− | | {{#vardefine: | + | | {{#vardefine:current|{{#sub:{{#var:input}}|{{#var:i}}|2}}}} |
+ | {{#vardefine:nexthexchar|{{#ifexpr:{{#var:j}}>=16|<br/>|{{#ifexpr:{{#var:i}}>0| |}}}}}} | ||
+ | {{#vardefine:nexttextchar|{{#ifexpr:{{#var:j}}>=16|<br/>{{#vardefine:j|0}}|}}}} | ||
+ | |||
+ | {{#vardefine:hex|{{#var:hex}}{{#var:nexthexchar}}{{#var:current}}}}{{#vardefine:text|{{#var:text}}{{#var:nexttextchar}}{{Hex2ASCII|{{#var:current}}}}}} | ||
{{#vardefine:i|{{#expr:{{#var:i}}+2}}}}{{incvar|j}} | {{#vardefine:i|{{#expr:{{#var:i}}+2}}}}{{incvar|j}} | ||
}} | }} | ||
− | </div> | + | </div><!-- print that noise --> |
{|class="prettytable" | {|class="prettytable" | ||
+ | !Offset | ||
+ | !Contents (hexadecimal) | ||
+ | !Decoded text | ||
+ | |- | ||
|style="font-family:monospace"|00000100<br/>00000110<br/>00000120<br/>00000130<br/>00000140<br/>00000150<br/>00000160<br/>00000170<br/>00000180<br/>00000190<br/>000001A0<br/>000001B0<br/>000001C0<br/>000001D0<br/>000001E0<br/>000001F0<br/> | |style="font-family:monospace"|00000100<br/>00000110<br/>00000120<br/>00000130<br/>00000140<br/>00000150<br/>00000160<br/>00000170<br/>00000180<br/>00000190<br/>000001A0<br/>000001B0<br/>000001C0<br/>000001D0<br/>000001E0<br/>000001F0<br/> | ||
|style="font-family:monospace"|{{#var:hex}} | |style="font-family:monospace"|{{#var:hex}} | ||
− | |style="font-family:monospace"| | + | |style="font-family:monospace"|{{#var:text}} |
− | |} | + | |}</includeonly><noinclude> |
− | |||
− | |||
− | <noinclude> | ||
{{ROMHeader|53 45 47 41 20 4D 45 47 41 20 44 52 49 56 45 20 28 43 29 54 2D 31 33 20 31 39 39 32 2E 4D 41 59 53 49 44 45 20 50 4F 43 4B 45 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 49 44 45 20 50 4F 43 4B 45 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 4D 20 54 2D 31 33 30 38 33 20 2D 30 30 F9 86 4A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 00 00 0F FF FF 00 FF 00 00 00 FF FF FF 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4A 55 20 20 20 20 20 20 20 20 20 20 20 20 20 20}} | {{ROMHeader|53 45 47 41 20 4D 45 47 41 20 44 52 49 56 45 20 28 43 29 54 2D 31 33 20 31 39 39 32 2E 4D 41 59 53 49 44 45 20 50 4F 43 4B 45 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 49 44 45 20 50 4F 43 4B 45 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 4D 20 54 2D 31 33 30 38 33 20 2D 30 30 F9 86 4A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 00 00 0F FF FF 00 FF 00 00 00 FF FF FF 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4A 55 20 20 20 20 20 20 20 20 20 20 20 20 20 20}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 15:07, 15 March 2023
Offset | Contents (hexadecimal) | Decoded text |
---|---|---|
00000100 00000110 00000120 00000130 00000140 00000150 00000160 00000170 00000180 00000190 000001A0 000001B0 000001C0 000001D0 000001E0 000001F0 |
53 45 47 41 20 4D 45 47 41 20 44 52 49 56 45 20 28 43 29 54 2D 31 33 20 31 39 39 32 2E 4D 41 59 53 49 44 45 20 50 4F 43 4B 45 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 49 44 45 20 50 4F 43 4B 45 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 4D 20 54 2D 31 33 30 38 33 20 2D 30 30 F9 86 4A 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 00 00 00 0F FF FF 00 FF 00 00 00 FF FF FF 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4A 55 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |
SEGA MEGA DRIVE (C)T-13 1992.MAY SIDE POCKET SIDE POCKET GM T-13083 -00 J JU |