1,554
edits
(→Command list and argument types: -- Wikify tables) |
(→Logic resource format: -- Table wikification) |
||
Line 2,267: | Line 2,267: | ||
discussed at a later stage. | discussed at a later stage. | ||
{| border="1" | |||
|- | |||
! Offset | |||
! Command | |||
|- | |||
| 0-1 | |||
| Signature (0x12--0x34) | |||
|- | |||
| 2 | |||
| Vol number that the resource is contained in | |||
|- | |||
| 3-4 | |||
| Length of the resource without the header | |||
|- | |||
| 5-6 | |||
| Offset of logic code message section | |||
|} | |||
All text that can be printed to the screen from within a logic script | All text that can be printed to the screen from within a logic script | ||
Line 2,298: | Line 2,302: | ||
The first set of codes is the AGI commands themselves listed in | The first set of codes is the AGI commands themselves listed in | ||
<xref linkend="tab-action-commands">, and they have the range 0x00--0xB6. | <xref linkend="tab-action-commands">, and they have the range 0x00--0xB6. | ||
The second set of codes is as follows: | The second set of codes is as follows: | ||
{| border="1" | |||
|- | |||
! Code | |||
! Command | |||
|- | |||
| FF | |||
| '''if''' | |||
|- | |||
| FE | |||
| '''else''' or '''goto''' | |||
|- | |||
| FD | |||
| '''not''' | |||
|- | |||
| FC | |||
| '''or''' | |||
|} | |||
At present these are the only high value codes encountered. The | At present these are the only high value codes encountered. The | ||
Line 2,436: | Line 2,446: | ||
follows: | follows: | ||
{| border="1" | |||
|- | |||
! Offset | |||
! Description | |||
|- | |||
| 0-1 | |||
| Pointer to implementation code | |||
|- | |||
| 2 | |||
| Number of arguments | |||
|- | |||
| 3 | |||
| Type of arguments | |||
|} | |||
The type of arguments value is interpreted as follows: | The type of arguments value is interpreted as follows: | ||
Line 2,485: | Line 2,497: | ||
The format of the message section is as follows: | The format of the message section is as follows: | ||
{| border="1" | |||
|- | |||
! Offset | |||
! Description | |||
|- | |||
| 0 | |||
| Number of messages | |||
|- | |||
| 1-2 | |||
| Pointer to the end of the messages | |||
|- | |||
| 3-4 | |||
| Array of message pointers | |||
|- | |||
| ... | |||
| Array of message pointers | |||
|- | |||
| ? | |||
| Start of the text data. From this point the messages are encrypted with Avis Durgan (in their unencrypted form, each message is separated by a 0x00 value) | |||
|} | |||
===Implementation=== | ===Implementation=== |