Thread: [Tutorial] Advanced Scripting Tutorial
View Single Post
  #147    
Old March 17th, 2007 (10:02 AM).
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 35
Gender:
Nature: Lonely
Posts: 147
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
An offset is a values like 0x800000

As used in the phrase #org 0x800000
The above is an absolute offset which tells the program the script should start at offset (address) 0x800000

The word offset in this thread is also used to refer to a phrase like this:
#org $Startscript

This is a relative offset. Bufrite will assign a relative offset to an absolute location and display that location in the log:
Code:
 - Pushed simplescript.$startjolt to 800000
#PROCESS: D:\PokeWitch\POKEMON SAPPHIRE VERSION.GBA F:2 for read
/---------------------------------------------------------------
| - Pushed simplescript.$joltbattle to 80001C
| - Pushed simplescript.$winjolt to 80003E
| - Pushed simplescript.$sorry to 80005F
| - Pushed simplescript.$givebadge to 800068
| - Pushed simplescript.$domove to 800082
| - Pushed simplescript.$givepoke to 8000BD
| - Pushed simplescript.$error to 800100
| - Pushed simplescript.$nameevee to 80010A
etc etc
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto