1 OPT_USE_KEMPSTON_JOYSTICK EQU 1
4 OPT_DEFAULT_ATTR EQU 016
5 OPT_CURSOR_ATTR EQU 026
7 IFX !OPT_USE_KEMPSTON_JOYSTICK && OPT_BOLD_FONT
16 db #62,#6F,#6F,#74,#20,#20,#20,#20,#42,#FC,#00,#FC,#00,#00,#01,#D8,#73
23 db #E7,#BC,#A7,":" ; border sgn pi
25 db #F9,#C0,#B0,#22 ; randomize usr val "23907"
35 db #EA,":",#F7,#22 ; rem : run "
37 db 23,9,32,"POLTERGEYST"
45 ld (iy+#53),OPT_DEFAULT_ATTR
46 call #0D6B ; clear screen
47 ; now: bc=#1721;de=0;hl=#50E0
51 call #3D13 ; load dir; addr=#6801
63 pop hl ; directory address
69 jr z,.next_file ; #1: erased file
71 jr z,.dir_done ; end of dir
77 jr nz,.next_file; not a basic...
78 ; print file name & copy it (thus compacting dir)
88 ld hl,#70D1 ; file counter
92 sub 3 ; 3 names in a line
123 ld hl,#57F5 ; 22528-11
124 xor a ; temporary counter
129 add hl,de ; next file name attrs
130 cp c ; was the counter hit?
131 jr z,show_cursor ; tan, draw the cursor
132 inc a ; increase temp.counter
133 djnz .line_attr_loop ; next name in the line
137 ; erase old cursor; draw new one
139 ld b,10 ; cursor width
140 ld de,(#70D3) ; old cursor address
141 ld (#70D3),hl ; store new address
142 ld a,OPT_DEFAULT_ATTR
144 ld (de),a ; erase old
146 ld (hl),OPT_CURSOR_ATTR
163 IFX OPT_USE_KEMPSTON_JOYSTICK
164 ; test kempston joystick
225 ;DISPLAY $-boot_code_start,"\n"
226 boot_padding equ 252-($-boot_code_start)
227 DISPLAY boot_padding, " free bytes left\n"
232 ; tr-dos autostart info