source/page79/initial.asm
changeset 41 9ef17625274f
parent 39 4651e87022c7
child 42 adad2f097dcb
equal deleted inserted replaced
40:ba7bd14b7d7b 41:9ef17625274f
   439 		inc		hl
   439 		inc		hl
   440 		ld		(hl), 5Fh ; '_'
   440 		ld		(hl), 5Fh ; '_'
   441 		inc		hl
   441 		inc		hl
   442 		ld		(hl), 5Eh ; '^'
   442 		ld		(hl), 5Eh ; '^'
   443 		ret
   443 		ret
   444 ; End of function p79sub_42B3
   444 
   445 
   445 ClearScreen_SetupAPDFromPowerOn:
   446 
       
   447 ; =============== S U B	R O U T	I N E =======================================
       
   448 
       
   449 
       
   450 Page79_3ED9:
       
   451 		call	PreviousContext_CloseAnyOpenMenu
   446 		call	PreviousContext_CloseAnyOpenMenu
   452 		call	j_ClrScrn
   447 		call	j_ClrScrn
   453 		res		onInterrupt, (iy+onFlags)
   448 		res		onInterrupt, (iy+onFlags)
   454 		set		onRunning, (iy+onFlags)
   449 		set		onRunning, (iy+onFlags)
   455 		call	ApdSetup
   450 		call	ApdSetup
   501 		call	j_call_character_hook
   496 		call	j_call_character_hook
   502 		set		appTextSave, (iy+appFlags)
   497 		set		appTextSave, (iy+appFlags)
   503 		ret		z
   498 		ret		z
   504 
   499 
   505 p79loc_4359:
   500 p79loc_4359:
   506 		ld		hl, p79loc_443C
   501 		ld		hl, aBatteryMessage
   507 		call	p79sub_43FE
   502 		call	PutS_79
   508 		call	j_newline
   503 		call	j_newline
   509 		ld		hl, p79loc_444B
   504 		ld		hl, aAreLow
   510 		call	p79sub_43FE
   505 		call	PutS_79
   511 		call	j_newline
   506 		call	j_newline
   512 		ld		hl, p79loc_4473
   507 		ld		hl, aChangeIs
   513 		call	p79sub_43FE
   508 		call	PutS_79
   514 		call	j_newline
   509 		call	j_newline
   515 		ld		hl, p79loc_447D
   510 		ld		hl, aRequired
   516 		call	p79sub_43FE
   511 		call	PutS_79
   517 		call	j_newline
   512 		call	j_newline
   518 		ret
   513 		ret
   519 ; ---------------------------------------------------------------------------
   514 
   520 
   515 DisplayLowBattRecommendChange:
   521 Page79_3EDF:
       
   522 		call	IsEditEmpty
   516 		call	IsEditEmpty
   523 		jr		nz, p79loc_438C
   517 		jr		nz, {++}
   524 		call	j_ClrWindow
   518 		call	j_ClrWindow
   525 		res		AnsScroll, (iy+ansFlags)
   519 		res		AnsScroll, (iy+ansFlags)
   526 		jr		p79loc_4392
   520 		jr		{+}
   527 ; ---------------------------------------------------------------------------
   521 ++:		call	j_DispHead
   528 
       
   529 p79loc_438C:
       
   530 		call	j_DispHead
       
   531 		call	j_EraseEOW2
   522 		call	j_EraseEOW2
   532 
   523 +:		call	j_BufClear
   533 p79loc_4392:
       
   534 		call	j_BufClear
       
   535 		set		cmdVirgin, (iy+cmdFlags)
   524 		set		cmdVirgin, (iy+cmdFlags)
   536 		res		appTextSave, (iy+appFlags)
   525 		res		appTextSave, (iy+appFlags)
   537 		bit		localizeHookActive, (iy+hookflags3)
   526 		bit		localizeHookActive, (iy+hookflags3)
   538 		jr		z, p79loc_43AA
   527 		jr		z, {+}
   539 		ld		a, 41h ; 'A'
   528 		ld		a, 41h
   540 		call	j_call_character_hook
   529 		call	j_call_character_hook
   541 		jr		z, p79loc_43D3
   530 		jr		z, _skipBatteryMessage
   542 
   531 +:		ld		hl, aBatteryMessage
   543 p79loc_43AA:
       
   544 		ld		hl, p79loc_443C
       
   545 		ld		de, 1
   532 		ld		de, 1
   546 		call	p79sub_43FA
   533 		call	PutSDE_79
   547 		ld		de, 2
   534 		ld		de, 2
   548 		call	p79sub_43FA
   535 		call	PutSDE_79
   549 		ld		de, 4
   536 		ld		de, 4
   550 		call	p79sub_43FA
   537 		call	PutSDE_79
   551 		ld		de, 5
   538 		ld		de, 5
   552 		call	p79sub_43FA
   539 		call	PutSDE_79
   553 		ld		de, 6
   540 		ld		de, 6
   554 ; START	OF FUNCTION CHUNK FOR p79sub_4516
   541 PutSDE_CursorOn:
   555 
       
   556 p79loc_43C8:
       
   557 		; p79sub_4516-11Ej
       
   558 		ld		(curRow), de
   542 		ld		(curRow), de
   559 		res		appTextSave, (iy+appFlags)
   543 		res		appTextSave, (iy+appFlags)
   560 		call	p79sub_43FE
   544 		call	PutS_79
   561 
   545 _skipBatteryMessage:
   562 p79loc_43D3:
       
   563 		set		appTextSave, (iy+appFlags)
   546 		set		appTextSave, (iy+appFlags)
   564 		call	j_HomeUp
   547 		call	j_HomeUp
   565 		call	j_CursorOn
   548 		call	j_CursorOn
   566 		jp		page0_A26
   549 		jp		GetKey_ClearScrn_MonForceKey
   567 ; END OF FUNCTION CHUNK	FOR p79sub_4516
       
   568 ; ---------------------------------------------------------------------------
       
   569 
   550 
   570 Page79_3ECD:
   551 Page79_3ECD:
   571 		ld		hl, p79loc_4417
   552 		ld		hl, aMemCleared
   572 		ld		a, 42h ; 'B'
   553 		ld		a, 42h ;Memory Cleared
   573 		jr		p79loc_43EC
   554 		jr		DisplayClearedText
   574 ; ---------------------------------------------------------------------------
       
   575 
       
   576 Page79_3EC7:
   555 Page79_3EC7:
   577 		ld		hl, p79loc_4423
   556 		ld		hl, aRAMCleared
   578 		ld		a, 43h ; 'C'
   557 		ld		a, 43h ;RAM Cleared
   579 ; START	OF FUNCTION CHUNK FOR p79sub_4516
   558 DisplayClearedText:
   580 
       
   581 p79loc_43EC:
       
   582 		bit		localizeHookActive, (iy+hookflags3)
   559 		bit		localizeHookActive, (iy+hookflags3)
   583 		call	nz, j_call_character_hook
   560 		call	nz, j_call_character_hook
   584 		jr		nz, p79loc_43C8
   561 		jr		nz, PutSDE_CursorOn
   585 		ld		de, 205h
   562 		ld		de, 0205h
   586 		jr		p79loc_43C8
   563 		jr		PutSDE_CursorOn
   587 ; END OF FUNCTION CHUNK	FOR p79sub_4516
   564 PutSDE_79:
   588 
       
   589 ; =============== S U B	R O U T	I N E =======================================
       
   590 
       
   591 
       
   592 p79sub_43FA:
       
   593 		ld		(curRow), de
   565 		ld		(curRow), de
   594 ; End of function p79sub_43FA
   566 PutS_79:push	bc
   595 
       
   596 
       
   597 ; =============== S U B	R O U T	I N E =======================================
       
   598 
       
   599 
       
   600 p79sub_43FE:
       
   601 		push	bc
       
   602 		push	af
   567 		push	af
   603 		ld		a, (winTop+1)
   568 		ld		a, (winTop+1)
   604 		ld		b, a
   569 		ld		b, a
   605 
   570 -:		ld		a, (hl)
   606 p79loc_4404:
       
   607 		ld		a, (hl)
       
   608 		inc		hl
   571 		inc		hl
   609 		or		a
   572 		or		a
   610 		scf
   573 		scf
   611 		jr		z, p79loc_4413
   574 		jr		z, {+}
   612 		call	j_PutC
   575 		call	j_PutC
   613 		ld		a, (curRow)
   576 		ld		a, (curRow)
   614 		cp		b
   577 		cp		b
   615 		jr		c, p79loc_4404
   578 		jr		c, {-}
   616 
   579 +:		pop		bc
   617 p79loc_4413:
       
   618 		pop		bc
       
   619 		ld		a, b
   580 		ld		a, b
   620 		pop		bc
   581 		pop		bc
   621 		ret
   582 		ret
   622 ; End of function p79sub_43FE
   583 
   623 
   584 aMemCleared:
   624 p79loc_4417:
   585 		.asc 'Mem cleared',0
   625 aMemCleared:	.asc 'Mem cleared',0
   586 aRAMCleared:
   626 p79loc_4423:
   587 		.asc 'RAM cleared',0
   627 aRamCleared:	.asc 'RAM cleared',0
   588 aDefaultsSet:
   628 p79loc_442F:
   589 		.asc 'Defaults set',0
   629 aDefaultsSet:	.asc 'Defaults set',0
   590 aBatteryMessage:
   630 p79loc_443C:
   591 		.asc 'Your batteries',0
   631 aYourBatteries:	.asc 'Your batteries',0
   592 aAreLow:
   632 p79loc_444B:
   593 		.asc 'are low.',0
   633 aAreLow_:	.asc 'are low.',0
   594 		.asc 'Recommend',0
   634 aRecommend:	.asc 'Recommend',0
   595 		.asc 'change of',0
   635 aChangeOf:	.asc 'change of',0
   596 		.asc 'batteries.',0
   636 aBatteries_:	.asc 'batteries.',0
   597 aChangeIs:
   637 p79loc_4473:
   598 		.asc 'change is',0
   638 aChangeIs:	.asc 'change is',0
   599 aRequired:
   639 p79loc_447D:
   600 		.asc 'required.',0
   640 aRequired_:	.asc 'required.',0
   601 
   641 ; ---------------------------------------------------------------------------
   602 RefreshSplitGraphTableFlags:
   642 
   603 		cp		kGraph
   643 Page79_3F57:
   604 		jr		z, {+}
   644 		cp		44h ; 'D'
   605 		cp		kError
   645 		jr		z, p79loc_449B
       
   646 		cp		52h ; 'R'
       
   647 		ret		z
   606 		ret		z
   648 
   607 -:		res		DISP_ALT_STATS, (iy+NEWFLAGS3)
   649 ; =============== S U B	R O U T	I N E =======================================
   608 		res		GR_ABOVE_BELOW, (iy+GSFLAG2)
   650 
   609 		res		HaveEqual, (iy+SolvedFlag)
   651 
   610 		ret
   652 p79sub_448E:
   611 +:		call	CheckSplitFlag
   653 		res		3, (iy+15h)
   612 		jr		z, {-}
   654 		res		4, (iy+15h)
       
   655 		res		0, (iy+1Eh)
       
   656 		ret
       
   657 ; End of function p79sub_448E
       
   658 
       
   659 ; ---------------------------------------------------------------------------
       
   660 
       
   661 p79loc_449B:
       
   662 		call	CheckSplitFlag
       
   663 		jr		z, p79sub_448E
       
   664 		ld		b, a
   613 		ld		b, a
   665 		ld		a, (mcxCurApp)
   614 		ld		a, (mcxCurApp)
   666 		cp		44h ; 'D'
   615 		cp		kGraph
   667 		ret		z
   616 		ret		z
   668 		call	p79sub_448E
   617 		call	{-}
   669 		cp		43h ; 'C'
   618 		cp		kStatEd
   670 		jr		nz, p79loc_44B4
   619 		jr		nz, {+}
   671 		set		3, (iy+15h)
   620 		set		DISP_ALT_STATS, (iy+NEWFLAGS3)
   672 		jr		p79loc_44C4
   621 		jr		{++}
   673 ; ---------------------------------------------------------------------------
   622 +:		cp		kTable
   674 
   623 		jr		nz, {+}
   675 p79loc_44B4:
   624 		set		GR_ABOVE_BELOW, (iy+GSFLAG2)
   676 		cp		4Ah ; 'J'
   625 +:		cp		kYequ
   677 		jr		nz, p79loc_44BC
   626 		jr		nz, {++}
   678 		set		4, (iy+15h)
   627 		set		HaveEqual, (iy+SolvedFlag)
   679 
   628 ++:		ld		a, b
   680 p79loc_44BC:
   629 		ret
   681 		cp		49h ; 'I'
       
   682 		jr		nz, p79loc_44C4
       
   683 		set		0, (iy+1Eh)
       
   684 
       
   685 p79loc_44C4:
       
   686 		ld		a, b
       
   687 		ret
       
   688 
       
   689 ; =============== S U B	R O U T	I N E =======================================
       
   690 
       
   691 
   630 
   692 p79sub_44C6:
   631 p79sub_44C6:
   693 		ld		a, 7
   632 		ld		a, 7
   694 		ld		(unk_970E), a
   633 		ld		(unk_970E), a
   695 		sub		a
   634 		sub		a
   735 p79loc_450D:
   674 p79loc_450D:
   736 		call	popOP1
   675 		call	popOP1
   737 		ld		hl, OP1M
   676 		ld		hl, OP1M
   738 		inc		(hl)
   677 		inc		(hl)
   739 		jr		p79loc_44F1
   678 		jr		p79loc_44F1
   740 ; End of function p79sub_44C6
       
   741 
       
   742 
       
   743 ; =============== S U B	R O U T	I N E =======================================
       
   744 
       
   745 
   679 
   746 p79sub_4516:
   680 p79sub_4516:
   747 
       
   748 
       
   749 
       
   750 
       
   751 		call	RandInit
   681 		call	RandInit
   752 		call	forcecmd
   682 		call	forcecmd
   753 		set		fmtReal, (iy+numMode)
   683 		set		fmtReal, (iy+numMode)
   754 		call	Page79_3ED9
   684 		call	ClearScreen_SetupAPDFromPowerOn
   755 		call	Page0Call_3EC1
   685 		call	Page0Call_3EC1
   756 		ld		hl, p79loc_442F
   686 		ld		hl, aDefaultsSet
   757 		ld		a, 44h ; 'D'
   687 		ld		a, 44h
   758 		jp		p79loc_43EC
   688 		jp		DisplayClearedText
   759 ; End of function p79sub_4516
   689 
   760 
   690 InitResetMemContext:
   761 ; ---------------------------------------------------------------------------
       
   762 
       
   763 Page79_3A59:
       
   764 		ld		a, (keyExtend)
   691 		ld		a, (keyExtend)
   765 		cp		1
   692 		cp		1
   766 		jr		z, p79loc_45A7
   693 		jr		z, p79loc_45A7
   767 		cp		2
   694 		cp		2
   768 		jp		z, p79loc_45E5
   695 		jp		z, p79loc_45E5
   796 p79loc_4574:
   723 p79loc_4574:
   797 		set		localizeHookActive, (iy+hookflags3)
   724 		set		localizeHookActive, (iy+hookflags3)
   798 		pop		hl
   725 		pop		hl
   799 		ld		(localLanguage), hl
   726 		ld		(localLanguage), hl
   800 		ld		hl, silentLinkHookPtr
   727 		ld		hl, silentLinkHookPtr
   801 		ld		de, 9BD1h
   728 		ld		de, silentLinkHookPtr+1
   802 		ld		bc, p79loc_642F
   729 		ld		bc, 0FFFFh-silentLinkHookPtr
   803 		ld		(hl), 0
   730 		ld		(hl), 0
   804 		ldir
   731 		ldir
   805 		jp		page0_9DE
   732 		jp		page0_9DE
   806 ; ---------------------------------------------------------------------------
   733 ; ---------------------------------------------------------------------------
   807 
   734 
   838 		res		appTextSave, (iy+appFlags)
   765 		res		appTextSave, (iy+appFlags)
   839 		call	j_PutS
   766 		call	j_PutS
   840 		set		appTextSave, (iy+appFlags)
   767 		set		appTextSave, (iy+appFlags)
   841 		call	j_HomeUp
   768 		call	j_HomeUp
   842 		call	j_CursorOn
   769 		call	j_CursorOn
   843 		jp		page0_A26
   770 		jp		GetKey_ClearScrn_MonForceKey
   844 ; ---------------------------------------------------------------------------
   771 ; ---------------------------------------------------------------------------
   845 
   772 
   846 p79loc_45E5:
   773 p79loc_45E5:
   847 		call	Chk_Batt_Low
   774 		call	Chk_Batt_Low
   848 		call	z, Page0Call_2E89
   775 		call	z, Page0Call_2E89
   858 		call	Page0Call_2D39
   785 		call	Page0Call_2D39
   859 		ld		hl, aArcVarsAppsCleared
   786 		ld		hl, aArcVarsAppsCleared
   860 		jp		p79loc_45BC
   787 		jp		p79loc_45BC
   861 ; ---------------------------------------------------------------------------
   788 ; ---------------------------------------------------------------------------
   862 
   789 
   863 Page79_3A5F:
   790 InitResetDefaultContext:
   864 		call	SetFastSpeed
   791 		call	SetFastSpeed
   865 		res		extraIndic, (iy+newIndicFlags)
   792 		res		extraIndic, (iy+newIndicFlags)
   866 		res		6, (iy+24h)
   793 		res		6, (iy+24h)
   867 		res		7, (iy+24h)
   794 		res		7, (iy+24h)
   868 		res		5, (iy+24h)
   795 		res		5, (iy+24h)
  2409 		res		saIndic, (iy+newIndicFlags)
  2336 		res		saIndic, (iy+newIndicFlags)
  2410 ; START	OF FUNCTION CHUNK FOR p79sub_5695
  2337 ; START	OF FUNCTION CHUNK FOR p79sub_5695
  2411 
  2338 
  2412 p79loc_4FB3:
  2339 p79loc_4FB3:
  2413 		; p79sub_5695+197j
  2340 		; p79sub_5695+197j
  2414 		set		6, (iy+1Dh)
  2341 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  2415 		set		7, (iy+1Dh)
  2342 		set		NEED_RETABLE, (iy+VERTFLAG2)
  2416 		call	p79sub_6925
  2343 		call	p79sub_6925
  2417 		call	CancelAlpha
  2344 		call	CancelAlpha
  2418 		call	p79sub_5087
  2345 		call	p79sub_5087
  2419 		jr		p79loc_5015
  2346 		jr		p79loc_5015
  2420 ; END OF FUNCTION CHUNK	FOR p79sub_5695
  2347 ; END OF FUNCTION CHUNK	FOR p79sub_5695
  2421 ; ---------------------------------------------------------------------------
  2348 ; ---------------------------------------------------------------------------
  2422 
  2349 
  2423 p79loc_4FC6:
  2350 p79loc_4FC6:
  2424 		set		6, (iy+1Dh)
  2351 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  2425 		set		7, (iy+1Dh)
  2352 		set		NEED_RETABLE, (iy+VERTFLAG2)
  2426 		push	af
  2353 		push	af
  2427 		xor		a
  2354 		xor		a
  2428 		ld		(unk_984B), a
  2355 		ld		(unk_984B), a
  2429 		ld		(progToEdit), a
  2356 		ld		(progToEdit), a
  2430 		call	ZIfMatrixMenu
  2357 		call	ZIfMatrixMenu
  2441 
  2368 
  2442 p79loc_4FF2:
  2369 p79loc_4FF2:
  2443 		call	j_ZifRclHandler
  2370 		call	j_ZifRclHandler
  2444 		jr		z, p79loc_4FFD
  2371 		jr		z, p79loc_4FFD
  2445 		call	IsExternalApp
  2372 		call	IsExternalApp
  2446 		call	z, cxPutAway2
  2373 		call	z, cxPPutAway2
  2447 
  2374 
  2448 p79loc_4FFD:
  2375 p79loc_4FFD:
  2449 		pop		af
  2376 		pop		af
  2450 		call	CancelAlpha
  2377 		call	CancelAlpha
  2451 		call	p79sub_5087
  2378 		call	p79sub_5087
  4637 		ret
  4564 		ret
  4638 ; End of function SaveSavedFlags
  4565 ; End of function SaveSavedFlags
  4639 
  4566 
  4640 ; =============== S U B	R O U T	I N E =======================================
  4567 ; =============== S U B	R O U T	I N E =======================================
  4641 BCALL_5068:
  4568 BCALL_5068:
  4642 		bit		3, (iy+15h)
  4569 		bit		DISP_ALT_STATS, (iy+NEWFLAGS3)
  4643 		jr		nz, p79loc_5C54
  4570 		jr		nz, p79loc_5C54
  4644 		bit		0, (iy+1Eh)
  4571 		bit		HaveEqual, (iy+SolvedFlag)
  4645 		jr		nz, p79loc_5C98
  4572 		jr		nz, p79loc_5C98
  4646 		bit		4, (iy+15h)
  4573 		bit		GR_ABOVE_BELOW, (iy+GSFLAG2)
  4647 		ret		z
  4574 		ret		z
  4648 		jp		p79loc_5CD1
  4575 		jp		p79loc_5CD1
  4649 ; End of function BCALL_5068
  4576 ; End of function BCALL_5068
  4650 
  4577 
  4651 
  4578 
  4751 		ret		z
  4678 		ret		z
  4752 		cp		44h ; 'D'
  4679 		cp		44h ; 'D'
  4753 		ret		nz
  4680 		ret		nz
  4754 
  4681 
  4755 p79loc_5CD1:
  4682 p79loc_5CD1:
  4756 		; SetMenuFlags+85j
       
  4757 		bit		vertSplit, (iy+sGrFlags)
  4683 		bit		vertSplit, (iy+sGrFlags)
  4758 		jr		z, p79loc_5CE5
  4684 		jr		z, p79loc_5CE5
  4759 		call	j_GrBufCpy
  4685 		call	j_GrBufCpy
  4760 		ld		hl, (curRow)
  4686 		ld		hl, (curRow)
  4761 		push	hl
  4687 		push	hl
  7886 ; ---------------------------------------------------------------------------
  7812 ; ---------------------------------------------------------------------------
  7887 
  7813 
  7888 p79loc_69C5:
  7814 p79loc_69C5:
  7889 		call	p79sub_6ECD
  7815 		call	p79sub_6ECD
  7890 
  7816 
  7891 Page79_3AA1:
  7817 InitUngroupContext:
  7892 		xor		a
  7818 		xor		a
  7893 		ld		(ioFlag), a
  7819 		ld		(ioFlag), a
  7894 		ld		(winTop), a
  7820 		ld		(winTop), a
  7895 		ld		(varClass), a
  7821 		ld		(varClass), a
  7896 		ld		(sndRecState), a
  7822 		ld		(sndRecState), a
  8072 		ld		bc, (arcPtr)
  7998 		ld		bc, (arcPtr)
  8073 		ld		hl, (unk_8390)
  7999 		ld		hl, (unk_8390)
  8074 		or		a
  8000 		or		a
  8075 		sbc		hl, bc
  8001 		sbc		hl, bc
  8076 		call	EnoughMem
  8002 		call	EnoughMem
  8077 		jp		c, Page0Call_24F9
  8003 		jp		c, ErrMemory_NoGoTo
  8078 		ld		a, (arcPage)
  8004 		ld		a, (arcPage)
  8079 		ld		hl, (arcPtr)
  8005 		ld		hl, (arcPtr)
  8080 		call	Page0Call_23FA
  8006 		call	Page0Call_23FA
  8081 		jr		nc, p79loc_6B52
  8007 		jr		nc, p79loc_6B52
  8082 		inc		a
  8008 		inc		a
  8388 ; ---------------------------------------------------------------------------
  8314 ; ---------------------------------------------------------------------------
  8389 
  8315 
  8390 p79loc_6DB8:
  8316 p79loc_6DB8:
  8391 		ld		hl, (unk_83F1)
  8317 		ld		hl, (unk_83F1)
  8392 		call	page0_1F38
  8318 		call	page0_1F38
  8393 		jp		Page0Call_24F9
  8319 		jp		ErrMemory_NoGoTo
  8394 ; ---------------------------------------------------------------------------
  8320 ; ---------------------------------------------------------------------------
  8395 
  8321 
  8396 p79loc_6DC1:
  8322 p79loc_6DC1:
  8397 		ld		a, (mcxCurApp)
  8323 		ld		a, (mcxCurApp)
  8398 		cp		5Ah ; 'Z'
  8324 		cp		5Ah ; 'Z'
  8399 		jp		z, p79loc_69C5
  8325 		jp		z, p79loc_69C5
  8400 		call	p79sub_6ECD
  8326 		call	p79sub_6ECD
  8401 
  8327 
  8402 Page79_3A9B:
  8328 InitGroupContext:
  8403 		xor		a
  8329 		xor		a
  8404 		ld		(basic_prog), a
  8330 		ld		(basic_prog), a
  8405 		ld		a, (basic_prog)
  8331 		ld		a, (basic_prog)
  8406 		res		curLock, (iy+curFlags)
  8332 		res		curLock, (iy+curFlags)
  8407 		ld		hl, p79loc_6DE3
  8333 		ld		hl, p79loc_6DE3