| Table of Contents |
| List of Figures |
[To Be Completed]
| Introduction |
[To Be Completed]
Binary (Base 2) numbers are represented using the WLA-DX format of the "%"
symbol followed by a string of binary digits (0 and 1). A valid binary number
representation would be: %11100110.
The SMS and GG machines are both based on Zilog's Z80 microprocessor. This
microprocessor is a "little-endian" machine, meaning that bytes of a word
are numbered starting from the least-significant byte. As a result,
the SMS and GG machines are also little-endian. The least-significant byte
in a word will always be stored to memory first, at the lower address, followed
by the most-significant byte at the higher address.
Diagrams of data structures in memory will have lower memory addresses
towards the bottom of the page, with higher addresses growing towards the top
of the page.
where:
For example:
In this example, LOOP1 is a label, LD is the mnemonic identifier for the
opcode, HL is the destination operand, and STARTVALUE is the source operand.
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
[To Be Completed]
I.1 About this Document
[To Be Completed]
I.2 Document Conventions
This document uses a specific notation for hexadecimal and binary numbers,
symbolic representation of instructions, and data-structure formats.
Familiarity with this notation is essential to understanding this document.I.2.1 Hexadecimal and Binary Numbers
Hexadecimal (Base 16) numbers are represented using the WLA-DX format of the
"$" symbol followed by a string of hexadecimal digits (1-9 and A-F). The
hexadecimal digits 'A' through 'F' will always be upper-case. A valid
hexadecimal number representation would be: $C0FF.I.2.2 Bit and Byte Order
Bits are numbered starting from right to left, (i.e., least-significant to
most-significant.) All bytes consist of eight bits: 0 through 7.I.2.3 Reserved Bits
In certain register layout descriptions, various bits will be marked as
"Reserved." All reserved bits are implicitly RESET (0). Software should
never attempt to SET these bits (to 1). Follow the guidelines below:
I.2.4 Instruction Operands
The main processor used in the SMS and GG machines is the Zilog Z80
microprocessor. The symbolic representation of instructions is taken directly
from Z80 assembly language. The format is shown below:
When two operands are present, the right operand is the source and the left
is the destination.LOOP1: LD HL, STARTVALUE
I.3 Revision History
Version 0.00.00 (April 30, 2001): Initial version.
Chapter 1: Introduction to WLA-DX
Chapter 2: Programming the
Z80 Processor
Chapter 3: Memory
Management
3.1 Using RAM
[To Be Completed]3.1.1 Run-Time Variables
[To Be Completed]
Chapter 4: Taking
Control
4.1 Joypads
[To Be Completed]
4.2 The Light Phaser
[To Be Completed]
4.3 Take Pause
[To Be Completed]
Chapter 5: The Video
Display Processor (VDP)
5.1 Tiles
[To Be Completed]
5.2 Sprites
[To Be Completed]
5.3 The Palette
[To Be Completed]
Chapter 6: The
Programmable Sound Generator (PSG)
Chapter 7: The FM Unit
(FMU)
Chapter 8: Advanced
Topics
8.1 Split-screen and Parallax Scrolling
[To Be Completed]
8.2 SegaScope 3-D
[To Be Completed]
Glossary
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
References