loader.inc
Original bytes preserved. This is a browser-readable view.
; ======================================================================
; XANDRIAN LABS / CS617 CHAPTER 02
; ======================================================================
; Program : Chapter 02 Sorting
; Source : app/loader.inc
; Revision : x0.31a-dev / comment-harmonization pass
; Target : Casio PB-2000C / HD61700
; Role : Copy the initialized image into RAM and enter it.
; Interface : LOADER, COPY_START, COPY_END, RAM_ENTRY.
; Maintainer : Xandrian Labs
; ----------------------------------------------------------------------
; This is the controlled ROM-to-RAM relocation path.
; ======================================================================
; PURPOSE : Relocate the initialized image to bank-one RAM.
; EFFECTS : Jumps to RAM_ENTRY after copy completion.
LOADER:
PST UA,&H44
PRE IX,COPY_START
PRE IY,COPY_END-1
PRE IZ,COPY_START
BUP
PST UA,&H55
JP RAM_ENTRY
; end of include