Skip to navigation

Elite on the BBC Micro and NES

Loader: Elite loader (Part 1 of 6)

[BBC Micro cassette version, Loader]

Name: Elite loader (Part 1 of 6) [Show more] Type: Subroutine Category: Loader Summary: Include binaries for recursive tokens, Python blueprint and images
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file

The loader bundles a number of binary files in with the loader code, and moves them to their correct memory locations in part 3 below. There are two files containing code: * WORDS9.bin contains the recursive token table, which is moved to &0400 before the main game is loaded * PYTHON.bin contains the Python ship blueprint, which gets moved to &7F00 before the main game is loaded and four files containing images, which are all moved into screen memory by the loader: * P.A-SOFT.bin contains the "ACORNSOFT" title across the top of the loading screen, which gets moved to screen address &6100, on the second character row of the monochrome mode 4 screen * P.ELITE.bin contains the "ELITE" title across the top of the loading screen, which gets moved to screen address &6300, on the fourth character row of the monochrome mode 4 screen * P.(C)ASFT.bin contains the "(C) Acornsoft 1984" title across the bottom of the loading screen, which gets moved to screen address &7600, the penultimate character row of the monochrome mode 4 screen, just above the dashboard * P.DIALS.bin contains the dashboard, which gets moved to screen address &7800, which is the starting point of the four-colour mode 5 portion at the bottom of the split screen The routine ends with a jump to the start of the loader code at ENTRY.
PRINT "WORDS9 = ",~P% INCBIN "3-assembled-output/WORDS9.bin" ALIGN 256 PRINT "P.DIALS = ",~P% INCBIN "1-source-files/images/P.DIALS.bin" PRINT "PYTHON = ",~P% INCBIN "3-assembled-output/PYTHON.bin" PRINT "P.ELITE = ",~P% INCBIN "1-source-files/images/P.ELITE.bin" PRINT "P.A-SOFT = ",~P% INCBIN "1-source-files/images/P.A-SOFT.bin" PRINT "P.(C)ASFT = ",~P% INCBIN "1-source-files/images/P.(C)ASFT.bin" .run JMP ENTRY \ Jump to ENTRY to start the loading process
[X]
Label ENTRY in subroutine Elite loader (Part 2 of 6)