Anonymous

Changes

From Final Fantasy Inside

FF7/Kernel/Memory management

2,821 bytes removed, 02:18, 11 March 2005
m
Table converted
Within the [[FF7/Savemap|Savemap]] there are 5 banks of memory that are directly accessible by the [[FF7/Field script|field scripting language]]. These can either be accessed 8 bits or 16 bits at a time depending on the field command argument. The following table is basic memory map of the banks and how they relate to the [[FF7/Savemap|Savemap]]. There is also an allocation for 256 bytes for temporary field variables. These are not used between field files and are not saved.
{| border="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" align="center"
!style="background:rgb(204,204,204); width:80px;" align="center" | Offset
!style="background:rgb(204,204,204); width:80px;" align="center" | 8 Bit Field Bank
!style="background:rgb(204,204,204); width:100px;" align="center" | 16 Bit Filed Bank
!style="background:rgb(204,204,204); width:250px;" align="center" | Description
|-
|style="background:rgb(255,255,255);" | 0x0000
|style="background:rgb(255,255,255);" align="center" | N/A
|style="background:rgb(255,255,255);" align="center" | N/A
|style="background:rgb(255,255,255);" | Beginning of [[FF7/Savemap|Savemap]]
|-
|style="background:rgb(152,204,255);" | 0x0BA4
|style="background:rgb(152,204,255);" align="center" | 0x1
|style="background:rgb(152,204,255);" align="center" | 0x2
|style="background:rgb(152,204,255);" | Field Script Bank 1
|-
|style="background:rgb(152,204,255);" | 0x0CA4
|style="background:rgb(152,204,255);" align="center" | 0x3
|style="background:rgb(152,204,255);" align="center" | 0x4
|style="background:rgb(152,204,255);" | Field Script Bank 2
|-
|style="background:rgb(152,204,255);" | 0x0DA4
|style="background:rgb(152,204,255);" align="center" | 0xB
|style="background:rgb(152,204,255);" align="center" | 0xC
|style="background:rgb(152,204,255);" | Field Script Bank 3
|-
|style="background:rgb(152,204,255);" | 0x0EA4
|style="background:rgb(152,204,255);" align="center" | 0xD
|style="background:rgb(152,204,255);" align="center" | 0xE
|style="background:rgb(152,204,255);" | Field Script Bank 4
|-
|style="background:rgb(152,204,255);" | 0x0FA4
|style="background:rgb(152,204,255);" align="center" | 0x7
|style="background:rgb(152,204,255);" align="center" | 0xF
|style="background:rgb(152,204,255);" | Field Script Bank 5
|-
|style="background:rgb(255,255,255);" | 0x10F4
|style="background:rgb(255,255,255);" align="center" | N/A
|style="background:rgb(255,255,255);" align="center" | N/A
|style="background:rgb(255,255,255);" | End of [[FF7/Savemap|Savemap]]
|}
<table CELLSPACING{| border="0"><tr><th cellpadding="3" cellspacing="1" style="borderbackground: 1px solid rgb(0, 0, 0); width: 68px; height: 43px; " align="center"|style="background-color: rgb(230255, 230255, 230255); width:80px;">Offset<| N/th>A<th |style="borderbackground: 1px solid rgb(0255, 0255, 0255); text-alignwidth: center80px; vertical-" align: middle; width: 83px; height: 43px; background-color: rgb(230, 230, 230);="center">| 0x58 Bit Field Bank</th><th |style="borderbackground: 1px solid rgb(0255, 0255, 0255); text-alignwidth: center100px; vertical-" align: middle; width: 99px; height: 43px; background-color: rgb(230, 230, 230);="center">| 0x616 Bit Field Bank</th><th |style="borderbackground: 1px solid rgb(0255, 0255, 0255); width: 281px250px; height: 43px; background-color: rgb" | Temporary field variables (230, 230, 230256 bytes);">Description</th></tr>|}
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px;">
0x0000</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px;">
N/A</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px;">
N/A</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px;">
Beginning of [[FF7/Savemap|Savemap]]</td>
</tr>
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px; background-color: rgb(152, 204, 255);">
0x0BA4</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px; background-color: rgb(152, 204, 255);">
0x1</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px; background-color: rgb(152, 204, 255);">
0x2</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px; background-color: rgb(152, 204, 255);">
Field Script Bank 1</td>
</tr>
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px; background-color: rgb(152, 204, 255);">
0x0CA4</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px; background-color: rgb(152, 204, 255);">
0x3</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px; background-color: rgb(152, 204, 255);">
0x4</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px; background-color: rgb(152, 204, 255);">
Field Script Bank 2</td>
</tr>
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px; background-color: rgb(152, 204, 255);">
0x0DA4</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px; background-color: rgb(152, 204, 255);">
0xB</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px; background-color: rgb(152, 204, 255);">
0xC</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px; background-color: rgb(152, 204, 255);">
Field Script Bank 3</td>
</tr>
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px; background-color: rgb(152, 204, 255);">
0x0EA4</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px; background-color: rgb(152, 204, 255);">
0xD</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px; background-color: rgb(152, 204, 255);">
0xE</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px; background-color: rgb(152, 204, 255);">
Field Script Bank 4</td>
</tr>
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px; background-color: rgb(152, 204, 255);">
0x0FA4</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px; background-color: rgb(152, 204, 255);">
0x7</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px; background-color: rgb(152, 204, 255);">
0xF</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px; background-color: rgb(152, 204, 255);">
Field Script Bank 5</td>
</tr>
 
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px;">
0x10F4</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px;">
N/A</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px;">
N/A</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px;">
End of the [[FF7/Savemap|Savemap]]</td>
</tr>
 
<tr>
<td style="border-style: solid none solid solid; border-color: rgb(0, 0, 0); border-width: 1px; vertical-align: top; width: 68px; height: 25px;">
</td><td style="border-style: solid none; border-color: rgb(0, 0, 0); border-width: 1px; text-align: center; vertical-align: top; width: 83px; height: 25px;">
</td><td style="border-style: solid none; border-color: rgb(0, 0, 0); border-width: 1px; text-align: center; vertical-align: top; width: 99px; height: 25px;">
</td><td style="border-style: solid solid solid none; border-color: rgb(0, 0, 0); border-width: 1px; vertical-align: top; width: 281px; height: 25px;">
</td></tr>
 
<tr>
<td style="border: 1px solid rgb(0, 0, 0); width: 68px; height: 25px;">
N/A</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 83px; height: 25px;">
0x5</td>
<td style="border: 1px solid rgb(0, 0, 0); text-align: center; width: 99px; height: 25px;">
0x6</td>
<td style="border: 1px solid rgb(0, 0, 0); width: 281px; height: 25px;">
Temporary field variables (256 bytes)</td>
</tr>
</table>