5 FIXUP_NATURAL_ORG EQU #6000
6 IF defined(USE_FIXUPS) && USE_FIXUPS
7 include <fixup/fixupheader.zas>
8 include <fixup/dofixup.zas>
16 IF defined(USE_IM2) && USE_IM2
35 _wslen: equ ($-_wsstart)|0
36 display "winsys size: ", _wslen, " bytes\n"
38 IF defined(USE_IM2) && USE_IM2
57 call WinInput.StickMoves
60 jp z,.notInMenu ; no stick events
62 call WinMenu.RedrawArrowFromIntr
64 ld a,(WinInput.joystate)
66 jp nc,.notInMenu ; return if fire isn't pressed
68 ld (intrFirePressed),a
70 call WinMenu.IsArrowInWindow
73 ld (WinMenu.lastSelectedItem),a
89 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
90 ;; ÂÅÇÁÅÍ ÐÏ ÍÅÎÀÈÅ, ÖÄ£Í "fire"
92 ;; a: selected item (or #ff ÅÖÅÌÉ ×ÎÅ ÏËÏÛËÁ)
93 ;; f,af',bc,de,hl,bc',de',hl': destroyed
95 IF defined(USE_IM2) && USE_IM2
97 ld (intrFirePressed),a
102 ld a,(intrFirePressed)
107 ld a,(WinMenu.lastSelectedItem)
110 jp WinMenu.RunMenuLoop
116 db WinPrint.ch_attr,0307
117 db WinPrint.ch_rep,32,WinPrint.ch_bigspc
118 db WinPrint.ch_at,0,0
119 db " File ",WinPrint.ch_nextp
120 db " Edit ",WinPrint.ch_nextp
121 db " View ",WinPrint.ch_nextp
122 db " Tools",WinPrint.ch_nextp
123 db WinPrint.ch_right," Help "
124 db WinPrint.ch_attr,017
125 db 10,WinPrint.ch_center,"Window Testing",10
126 db WinPrint.ch_center,WinPrint.ch_attr,0117,"Invisible Vector",WinPrint.ch_bigspc
127 db WinPrint.ch_attr,017,"window system testing...",10
135 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
140 db WinPrint.ch_center,"redefine",10
141 db WinPrint.ch_center,"charz",10
142 db WinPrint.ch_center,"notez",10
143 db WinPrint.ch_center,"readstr",10
144 db WinPrint.ch_center,"close",10
146 db WinPrint.ch_center,"about"
198 incbin "texts/notes.txt"
204 ld (WinArrow.saveBufAddr),hl
207 call WinInput.TestKeyShifts
209 halt ; ÞÔÏÂÙ ÐÌÁ×ÁÀÝÁÑ ÛÉÎÁ ÎÅ ÎÁÓÒÁÌÁ
210 call WinInput.TestJoyMouse ; ÜÔÏ ÏÂÑÚÁÔÅÌØÎÏ × ÓÁÍÏÍ ÎÁÞÁÌÅ
219 ; ÎÁÞÁÌØÎÏÅ ÏËÏÛËÏ ÎÁËÒÙ×ÁÅÔ ×ÅÓØ ÜËÒÁÎ
220 call WinSys.MakeFullScreen
221 ;call WinPrint.ClearWin
224 call WinPrint.PrintStrZ
232 call WinPrint.PrintStrZ
236 mainMenuDefItem: equ $+1
238 call WinMenu.InitMenu
241 call WinMenu.HideWaitRelease
242 ld (mainMenuDefItem),a
244 call WinMenu.GetTableWord
249 call WinMenu.ShowArrow
258 ; restore interrupts and basic regs
270 call WinMenu.InitMenu
290 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
291 db WinPrint.ch_center,"input string"
295 db WinPrint.ch_center
304 call WinPrint.PrintNL
306 call WinPrint.PrintChar
309 call WinInput.ReadStrZ
311 call WinPrint.ClearWin
313 call WinPrint.PrintStrZ
314 call WinMenu.WaitFirePress
315 call WinMenu.WaitFireRelease
325 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
326 db "VAWS",WinPrint.ch_right,"Invisible Vector",WinPrint.ch_smallspc,WinPrint.ch_smallspc
333 db WinPrint.ch_attr,071
334 db WinPrint.ch_center,"Invisible Vector",10
335 db WinPrint.ch_center,"window system",10
336 db WinPrint.ch_attr,070
337 db WinPrint.ch_center,"-------------",10,10
338 db "code:",WinPrint.ch_attr,071,WinPrint.ch_right,"Ketmar",10
339 db WinPrint.ch_attr,070
340 db "guest star:",WinPrint.ch_attr,072,WinPrint.ch_right,"Pete Cooke",10
341 db WinPrint.ch_attr,070,10,10
342 db WinPrint.ch_center,"ok",WinPrint.ch_right,"i"
343 db WinPrint.ch_smallspc,WinPrint.ch_smallspc,WinPrint.ch_smallspc
352 db WinPrint.ch_at,0,1," "
354 db WinPrint.ch_smallcheck," Kempston Joystick",10," "
356 db WinPrint.ch_smallcheck," Kempston Mouse",10
357 db 10,10,10,10,10,10,WinPrint.ch_center,"ok"
372 call WinPrint.PrintStrZ
375 call WinMenu.InitMenu
377 call WinMenu.HideWaitRelease
385 call WinPrint.ClearWin
389 call WinMenu.InitMenu
390 call WinMenu.HideArrow
392 ld a,(WinStick.kempston_here)
395 ld a,WinPrint.ch_smallcheck
400 ld a,WinPrint.ch_smallcheck
405 call WinPrint.PrintStrZ
406 call WinMenu.ShowArrow
408 call WinMenu.HideWaitRelease
414 ld hl,WinStick.kempston_here
421 pop hl ; don't return
432 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE ;|WinOpen.FLAG_SHADOW
433 db WinPrint.ch_center,"Pager"
436 LINES_PER_PAGE: equ 16
453 call WinPrint.PrintNL
455 call WinPrint.PrintStrZ
460 call WinMenu.WaitFirePress
461 call WinMenu.WaitFireRelease
474 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
475 db WinPrint.ch_center,"Choose",WinPrint.ch_bigspc,"first",WinPrint.ch_bigspc,"char:"
480 db "#20",WinPrint.ch_bigspc,WinPrint.ch_nextp
481 db "#40",WinPrint.ch_bigspc,WinPrint.ch_nextp
482 db "#60",WinPrint.ch_bigspc,WinPrint.ch_nextp
483 db "#80",WinPrint.ch_bigspc,WinPrint.ch_nextp
484 db "#A0",WinPrint.ch_bigspc,WinPrint.ch_nextp
485 db "#C0",WinPrint.ch_bigspc,WinPrint.ch_nextp
487 db WinPrint.ch_center,"close"
491 db WinPrint.ch_at,0,3
510 call WinPrint.PrintStrZ
513 call WinMenu.InitMenu
516 call WinMenu.HideArrow
522 call WinMenu.WaitFireRelease
528 rlca:rlca:rlca:rlca:rlca ; *32
531 call WinPrint.PrintStrZ
536 call WinPrint.PrintChar
547 db WinOpen.FLAG_FRAME|WinOpen.FLAG_SAVE|WinOpen.FLAG_SHADOW
548 db WinPrint.ch_center,"New Keys"
553 db WinPrint.ch_at,0,1
554 db "left",WinPrint.ch_nextp," ",WinPrint.ch_nextp,": ",0
555 db "right",WinPrint.ch_nextp,": ",0
556 db "up",WinPrint.ch_nextp," ",WinPrint.ch_nextp," ",WinPrint.ch_nextp,": ",0
557 db "down",WinPrint.ch_nextp,": ",0
558 db "fire",WinPrint.ch_nextp," ",WinPrint.ch_nextp,": ",0
559 db WinPrint.ch_center,"ok (Y/N)?",0
572 ld hl,WinStick.keystick_table
573 ld de,WinStick.keystick_table+1
580 ; first print all selections
583 call WinPrint.PrintStrZ
584 call WinPrint.PrintNL
589 ld de,WinStick.keystick_table
591 call WinInput.WaitKeysRelease
593 call WinPrint.PrintStrZ
596 call WinStick.ReadAnyKey
598 ; check if this key already used
600 ld hl,WinStick.keystick_table
620 ld hl,WinStick.keynames
641 call WinPrint.PrintStrZ
645 call WinInput.WaitKeysRelease
646 call WinPrint.PrintStrZ
649 call WinInput.WaitKeysRelease
655 WinSys.SaveBufAddr equ $
657 IF defined(USE_FIXUPS) && USE_FIXUPS
658 include <fixup/fixupfooter.zas>