# TrueReality - HLE documentation                                       #
# Copyright (C) 1999 Niki W. Waibel                                     #
#                                                                       #
# This program is free software; you can redistribute it and/           #
# or modify it under the terms of the GNU General Public Li-            #
# cence as published by the Free Software Foundation; either            #
# version 2 of the Licence, or any later version.                       #
#                                                                       #
# This program is distributed in the hope that it will be use-          #
# ful, but WITHOUT ANY WARRANTY; without even the implied war-          #
# ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         #
# See the GNU General Public Licence for more details.                  #
#                                                                       #
# You should have received a copy of the GNU General Public             #
# Licence along with this program; if not, write to the Free            #
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,         #
# USA.                                                                  #
#                                                                       #
# Information about me (the author):                                    #
#   Niki W. Waibel, Reichenau 20, 6890 Lustenau, Austria - EUROPE       #
#   niki.waibel@gmx.net                                                 #


=========================================================================
   This is some sort of the HLE (High Level Emulation) documentation.    
=========================================================================


All of this stuff was figured out by disassembling/emulating various demos
with TrueReality.
All things which I'm not sure about are marked with a '?'.





Initialisation:
        If you know the following you can directly start HLE instead of RSP/RDP.
        HLE: High Level Emulation - was first hacked out by Epsilon and
        RealityMan (authors of UltraHLE).
        The DMEM is filled from 0x04000fc0 - 0x04000fff with the following:
                0x04000fc0: task
                            0x00000001 ... Graphics Task
                            0x00000002 ... Audio Task
                0x04000fc4: flags?
                            0x00000002 ... DP wait
                0x04000fc8: bootcode
                0x04000fcc: bootcode length
                0x04000fd0: ucode
                0x04000fd4: ucode length
                0x04000fd8: ucode data
                0x04000fdc: ucode data length
                0x04000fe0: dram stack (for matrices)
                0x04000fe4: dram stack length
                0x04000fe8: ?
                0x04000fec: ?
                0x04000ff0: display list
                0x04000ff4: display list length
                0x04000ff8: ?
                0x04000ffc: ?





... more will come (hint: look into my source)!

... to be written!

