Binary Spiral Template: Difference between revisions
Jump to navigation
Jump to search
m (I can't remember how formatting works) |
m (Add first opcode) |
||
Line 1: | Line 1: | ||
'''B'''inary '''S'''piral '''T'''emplates (BST) are template files that use a set of opcodes to modify files to fit a certain binary format. These are used by Spiral to coerce some format files into being more easily and sanely recogniseable (such as Pak archives). | '''B'''inary '''S'''piral '''T'''emplates (BST) are template files that use a set of opcodes to modify files to fit a certain binary format. These are used by Spiral to coerce some format files into being more easily and sanely recogniseable (such as Pak archives). | ||
==Specification== | |||
{| class="wikitable" | |||
!colspan="4"|BST Opcodes | |||
|- | |||
!Hex Opcode | |||
!Name | |||
!Argument Count | |||
!Comments | |||
|- | |||
|00 | |||
|Add magic number | |||
|1 | |||
| | |||
|- | |||
|} | |||
==Opcodes== | |||
==00 - Add Magic Number== | |||
Syntax: <code>00 [Magic Number]</code> | |||
{| class="wikitable" | |||
!colspan="3"|Magic Numbers | |||
|- | |||
!Hex Opcode | |||
!Hex Magic Number (LE) | |||
!Name | |||
|- | |||
|00 | |||
|<code>2E 50 41 4B</code> | |||
|Pak | |||
|- | |||
|style="text-align:center;" colspan="3" | ... | |||
|- | |||
|FC | |||
|N/a | |||
|(Raw Int8) | |||
|- | |||
|FD | |||
|N/a | |||
|(Raw Int16) | |||
|- | |||
|FE | |||
|N/a | |||
|(Raw Int32) | |||
|- | |||
|FF | |||
|N/a | |||
|(Raw Int64) | |||
|- | |||
|} |
Revision as of 14:32, 6 November 2019
Binary Spiral Templates (BST) are template files that use a set of opcodes to modify files to fit a certain binary format. These are used by Spiral to coerce some format files into being more easily and sanely recogniseable (such as Pak archives).
Specification
BST Opcodes | |||
---|---|---|---|
Hex Opcode | Name | Argument Count | Comments |
00 | Add magic number | 1 |
Opcodes
00 - Add Magic Number
Syntax: 00 [Magic Number]
Magic Numbers | ||
---|---|---|
Hex Opcode | Hex Magic Number (LE) | Name |
00 | 2E 50 41 4B
|
Pak |
... | ||
FC | N/a | (Raw Int8) |
FD | N/a | (Raw Int16) |
FE | N/a | (Raw Int32) |
FF | N/a | (Raw Int64) |