Prev: 23635 Up: Map
23755: BASIC loader
The BASIC loader is set to auto-run from line 0, and does the following:
  • sets the RAMTOP system variable to 26200
  • loads the loading screen
  • loads the main game code (39290 bytes to address 26240)
  • jumps to the start of the initialisation code
After loading the loading screen, the printing position is set to 6,1. This is intended to ensure that the printing of the main code's block type and name does not corrupt the loading screen. Unfortunately that is exactly what it does. Setting the printing position to 5,1 instead will resolve this issue.
23755 DEFB 0,10,22,0,253,50,54,50
  10 CLEAR 26200: BORDER 0
  20 LOAD "KT$"SCREEN$ 
  30 PAPER 0: INK 0: PRINT AT 6,1: LOAD ""CODE 
  40 RANDOMIZE USR 26624
23763 DEFB 48,48,14,0,0,88,102,0
23771 DEFB 58,231,48,14,0,0,0,0
23779 DEFB 0,13,0,20,8,0,239,34
23787 DEFB 75,84,36,34,170,13,0,30
23795 DEFB 41,0,218,48,14,0,0,0
23803 DEFB 0,0,58,217,48,14,0,0
23811 DEFB 0,0,0,58,245,172,54,14
23819 DEFB 0,0,6,0,0,44,49,14
23827 DEFB 0,0,1,0,0,58,239,34
23835 DEFB 34,175,13,0,40,14,0,249
23843 DEFB 192,50,54,54,50,52,14,0
23851 DEFB 0,0,104,0,13
Prev: 23635 Up: Map