source/page03/initial.asm
changeset 41 9ef17625274f
parent 40 ba7bd14b7d7b
child 42 adad2f097dcb
equal deleted inserted replaced
40:ba7bd14b7d7b 41:9ef17625274f
  1100 		call	j_OP1toEdit
  1100 		call	j_OP1toEdit
  1101 
  1101 
  1102 dispVarVal:
  1102 dispVarVal:
  1103 		jr		nc, Page03_3741
  1103 		jr		nc, Page03_3741
  1104 		call	releaseBuffer
  1104 		call	releaseBuffer
  1105 		jp		Page0Call_24F9
  1105 		jp		ErrMemory_NoGoTo
  1106 ; ---------------------------------------------------------------------------
  1106 ; ---------------------------------------------------------------------------
  1107 
  1107 
  1108 Page03_3741:
  1108 Page03_3741:
  1109 		call	j_BufToTop
  1109 		call	j_BufToTop
  1110 		call	j_fdispEOL
  1110 		call	j_fdispEOL
  1124 		or		a
  1124 		or		a
  1125 		ret		z
  1125 		ret		z
  1126 		call	j_MinToEdit
  1126 		call	j_MinToEdit
  1127 		jr		nc, p03loc_463F
  1127 		jr		nc, p03loc_463F
  1128 		call	releaseBuffer
  1128 		call	releaseBuffer
  1129 		jp		Page0Call_24F9
  1129 		jp		ErrMemory_NoGoTo
  1130 ; ---------------------------------------------------------------------------
  1130 ; ---------------------------------------------------------------------------
  1131 
  1131 
  1132 p03loc_463F:
  1132 p03loc_463F:
  1133 		call	j_BufToTop
  1133 		call	j_BufToTop
  1134 		call	j_fdispEOL
  1134 		call	j_fdispEOL
  1157 ; =============== S U B	R O U T	I N E =======================================
  1157 ; =============== S U B	R O U T	I N E =======================================
  1158 
  1158 
  1159 
  1159 
  1160 createNumEditBuf:
  1160 createNumEditBuf:
  1161 		call	releaseBuffer
  1161 		call	releaseBuffer
  1162 		ld		hl, Page0Call_24F9
  1162 		ld		hl, ErrMemory_NoGoTo
  1163 		call	pushErrorHandleR
  1163 		call	pushErrorHandleR
  1164 		ld		hl, 14h
  1164 		ld		hl, 14h
  1165 		call	CreateEqu
  1165 		call	CreateEqu
  1166 		call	popErrorHandleR
  1166 		call	popErrorHandleR
  1167 		ret
  1167 		ret
  1194 		cp		49h ; 'I'
  1194 		cp		49h ; 'I'
  1195 		ret		z
  1195 		ret		z
  1196 		call	p03sub_4B7F
  1196 		call	p03sub_4B7F
  1197 		ld		a, (mcxCurApp)
  1197 		ld		a, (mcxCurApp)
  1198 		cp		48h ; 'H'
  1198 		cp		48h ; 'H'
  1199 		jp		z, Page03_3A35
  1199 		jp		z, InitWindowContext
  1200 		cp		51h ; 'Q'
  1200 		cp		51h ; 'Q'
  1201 		jp		z, Page03_3A6B
  1201 		jp		z, InitZoomContext
  1202 		cp		4Bh ; 'K'
  1202 		cp		4Bh ; 'K'
  1203 		jp		z, Page03_3A47
  1203 		jp		z, InitTableSetContext
  1204 		cp		53h ; 'S'
  1204 		cp		53h ; 'S'
  1205 		jp		z, Page03_3A77
  1205 		jp		z, InitTVMContext
  1206 
  1206 
  1207 p03loc_46B4:
  1207 p03loc_46B4:
  1208 		cp		5
  1208 		cp		5
  1209 		jr		z, p03loc_46BD
  1209 		jr		z, p03loc_46BD
  1210 		cp		4
  1210 		cp		4
  2317 		call	j_fdispEOL
  2317 		call	j_fdispEOL
  2318 		ret
  2318 		ret
  2319 p03loc_4CBD:
  2319 p03loc_4CBD:
  2320 		call	j_CloseEditEqu
  2320 		call	j_CloseEditEqu
  2321 		call	releaseBuffer
  2321 		call	releaseBuffer
  2322 		jp		Page0Call_24F9
  2322 		jp		ErrMemory_NoGoTo
  2323 ; ---------------------------------------------------------------------------
  2323 ; ---------------------------------------------------------------------------
  2324 
  2324 
  2325 Page03_380D:
  2325 Page03_380D:
  2326 		push	hl
  2326 		push	hl
  2327 		ld		hl, (chkDelPtr1)
  2327 		ld		hl, (chkDelPtr1)
  2546 		ex		de, hl
  2546 		ex		de, hl
  2547 		ld		hl, (OPS)
  2547 		ld		hl, (OPS)
  2548 		ld		(editTail), hl
  2548 		ld		(editTail), hl
  2549 		ld		(editBtm), hl
  2549 		ld		(editBtm), hl
  2550 		call	CpHLDE
  2550 		call	CpHLDE
  2551 		jp		c, Page0Call_24F9
  2551 		jp		c, ErrMemory_NoGoTo
  2552 		ld		de, ioPrompt
  2552 		ld		de, ioPrompt
  2553 		call	MovFrOP1
  2553 		call	MovFrOP1
  2554 		ld		hl, ioPrompt
  2554 		ld		hl, ioPrompt
  2555 		ld		a, (hl)
  2555 		ld		a, (hl)
  2556 		and		1Fh
  2556 		and		1Fh
  4651 		.db		0
  4651 		.db		0
  4652 		.db		0
  4652 		.db		0
  4653 		.db		0
  4653 		.db		0
  4654 ; ---------------------------------------------------------------------------
  4654 ; ---------------------------------------------------------------------------
  4655 
  4655 
  4656 Page03_3A4D:
  4656 InitAboutContext:
  4657 		ld		hl, p03loc_569D
  4657 		ld		hl, p03loc_569D
  4658 		call	AppInit
  4658 		call	AppInit
  4659 		call	j_CleanAll
  4659 		call	j_CleanAll
  4660 		set		grfSplitOverride, (iy+sGrFlags)
  4660 		set		grfSplitOverride, (iy+sGrFlags)
  4661 
  4661 
  4690 		ret
  4690 		ret
  4691 p03loc_56B7:
  4691 p03loc_56B7:
  4692 		jp		JForceCmdNoChar
  4692 		jp		JForceCmdNoChar
  4693 p03loc_56BA:
  4693 p03loc_56BA:
  4694 		cp		27h ; '''
  4694 		cp		27h ; '''
  4695 		jp		z, Page03_3A4D
  4695 		jp		z, InitAboutContext
  4696 		cp		9
  4696 		cp		9
  4697 		jp		z, JForceCmdNoChar
  4697 		jp		z, JForceCmdNoChar
  4698 		cp		5Ah ; 'Z'
  4698 		cp		5Ah ; 'Z'
  4699 		ret		c
  4699 		ret		c
  4700 		jp		JForceCmd
  4700 		jp		JForceCmd
  4703 		ld		hl, p03loc_5814
  4703 		ld		hl, p03loc_5814
  4704 		call	AppInit
  4704 		call	AppInit
  4705 		ret
  4705 		ret
  4706 ; ---------------------------------------------------------------------------
  4706 ; ---------------------------------------------------------------------------
  4707 
  4707 
  4708 Page03_3A77:
  4708 InitTVMContext:
  4709 		res		1, (iy+19h)
  4709 		res		1, (iy+19h)
  4710 		set		grfSplitOverride, (iy+sGrFlags)
  4710 		set		grfSplitOverride, (iy+sGrFlags)
  4711 		call	RESETWINTOP
  4711 		call	RESETWINTOP
  4712 		bit		prgmEdit, (iy+prgmFlags)
  4712 		bit		prgmEdit, (iy+prgmFlags)
  4713 		jr		z, p03loc_56F0
  4713 		jr		z, p03loc_56F0
  4714 		call	j_POPCX
  4714 		call	j_POPCX
  4715 		call	cxPPutAway
  4715 		call	call_cxPutAway
  4716 		ld		a, 53h ; 'S'
  4716 		ld		a, 53h ; 'S'
  4717 		ld		(mcxCurApp), a
  4717 		ld		(mcxCurApp), a
  4718 
  4718 
  4719 p03loc_56F0:
  4719 p03loc_56F0:
  4720 		ld		hl, p03loc_5814
  4720 		ld		hl, p03loc_5814
  4727 		call	j_SolveDisp
  4727 		call	j_SolveDisp
  4728 		call	Page03_372F
  4728 		call	Page03_372F
  4729 		ret
  4729 		ret
  4730 ; ---------------------------------------------------------------------------
  4730 ; ---------------------------------------------------------------------------
  4731 
  4731 
  4732 Page03_3A35:
  4732 InitWindowContext:
  4733 		bit		prgmEdit, (iy+prgmFlags)
  4733 		bit		prgmEdit, (iy+prgmFlags)
  4734 		jr		z, JForceWindowSettings
  4734 		jr		z, JForceWindowSettings
  4735 		call	j_POPCX
  4735 		call	j_POPCX
  4736 		call	cxPPutAway
  4736 		call	call_cxPutAway
  4737 		ld		a, 48h ; 'H'
  4737 		ld		a, 48h ; 'H'
  4738 		ld		(mcxCurApp), a
  4738 		ld		(mcxCurApp), a
  4739 
  4739 
  4740 JForceWindowSettings:
  4740 JForceWindowSettings:
  4741 		call	page0_176F
  4741 		call	page0_176F
  4795 		ret
  4795 		ret
  4796 ; End of function p03sub_5779
  4796 ; End of function p03sub_5779
  4797 
  4797 
  4798 ; ---------------------------------------------------------------------------
  4798 ; ---------------------------------------------------------------------------
  4799 
  4799 
  4800 Page03_3A6B:
  4800 InitZoomContext:
  4801 		ld		hl, p03loc_5814
  4801 		ld		hl, p03loc_5814
  4802 		call	AppInit
  4802 		call	AppInit
  4803 		call	page0_176F
  4803 		call	page0_176F
  4804 		ld		hl, p03loc_5970
  4804 		ld		hl, p03loc_5970
  4805 		ld		a, 12h
  4805 		ld		a, 12h
  4813 		call	p03sub_5779
  4813 		call	p03sub_5779
  4814 		call	Page03_372F
  4814 		call	Page03_372F
  4815 		ret
  4815 		ret
  4816 ; ---------------------------------------------------------------------------
  4816 ; ---------------------------------------------------------------------------
  4817 
  4817 
  4818 Page03_3A47:
  4818 InitTableSetContext:
  4819 		bit		prgmEdit, (iy+prgmFlags)
  4819 		bit		prgmEdit, (iy+prgmFlags)
  4820 		jp		nz, Page0Call_35F7
  4820 		jp		nz, Page0Call_35F7
  4821 		call	InitNumVec
  4821 		call	InitNumVec
  4822 		set		grfSplitOverride, (iy+sGrFlags)
  4822 		set		grfSplitOverride, (iy+sGrFlags)
  4823 		ld		hl, p03loc_5964
  4823 		ld		hl, p03loc_5964
  6418 
  6418 
  6419 ZmStats:
  6419 ZmStats:
  6420 		call	j_COPYRNG
  6420 		call	j_COPYRNG
  6421 		call	Bit_VertSplit
  6421 		call	Bit_VertSplit
  6422 		jr		z, p03loc_6019
  6422 		jr		z, p03loc_6019
  6423 		bit		7, (iy+1Dh)
  6423 		bit		NEED_RETABLE, (iy+VERTFLAG2)
  6424 		call	nz, j_DSPGRTBL
  6424 		call	nz, j_DSPGRTBL
  6425 		res		2, (iy+1Fh)
  6425 		res		2, (iy+1Fh)
  6426 
  6426 
  6427 p03loc_6019:
  6427 p03loc_6019:
  6428 		ld		hl, 2Dh	; '-'
  6428 		ld		hl, 2Dh	; '-'
  9232 ; ---------------------------------------------------------------------------
  9232 ; ---------------------------------------------------------------------------
  9233 
  9233 
  9234 p03loc_70AE:
  9234 p03loc_70AE:
  9235 		call	p03sub_748F
  9235 		call	p03sub_748F
  9236 
  9236 
  9237 Page03_3A89:
  9237 InitInfStatEditorContext:
  9238 		ld		a, (keyExtend)
  9238 		ld		a, (keyExtend)
  9239 		call	p03sub_7CBB
  9239 		call	p03sub_7CBB
  9240 		jr		z, p03loc_70BF
  9240 		jr		z, p03loc_70BF
  9241 		set		4, a
  9241 		set		4, a
  9242 		set		4, (iy+1Ch)
  9242 		set		4, (iy+1Ch)
  9243 
  9243 
  9244 p03loc_70BF:
  9244 p03loc_70BF:
  9245 		ld		(unk_8D0A), a
  9245 		ld		(unk_8D0A), a
  9246 		ld		hl, p03loc_7650
  9246 		ld		hl, p03loc_7650
  9247 		call	page0_7C1
  9247 		call	AppInitEnoughMem50
  9248 		set		grfSplitOverride, (iy+sGrFlags)
  9248 		set		grfSplitOverride, (iy+sGrFlags)
  9249 
  9249 
  9250 p03loc_70CC:
  9250 p03loc_70CC:
  9251 		call	p03sub_71FC
  9251 		call	p03sub_71FC
  9252 		inc		hl
  9252 		inc		hl
  9852 
  9852 
  9853 p03loc_74A0:
  9853 p03loc_74A0:
  9854 		call	p03sub_4B7F
  9854 		call	p03sub_4B7F
  9855 
  9855 
  9856 p03loc_74A3:
  9856 p03loc_74A3:
  9857 		call	page0_740
  9857 		call	ResetPromptEditFlag
  9858 		call	p03sub_7474
  9858 		call	p03sub_7474
  9859 		res		grfSplitOverride, (iy+sGrFlags)
  9859 		res		grfSplitOverride, (iy+sGrFlags)
  9860 ; End of function p03sub_748F
  9860 ; End of function p03sub_748F
  9861 
  9861 
  9862 
  9862