Symbols

AppleWin supports loading of ACME, and Merlin Symbol Tables. The default filename read into the Main Symbol Table is “APPLE2E.SYM”.

Looking up symbols is now easier.  Can't remember an address of a symbol, or can't remember the symbol for an address?  The new symbol commands makes it easy:



Command

Effect

SYM

Display the number of symbols in the Main, User, and Source symbol tables.

SYM ####

Look-up the Symbol or Address, and display which Symbol Table it is in.

SYMUSER LOAD

Loads the User Symbol Table.

SYMUSER CLEAR

Clears the User Symbol Table!

SYMMAIN ####

Look-up only in the Main symbol table.

SYMUSER ####

Look-up only in the User symbol table.

SYMSRC ####

Look-up only in the Source symbol table.

SYM name = ####

Add (or update) a symbol in the User table with the new Address.

SYM ! name

Remove a symbol from the User table.

E symbol ##

Set memory (at the symbol Address) to the 8-Bit (byte) Value.

EB symbol ####

Alias for E.

E8 symbol ####

Alias for E.

EW symbol ####

Set memory (at the symbol Address) to the 16-Bit (word) Value.

E16 symbol ####

Alias for EW.



Examples:

Input

Effect

SYM

Displays number of symbols in the Main, User, and Source tables.

SYMMAIN CLEAR

Clears the main symbol table!!

SYMMAIN LOAD APPLE2E.SYM

Reloads the main symbol table.

SYM FA62

Look up the Address $FA62 (RESET).

SYM HOME

Look up the Address $FC58 (HOME).

SYM LIFE = 300

Define a new user symbol, called “Life” at Address $0300.

E LIFE 64

Set 8-Bit variable (@ $0300)“Life” to 100 (decimal).

EW LIFE 3E8

Set 16-Bit variable (@ $0300)“Life” to 1000 (decimal).