source/page04/initial.asm
changeset 41 9ef17625274f
parent 38 a4c5f839b738
child 43 486c42a314bc
equal deleted inserted replaced
40:ba7bd14b7d7b 41:9ef17625274f
  1084 		ret
  1084 		ret
  1085 ; End of function p04sub_449A
  1085 ; End of function p04sub_449A
  1086 
  1086 
  1087 ; ---------------------------------------------------------------------------
  1087 ; ---------------------------------------------------------------------------
  1088 
  1088 
  1089 Page04_3A1D:
  1089 InitGraphContext:
  1090 		ld		b, a
  1090 		ld		b, a
  1091 		ld		a, 0
  1091 		ld		a, 0
  1092 		bit		graphHookActive, (iy+hookflags3)
  1092 		bit		graphHookActive, (iy+hookflags3)
  1093 		call	nz, Page0Call_330F
  1093 		call	nz, Page0Call_330F
  1094 		push	bc
  1094 		push	bc
  1846 		jr		z, p04loc_4956
  1846 		jr		z, p04loc_4956
  1847 		bit		grfNoCoord, (iy+grfDBFlags)
  1847 		bit		grfNoCoord, (iy+grfDBFlags)
  1848 		ret		nz
  1848 		ret		nz
  1849 
  1849 
  1850 p04loc_4956:
  1850 p04loc_4956:
  1851 		set		6, (iy+1Dh)
  1851 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  1852 		call	IsFunctionMode
  1852 		call	IsFunctionMode
  1853 		jr		z, p04loc_498D
  1853 		jr		z, p04loc_498D
  1854 		bit		allowCursor, (iy+plotFlags)
  1854 		bit		allowCursor, (iy+plotFlags)
  1855 		jr		z, p04loc_498D
  1855 		jr		z, p04loc_498D
  1856 		bit		3, (iy+2)
  1856 		bit		3, (iy+2)
  2830 ; =============== S U B	R O U T	I N E =======================================
  2830 ; =============== S U B	R O U T	I N E =======================================
  2831 
  2831 
  2832 
  2832 
  2833 p04sub_4FB9:
  2833 p04sub_4FB9:
  2834 		call	p04sub_4FEC
  2834 		call	p04sub_4FEC
  2835 		set		6, (iy+1Dh)
  2835 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  2836 		set		7, (iy+1Dh)
  2836 		set		NEED_RETABLE, (iy+VERTFLAG2)
  2837 		bit		2, (iy+17h)
  2837 		bit		2, (iy+17h)
  2838 		jr		p04loc_4FCA
  2838 		jr		p04loc_4FCA
  2839 
  2839 
  2840 p04loc_4FCA:
  2840 p04loc_4FCA:
  2841 		ld		hl, aX
  2841 		ld		hl, aX
  4914 		call	p04sub_4596
  4914 		call	p04sub_4596
  4915 		call	j_CursorOff
  4915 		call	j_CursorOff
  4916 		res		monAbandon, (iy+monFlags)
  4916 		res		monAbandon, (iy+monFlags)
  4917 		res		write_on_graph, (iy+sGrFlags)
  4917 		res		write_on_graph, (iy+sGrFlags)
  4918 		res		2, (iy+17h)
  4918 		res		2, (iy+17h)
  4919 		set		7, (iy+1Dh)
  4919 		set		NEED_RETABLE, (iy+VERTFLAG2)
  4920 		jr		RSTGFLAGS
  4920 		jr		RSTGFLAGS
  4921 ; ---------------------------------------------------------------------------
  4921 ; ---------------------------------------------------------------------------
  4922 p04loc_5CCC:
  4922 p04loc_5CCC:
  4923 GRPPutAway:
  4923 GRPPutAway:
  4924 		bit		promptEdit, (iy+promptFlags)
  4924 		bit		promptEdit, (iy+promptFlags)
  5411 		ld		hl, p04loc_6094
  5411 		ld		hl, p04loc_6094
  5412 		call	pushErrorHandleR
  5412 		call	pushErrorHandleR
  5413 		call	COPYRNG
  5413 		call	COPYRNG
  5414 		call	Bit_VertSplit
  5414 		call	Bit_VertSplit
  5415 		jr		z, p04loc_5FD5
  5415 		jr		z, p04loc_5FD5
  5416 		bit		7, (iy+1Dh)
  5416 		bit		NEED_RETABLE, (iy+VERTFLAG2)
  5417 		call	nz, j_DSPGRTBL
  5417 		call	nz, j_DSPGRTBL
  5418 		res		2, (iy+1Fh)
  5418 		res		2, (iy+1Fh)
  5419 
  5419 
  5420 p04loc_5FD5:
  5420 p04loc_5FD5:
  5421 		call	SetGraphDraw
  5421 		call	SetGraphDraw
  5684 GRBUFCPY_V:
  5684 GRBUFCPY_V:
  5685 
  5685 
  5686 		set		plotDisp, (iy+plotFlags)
  5686 		set		plotDisp, (iy+plotFlags)
  5687 		call	Bit_VertSplit
  5687 		call	Bit_VertSplit
  5688 		jr		z, GrBufCpy
  5688 		jr		z, GrBufCpy
  5689 		bit		7, (iy+1Dh)
  5689 		bit		NEED_RETABLE, (iy+VERTFLAG2)
  5690 		call	nz, j_DSPGRTBL
  5690 		call	nz, j_DSPGRTBL
  5691 		res		2, (iy+1Fh)
  5691 		res		2, (iy+1Fh)
  5692 		set		plotDisp, (iy+plotFlags)
  5692 		set		plotDisp, (iy+plotFlags)
  5693 		res		7, (iy+1Dh)
  5693 		res		NEED_RETABLE, (iy+VERTFLAG2)
  5694 		bit		6, (iy+1Dh)
  5694 		bit		NEED_BUFCPY, (iy+VERTFLAG2)
  5695 		ret		z
  5695 		ret		z
  5696 ; End of function GRBUFCPY_V
  5696 ; End of function GRBUFCPY_V
  5697 
  5697 
  5698 
  5698 
  5699 ; =============== S U B	R O U T	I N E =======================================
  5699 ; =============== S U B	R O U T	I N E =======================================
  5728 p04loc_61D2:
  5728 p04loc_61D2:
  5729 		ld		b, a
  5729 		ld		b, a
  5730 
  5730 
  5731 p04loc_61D3:
  5731 p04loc_61D3:
  5732 		call	RestoreDisp
  5732 		call	RestoreDisp
  5733 		res		6, (iy+1Dh)
  5733 		res		NEED_BUFCPY, (iy+VERTFLAG2)
  5734 		ei
  5734 		ei
  5735 ; End of function GrBufCpy
  5735 ; End of function GrBufCpy
  5736 
  5736 
  5737 
  5737 
  5738 ; =============== S U B	R O U T	I N E =======================================
  5738 ; =============== S U B	R O U T	I N E =======================================
  7139 		res		graphDraw, (iy+graphFlags)
  7139 		res		graphDraw, (iy+graphFlags)
  7140 		res		smarter_test, (iy+smartFlags)
  7140 		res		smarter_test, (iy+smartFlags)
  7141 		res		smartGraph, (iy+smartFlags)
  7141 		res		smartGraph, (iy+smartFlags)
  7142 		call	p04sub_756C
  7142 		call	p04sub_756C
  7143 		jr		nz, p04loc_698F
  7143 		jr		nz, p04loc_698F
  7144 		res		6, (iy+1Dh)
  7144 		res		NEED_BUFCPY, (iy+VERTFLAG2)
  7145 
  7145 
  7146 p04loc_6977:
  7146 p04loc_6977:
  7147 		call	p04sub_755F
  7147 		call	p04sub_755F
  7148 		call	nz, GrBufCpy
  7148 		call	nz, GrBufCpy
  7149 		res		g_style_active, (iy+sGrFlags)
  7149 		res		g_style_active, (iy+sGrFlags)
  9691 
  9691 
  9692 ; =============== S U B	R O U T	I N E =======================================
  9692 ; =============== S U B	R O U T	I N E =======================================
  9693 
  9693 
  9694 
  9694 
  9695 p04sub_775A:
  9695 p04sub_775A:
  9696 		set		6, (iy+1Dh)
  9696 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  9697 		ld		de, 7800h
  9697 		ld		de, 7800h
  9698 		call	p04sub_7767
  9698 		call	p04sub_7767
  9699 		ld		de, 7901h
  9699 		ld		de, 7901h
  9700 ; End of function p04sub_775A
  9700 ; End of function p04sub_775A
  9701 
  9701 
  9781 
  9781 
  9782 ; =============== S U B	R O U T	I N E =======================================
  9782 ; =============== S U B	R O U T	I N E =======================================
  9783 
  9783 
  9784 
  9784 
  9785 TAN_EQU_DISP:
  9785 TAN_EQU_DISP:
  9786 		set		6, (iy+1Dh)
  9786 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  9787 		res		3, (iy+11h)
  9787 		res		3, (iy+11h)
  9788 		set		textEraseBelow, (iy+textFlags)
  9788 		set		textEraseBelow, (iy+textFlags)
  9789 		ld		a, 1
  9789 		ld		a, 1
  9790 		call	p04loc_75CB
  9790 		call	p04loc_75CB
  9791 		ld		a, 79h ; 'y'
  9791 		ld		a, 79h ; 'y'
  9817 		ld		a, b
  9817 		ld		a, b
  9818 		push	af
  9818 		push	af
  9819 		set		textEraseBelow, (iy+textFlags)
  9819 		set		textEraseBelow, (iy+textFlags)
  9820 		bit		grfExpr, (iy+traceFlags)
  9820 		bit		grfExpr, (iy+traceFlags)
  9821 		jr		nz, p04loc_784F
  9821 		jr		nz, p04loc_784F
  9822 		set		6, (iy+1Dh)
  9822 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  9823 		ld		a, (curPlotNumber)
  9823 		ld		a, (curPlotNumber)
  9824 		or		a
  9824 		or		a
  9825 		jr		nz, p04loc_7867
  9825 		jr		nz, p04loc_7867
  9826 		pop		af
  9826 		pop		af
  9827 		call	Page0Call_385B
  9827 		call	Page0Call_385B
  9850 p04loc_784F:
  9850 p04loc_784F:
  9851 		pop		af
  9851 		pop		af
  9852 		bit		grfNoCoord, (iy+grfDBFlags)
  9852 		bit		grfNoCoord, (iy+grfDBFlags)
  9853 		ret		nz
  9853 		ret		nz
  9854 		push	af
  9854 		push	af
  9855 		set		6, (iy+1Dh)
  9855 		set		NEED_BUFCPY, (iy+VERTFLAG2)
  9856 		ld		hl, 5Ah	; 'Z'
  9856 		ld		hl, 5Ah	; 'Z'
  9857 		call	Bit_VertSplit
  9857 		call	Bit_VertSplit
  9858 		jr		z, p04loc_7864
  9858 		jr		z, p04loc_7864
  9859 		ld		l, 2Ah ; '*'
  9859 		ld		l, 2Ah ; '*'
  9860 
  9860 
 10062 
 10062 
 10063 p04loc_797B:
 10063 p04loc_797B:
 10064 		ld		a, 9
 10064 		ld		a, 9
 10065 
 10065 
 10066 DispOP1A:
 10066 DispOP1A:
 10067 		set		6, (iy+1Dh)
 10067 		set		NEED_BUFCPY, (iy+VERTFLAG2)
 10068 		push	af
 10068 		push	af
 10069 		call	j_RnFx
 10069 		call	j_RnFx
 10070 		pop		af
 10070 		pop		af
 10071 		call	j_FormEReal
 10071 		call	j_FormEReal
 10072 		ld		hl, OP3
 10072 		ld		hl, OP3
 10220 		call	nz, Regraph
 10220 		call	nz, Regraph
 10221 		bit		cmdExec, (iy+cmdFlags)
 10221 		bit		cmdExec, (iy+cmdFlags)
 10222 		jr		z, p04loc_7ADA
 10222 		jr		z, p04loc_7ADA
 10223 		call	Bit_VertSplit
 10223 		call	Bit_VertSplit
 10224 		jr		z, p04loc_7AD4
 10224 		jr		z, p04loc_7AD4
 10225 		bit		6, (iy+1Dh)
 10225 		bit		NEED_BUFCPY, (iy+VERTFLAG2)
 10226 		jr		nz, p04loc_7ADA
 10226 		jr		nz, p04loc_7ADA
 10227 		bit		7, (iy+1Dh)
 10227 		bit		NEED_RETABLE, (iy+VERTFLAG2)
 10228 		jr		nz, p04loc_7ADA
 10228 		jr		nz, p04loc_7ADA
 10229 
 10229 
 10230 p04loc_7AD4:
 10230 p04loc_7AD4:
 10231 		bit		plotDisp, (iy+plotFlags)
 10231 		bit		plotDisp, (iy+plotFlags)
 10232 		jr		nz, p04loc_7ADD
 10232 		jr		nz, p04loc_7ADD