source/page05/initial.asm
changeset 27 5220b6f6c984
parent 24 12b896331796
child 29 1c4ed1f8d543
equal deleted inserted replaced
26:fb2b0058e568 27:5220b6f6c984
  6094 		ld		(EST), a
  6094 		ld		(EST), a
  6095 		ld		hl, p05loc_6179
  6095 		ld		hl, p05loc_6179
  6096 		call	pushErrorHandleR
  6096 		call	pushErrorHandleR
  6097 		call	p05sub_6FB2
  6097 		call	p05sub_6FB2
  6098 		jr		z, p05loc_6139
  6098 		jr		z, p05loc_6139
  6099 		call	IsFunctionMode
  6099 		call	IsFuncMode
  6100 		jr		z, p05loc_60FE
  6100 		jr		z, p05loc_60FE
  6101 		ld		a, (Xres_int)
  6101 		ld		a, (Xres_int)
  6102 		cp		1
  6102 		cp		1
  6103 		jr		nz, p05loc_6139
  6103 		jr		nz, p05loc_6139
  6104 
  6104 
  6105 p05loc_60FE:
  6105 p05loc_60FE:
  6106 		call	page0_1A2
  6106 		call	IsParametricMode
  6107 		jr		z, p05loc_6116
  6107 		jr		z, p05loc_6116
  6108 		ld		a, (CurTableCol)
  6108 		ld		a, (CurTableCol)
  6109 		cp		2
  6109 		cp		2
  6110 		jr		z, p05loc_6122
  6110 		jr		z, p05loc_6122
  6111 		bit		6, (iy+3)
  6111 		bit		6, (iy+3)
  6122 
  6122 
  6123 p05loc_6122:
  6123 p05loc_6122:
  6124 		bit		7, (iy+3)
  6124 		bit		7, (iy+3)
  6125 		jp		nz, ErrDomain
  6125 		jp		nz, ErrDomain
  6126 		call	j_RclY
  6126 		call	j_RclY
  6127 		call	page0_198
  6127 		call	IsFunctionMode
  6128 		jr		z, p05loc_6145
  6128 		jr		z, p05loc_6145
  6129 		call	RName
  6129 		call	RName
  6130 		call	j_RclVarSym
  6130 		call	j_RclVarSym
  6131 		jr		p05loc_6145
  6131 		jr		p05loc_6145
  6132 ; ---------------------------------------------------------------------------
  6132 ; ---------------------------------------------------------------------------
  6437 		ld		a, (winTop)
  6437 		ld		a, (winTop)
  6438 		ld		l, a
  6438 		ld		l, a
  6439 		ld		h, 0Dh
  6439 		ld		h, 0Dh
  6440 		call	Bit_VertSplit
  6440 		call	Bit_VertSplit
  6441 		jr		z, p05loc_62EF
  6441 		jr		z, p05loc_62EF
  6442 		call	page0_19D
  6442 		call	IsRecursiveMode
  6443 		jr		z, p05loc_62FA
  6443 		jr		z, p05loc_62FA
  6444 		ld		h, 0Ch
  6444 		ld		h, 0Ch
  6445 		jr		p05loc_62FA
  6445 		jr		p05loc_62FA
  6446 ; ---------------------------------------------------------------------------
  6446 ; ---------------------------------------------------------------------------
  6447 
  6447 
  6637 		call	j_setNumWindow
  6637 		call	j_setNumWindow
  6638 		call	p05sub_6830
  6638 		call	p05sub_6830
  6639 		jr		c, p05loc_63C5
  6639 		jr		c, p05loc_63C5
  6640 		jr		z, p05loc_63AE
  6640 		jr		z, p05loc_63AE
  6641 		ld		a, 0Bh
  6641 		ld		a, 0Bh
  6642 		call	page0_19D
  6642 		call	IsRecursiveMode
  6643 		jr		nz, p05loc_6402
  6643 		jr		nz, p05loc_6402
  6644 		inc		a
  6644 		inc		a
  6645 		call	p05sub_5EE1
  6645 		call	p05sub_5EE1
  6646 		jr		nz, p05loc_6402
  6646 		jr		nz, p05loc_6402
  6647 		inc		a
  6647 		inc		a
  6687 		ret
  6687 		ret
  6688 ; ---------------------------------------------------------------------------
  6688 ; ---------------------------------------------------------------------------
  6689 
  6689 
  6690 p05loc_6449:
  6690 p05loc_6449:
  6691 		ld		a, 9
  6691 		ld		a, 9
  6692 		call	page0_19D
  6692 		call	IsRecursiveMode
  6693 		jr		nz, p05loc_6451
  6693 		jr		nz, p05loc_6451
  6694 		inc		a
  6694 		inc		a
  6695 
  6695 
  6696 p05loc_6451:
  6696 p05loc_6451:
  6697 		bit		6, (iy+15h)
  6697 		bit		6, (iy+15h)
  6736 		call	j_setNumWindow
  6736 		call	j_setNumWindow
  6737 		call	p05sub_6830
  6737 		call	p05sub_6830
  6738 		jr		c, p05loc_6461
  6738 		jr		c, p05loc_6461
  6739 		jr		z, p05loc_6445
  6739 		jr		z, p05loc_6445
  6740 		ld		a, 7
  6740 		ld		a, 7
  6741 		call	page0_19D
  6741 		call	IsRecursiveMode
  6742 		jr		nz, p05loc_649E
  6742 		jr		nz, p05loc_649E
  6743 		inc		a
  6743 		inc		a
  6744 		call	p05sub_5EE1
  6744 		call	p05sub_5EE1
  6745 		jr		nz, p05loc_649E
  6745 		jr		nz, p05loc_649E
  6746 		inc		a
  6746 		inc		a
  6861 p05sub_6519:
  6861 p05sub_6519:
  6862 		ld		a, 6
  6862 		ld		a, 6
  6863 		call	Bit_VertSplit
  6863 		call	Bit_VertSplit
  6864 		jr		z, p05loc_6529
  6864 		jr		z, p05loc_6529
  6865 		ld		a, 0Dh
  6865 		ld		a, 0Dh
  6866 		call	page0_19D
  6866 		call	IsRecursiveMode
  6867 		jr		z, p05loc_6529
  6867 		jr		z, p05loc_6529
  6868 		ld		a, 0Ch
  6868 		ld		a, 0Ch
  6869 
  6869 
  6870 p05loc_6529:
  6870 p05loc_6529:
  6871 		ld		(curRow+1), a
  6871 		ld		(curRow+1), a
  7111 
  7111 
  7112 p05sub_664E:
  7112 p05sub_664E:
  7113 		; Page05_3195+83p ...
  7113 		; Page05_3195+83p ...
  7114 		call	Bit_VertSplit
  7114 		call	Bit_VertSplit
  7115 		jr		z, p05loc_6657
  7115 		jr		z, p05loc_6657
  7116 		call	page0_19D
  7116 		call	IsRecursiveMode
  7117 		ret		nz
  7117 		ret		nz
  7118 
  7118 
  7119 p05loc_6657:
  7119 p05loc_6657:
  7120 		set		preClrForMode, (iy+newDispF)
  7120 		set		preClrForMode, (iy+newDispF)
  7121 		ret
  7121 		ret
  7137 ; =============== S U B	R O U T	I N E =======================================
  7137 ; =============== S U B	R O U T	I N E =======================================
  7138 
  7138 
  7139 
  7139 
  7140 p05sub_6663:
  7140 p05sub_6663:
  7141 		call	j_PutTokString
  7141 		call	j_PutTokString
  7142 		call	page0_19D
  7142 		call	IsRecursiveMode
  7143 		ret		z
  7143 		ret		z
  7144 		ld		hl, unk_2690
  7144 		ld		hl, unk_2690
  7145 		call	j_PutS
  7145 		call	j_PutS
  7146 		ret
  7146 		ret
  7147 ; End of function p05sub_6663
  7147 ; End of function p05sub_6663
  7158 		ld		d, a
  7158 		ld		d, a
  7159 		call	j_GetTokLen
  7159 		call	j_GetTokLen
  7160 		ld		b, a
  7160 		ld		b, a
  7161 		inc		hl
  7161 		inc		hl
  7162 		call	j_VPutSN
  7162 		call	j_VPutSN
  7163 		call	page0_19D
  7163 		call	IsRecursiveMode
  7164 		ret		z
  7164 		ret		z
  7165 		ld		hl, unk_2690
  7165 		ld		hl, unk_2690
  7166 		call	j_VPutS
  7166 		call	j_VPutS
  7167 		ret
  7167 		ret
  7168 ; End of function p05sub_6671
  7168 ; End of function p05sub_6671
  8682 		call	p05sub_6FB2
  8682 		call	p05sub_6FB2
  8683 		jr		z, p05loc_6EB1
  8683 		jr		z, p05loc_6EB1
  8684 		bit		1, (iy+1Fh)
  8684 		bit		1, (iy+1Fh)
  8685 		jr		nz, p05loc_6E9F
  8685 		jr		nz, p05loc_6E9F
  8686 		ld		b, 1
  8686 		ld		b, 1
  8687 		call	IsFunctionMode
  8687 		call	IsFuncMode
  8688 		jr		z, p05loc_6E89
  8688 		jr		z, p05loc_6E89
  8689 		ld		a, (Xres_int)
  8689 		ld		a, (Xres_int)
  8690 		or		a
  8690 		or		a
  8691 		jr		z, p05loc_6E89
  8691 		jr		z, p05loc_6E89
  8692 		cp		9
  8692 		cp		9
  8727 		call	p05sub_6FB2
  8727 		call	p05sub_6FB2
  8728 		jr		nz, p05loc_6EF0
  8728 		jr		nz, p05loc_6EF0
  8729 
  8729 
  8730 p05loc_6EB1:
  8730 p05loc_6EB1:
  8731 		call	p05sub_6FB7
  8731 		call	p05sub_6FB7
       
  8732 		call	IsFuncMode
       
  8733 		jr		nz, p05loc_6EE1
       
  8734 		call	IsRecursiveMode
       
  8735 		jr		nz, p05loc_6ED9
  8732 		call	IsFunctionMode
  8736 		call	IsFunctionMode
  8733 		jr		nz, p05loc_6EE1
       
  8734 		call	page0_19D
       
  8735 		jr		nz, p05loc_6ED9
       
  8736 		call	page0_198
       
  8737 		jr		nz, p05loc_6ECE
  8737 		jr		nz, p05loc_6ECE
  8738 		ld		hl, Tstep
  8738 		ld		hl, Tstep
  8739 		call	p05sub_6EA6
  8739 		call	p05sub_6EA6
  8740 		ld		hl, TminPar
  8740 		ld		hl, TminPar
  8741 		jr		p05loc_6EEA
  8741 		jr		p05loc_6EEA
  8769 		call	p05sub_635B
  8769 		call	p05sub_635B
  8770 		call	j_EraseEOL
  8770 		call	j_EraseEOL
  8771 		pop		hl
  8771 		pop		hl
  8772 		ld		(curRow), hl
  8772 		ld		(curRow), hl
  8773 		call	p05sub_5EDA
  8773 		call	p05sub_5EDA
  8774 		call	page0_19D
  8774 		call	IsRecursiveMode
  8775 		jr		z, p05loc_6F45
  8775 		jr		z, p05loc_6F45
  8776 		ld		hl, 75h	; 'u'
  8776 		ld		hl, 75h	; 'u'
  8777 		call	AllocFPS1
  8777 		call	AllocFPS1
  8778 		ld		bc, 36h	; '6'
  8778 		ld		bc, 36h	; '6'
  8779 		or		a
  8779 		or		a
  8809 		call	p05loc_6E0B
  8809 		call	p05loc_6E0B
  8810 		call	settblrefs
  8810 		call	settblrefs
  8811 		call	p05sub_6FD8
  8811 		call	p05sub_6FD8
  8812 		call	p05sub_5BE9
  8812 		call	p05sub_5BE9
  8813 		set		appTextSave, (iy+appFlags)
  8813 		set		appTextSave, (iy+appFlags)
  8814 		call	page0_19D
  8814 		call	IsRecursiveMode
  8815 		jr		z, p05loc_6F83
  8815 		jr		z, p05loc_6F83
  8816 		call	PopRealO1
  8816 		call	PopRealO1
  8817 		call	j_StoN
  8817 		call	j_StoN
  8818 		ld		de, 75h	; 'u'
  8818 		ld		de, 75h	; 'u'
  8819 		ld		bc, 36h	; '6'
  8819 		ld		bc, 36h	; '6'
  9397 		ld		d, 0
  9397 		ld		d, 0
  9398 		add		ix, de
  9398 		add		ix, de
  9399 		ld		a, (ix+0)
  9399 		ld		a, (ix+0)
  9400 		cp		0FFh
  9400 		cp		0FFh
  9401 		jr		nz, p05loc_72DF
  9401 		jr		nz, p05loc_72DF
  9402 		call	page0_19D
  9402 		call	IsRecursiveMode
  9403 		jp		z, j_JForceYEqu
  9403 		jp		z, j_JForceYEqu
  9404 		call	Page0Call_3129
  9404 		call	Page0Call_3129
  9405 		ret
  9405 		ret
  9406 ; ---------------------------------------------------------------------------
  9406 ; ---------------------------------------------------------------------------
  9407 
  9407