46 call WinInput.StickMoves
49 jp z,.notInMenu ; no stick events
51 call WinMenu.RedrawArrowFromIntr
53 ld a,(WinInput.joystate)
55 jp nc,.notInMenu ; return if fire isn't pressed
57 ld (intrFirePressed),a
59 call WinMenu.IsArrowInWindow
62 ld (WinMenu.lastSelectedItem),a
78 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
79 ;; ÂÅÇÁÅÍ ÐÏ ÍÅÎÀÈÅ, ÖÄ£Í "fire"
81 ;; a: selected item (or #ff ÅÖÅÌÉ ×ÎÅ ÏËÏÛËÁ)
82 ;; f,af',bc,de,hl,bc',de',hl': destroyed
86 ld (intrFirePressed),a
91 ld a,(intrFirePressed)
96 ld a,(WinMenu.lastSelectedItem)
99 jp WinMenu.RunMenuLoop
105 db WinPrint.ch_attr,0307,WinPrint.ch_rep,32,WinPrint.ch_bigspc,WinPrint.ch_attr,017
106 db 10,WinPrint.ch_center,"Window Testing",10
107 db WinPrint.ch_center,WinPrint.ch_attr,0117,"Vampire Avalon",WinPrint.ch_bigspc
108 db WinPrint.ch_attr,017,"window system testing...",10
116 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
121 db WinPrint.ch_center,"redefine",10
122 db WinPrint.ch_center,"charz",10
123 db WinPrint.ch_center,"notez",10
124 db WinPrint.ch_center,"dox",10
125 db WinPrint.ch_center,"quit",10
127 db WinPrint.ch_center,"about"
179 incbin "texts/notes.txt"
182 incbin "texts/dox.txt"
188 ld (WinArrow.saveBufAddr),hl
191 call WinInput.TestKeyShifts
193 call WinInput.TestJoyMouse ; ÜÔÏ ÏÂÑÚÁÔÅÌØÎÏ × ÓÁÍÏÍ ÎÁÞÁÌÅ
204 ; ÎÁÞÁÌØÎÏÅ ÏËÏÛËÏ ÎÁËÒÙ×ÁÅÔ ×ÅÓØ ÜËÒÁÎ
205 call WinSys.MakeFullScreen
206 ;call WinPrint.ClearWin
209 call WinPrint.PrintStrZ
217 call WinPrint.PrintStrZ
221 mainMenuDefItem: equ $+1
223 call WinMenu.InitMenu
226 call WinMenu.HideWaitRelease
227 ld (mainMenuDefItem),a
229 call WinMenu.GetTableWord
234 call WinMenu.ShowArrow
239 ; ÐÒÉÂØ£Í ÏËÏÛËÏ É ×Ù×ÁÌÉÍÓÑ
241 ; restore interrupts and basic regs
250 ;ld hl,#2758 ; for rom
261 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
262 db "VAWS",WinPrint.ch_right,"Vampire Avalon",WinPrint.ch_smallspc,WinPrint.ch_smallspc
268 db WinPrint.ch_attr,071
269 db WinPrint.ch_center,"Vampire Avalon",10
270 db WinPrint.ch_center,"window system",10
271 db WinPrint.ch_attr,070
272 db WinPrint.ch_center,"-------------",10,10
273 db "code:",WinPrint.ch_attr,071,WinPrint.ch_right,"Ketmar",10
274 db WinPrint.ch_attr,070
275 db "guest star:",WinPrint.ch_attr,072,WinPrint.ch_right,"Pete Cooke",10
276 db WinPrint.ch_attr,070,10,10
277 db WinPrint.ch_center,"ok",WinPrint.ch_right,"i"
278 db WinPrint.ch_smallspc,WinPrint.ch_smallspc,WinPrint.ch_smallspc
287 db WinPrint.ch_at,0,1," "
289 db WinPrint.ch_smallcheck," Kempston Joystick",10," "
291 db WinPrint.ch_smallcheck," Kempston Mouse",10
292 db 10,10,10,10,10,10,WinPrint.ch_center,"ok"
307 call WinPrint.PrintStrZ
310 call WinMenu.InitMenu
312 call WinMenu.HideWaitRelease
320 call WinPrint.ClearWin
324 call WinMenu.InitMenu
325 call WinMenu.HideArrow
327 ld a,(WinStick.kempston_here)
330 ld a,WinPrint.ch_smallcheck
335 ld a,WinPrint.ch_smallcheck
340 call WinPrint.PrintStrZ
341 call WinMenu.ShowArrow
343 call WinMenu.HideWaitRelease
349 ld hl,WinStick.kempston_here
356 pop hl ; don't return
364 pop hl ; don't return
375 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE ;|WinOpen.FLAG_SHADOW
376 db WinPrint.ch_center,"Pager"
379 LINES_PER_PAGE: equ 16
394 call WinPrint.PrintNL
396 call WinPrint.PrintStrZ
400 call WinMenu.WaitFirePress
401 call WinMenu.WaitFireRelease
409 call WinMenu.WaitFirePress
410 call WinMenu.WaitFireRelease
419 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
420 db WinPrint.ch_center,"Choose",WinPrint.ch_bigspc,"first",WinPrint.ch_bigspc,"char:"
425 db "#20",WinPrint.ch_bigspc,WinPrint.ch_nextp
426 db "#40",WinPrint.ch_bigspc,WinPrint.ch_nextp
427 db "#60",WinPrint.ch_bigspc,WinPrint.ch_nextp
428 db "#80",WinPrint.ch_bigspc,WinPrint.ch_nextp
429 db "#A0",WinPrint.ch_bigspc,WinPrint.ch_nextp
430 db "#C0",WinPrint.ch_bigspc,WinPrint.ch_nextp
432 db WinPrint.ch_center,"close"
436 db WinPrint.ch_at,0,3
455 call WinPrint.PrintStrZ
458 call WinMenu.InitMenu
461 call WinMenu.HideArrow
467 call WinMenu.WaitFireRelease
473 rlca:rlca:rlca:rlca:rlca ; *32
476 call WinPrint.PrintStrZ
481 call WinPrint.PrintChar
492 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
493 db WinPrint.ch_center,"New Keys"
497 db 13,"left",WinPrint.ch_nextp," ",WinPrint.ch_nextp,": ",0
498 db "right",WinPrint.ch_nextp,": ",0
499 db "up",WinPrint.ch_nextp," ",WinPrint.ch_nextp," ",WinPrint.ch_nextp,": ",0
500 db "down",WinPrint.ch_nextp,": ",0
501 db "fire",WinPrint.ch_nextp," ",WinPrint.ch_nextp,": ",0
511 ld hl,WinStick.keystick_table
512 ld de,WinStick.keystick_table+1
521 ld de,WinStick.keystick_table
523 call WinInput.WaitKeysRelease
525 call WinPrint.PrintStrZ
528 call WinStick.ReadAnyKey
530 ; check if this key already used
532 ld hl,WinStick.keystick_table
552 ld hl,WinStick.keynames
573 call WinPrint.PrintStrZ
577 call WinInput.WaitKeysRelease
584 WinSys.SaveBufAddr equ $