source/page04/initial.asm
changeset 43 486c42a314bc
parent 41 9ef17625274f
child 46 09e7d89fba35
equal deleted inserted replaced
42:adad2f097dcb 43:486c42a314bc
   949 p04loc_4406:
   949 p04loc_4406:
   950 		rst		20h
   950 		rst		20h
   951 		call	FPMult
   951 		call	FPMult
   952 		call	j_RndGuard
   952 		call	j_RndGuard
   953 		pop		hl
   953 		pop		hl
   954 		call	page0_BEC
   954 		call	FPAdd_FromHL
   955 		call	CkValidNum
   955 		call	CkValidNum
   956 		pop		de
   956 		pop		de
   957 		jp		MovFrOP1
   957 		jp		MovFrOP1
   958 ; End of function p04sub_43E1
   958 ; End of function p04sub_43E1
   959 
   959 
  2343 		ld		(OP1+7), a
  2343 		ld		(OP1+7), a
  2344 		ld		h, 41h ; 'A'
  2344 		ld		h, 41h ; 'A'
  2345 		ld		l, 63h ; 'c'
  2345 		ld		l, 63h ; 'c'
  2346 		ld		(OP1+1), hl
  2346 		ld		(OP1+1), hl
  2347 		pop		de
  2347 		pop		de
  2348 		ld		hl, 8479h
  2348 		ld		hl, OP1+1
  2349 		call	page0_1189
  2349 		call	Mov6B
  2350 		ld		a, (hl)
  2350 		ld		a, (hl)
  2351 		call	p04sub_4D45
  2351 		call	p04sub_4D45
  2352 		push	de
  2352 		push	de
  2353 		ld		hl, (unk_980E)
  2353 		ld		hl, (unk_980E)
  2354 		ld		(OP1+5), hl
  2354 		ld		(OP1+5), hl
  2611 		jr		nz, p04loc_4E66
  2611 		jr		nz, p04loc_4E66
  2612 		call	p04sub_5CEA
  2612 		call	p04sub_5CEA
  2613 		call	j_RclX
  2613 		call	j_RclX
  2614 		call	OP1ToOP5
  2614 		call	OP1ToOP5
  2615 		call	j_RclY
  2615 		call	j_RclY
  2616 		call	ZmInt
  2616 		call	ZmDoInt
  2617 		jp		p04loc_4DB0
  2617 		jp		p04loc_4DB0
  2618 ; ---------------------------------------------------------------------------
  2618 ; ---------------------------------------------------------------------------
  2619 
  2619 
  2620 p04loc_4E66:
  2620 p04loc_4E66:
  2621 		cp		13h
  2621 		cp		13h
  2913 
  2913 
  2914 p04sub_501E:
  2914 p04sub_501E:
  2915 		ld		a, 1Fh
  2915 		ld		a, 1Fh
  2916 		call	j_RclSysTok
  2916 		call	j_RclSysTok
  2917 		ld		hl, PlotStart
  2917 		ld		hl, PlotStart
  2918 		call	page0_BEC
  2918 		call	FPAdd_FromHL
  2919 		jp		Minus1
  2919 		jp		Minus1
  2920 ; End of function p04sub_501E
  2920 ; End of function p04sub_501E
  2921 
  2921 
  2922 ; ---------------------------------------------------------------------------
  2922 ; ---------------------------------------------------------------------------
  2923 ; START	OF FUNCTION CHUNK FOR ForceGraphKeypress
  2923 ; START	OF FUNCTION CHUNK FOR ForceGraphKeypress
  3485 		pop		bc
  3485 		pop		bc
  3486 		set		7, (iy+19h)
  3486 		set		7, (iy+19h)
  3487 
  3487 
  3488 p04loc_53FF:
  3488 p04loc_53FF:
  3489 		push	bc
  3489 		push	bc
  3490 		call	BCALL_4120
  3490 		call	OP3ToOP2
  3491 		call	cpop1op2
  3491 		call	cpop1op2
  3492 		pop		bc
  3492 		pop		bc
  3493 		jr		z, p04loc_5417
  3493 		jr		z, p04loc_5417
  3494 		res		7, (iy+19h)
  3494 		res		7, (iy+19h)
  3495 		push	bc
  3495 		push	bc
  4595 		jr		nz, p04loc_5B22
  4595 		jr		nz, p04loc_5B22
  4596 		call	IsRecursiveMode
  4596 		call	IsRecursiveMode
  4597 		jr		z, p04loc_5B1F
  4597 		jr		z, p04loc_5B1F
  4598 		bit		webMode, (iy+seqFlags)
  4598 		bit		webMode, (iy+seqFlags)
  4599 		jr		z, p04loc_5B12
  4599 		jr		z, p04loc_5B12
  4600 		call	ErrD_OP1NotPosInt
  4600 		call	ErrD_OP1NotPosDoInt
  4601 		ld		hl, nMin
  4601 		ld		hl, nMin
  4602 		call	Mov9ToOP2
  4602 		call	Mov9ToOP2
  4603 		jr		p04loc_5B1A
  4603 		jr		p04loc_5B1A
  4604 ; ---------------------------------------------------------------------------
  4604 ; ---------------------------------------------------------------------------
  4605 
  4605 
  4661 		call	IsFunctionMode
  4661 		call	IsFunctionMode
  4662 		call	nz, j_StoTheta
  4662 		call	nz, j_StoTheta
  4663 		call	IsRecursiveMode
  4663 		call	IsRecursiveMode
  4664 		jr		z, p04loc_5B7F
  4664 		jr		z, p04loc_5B7F
  4665 p04loc_5B68:
  4665 p04loc_5B68:
  4666 		call	page0_14E1
  4666 		call	CKOP1DoInt
  4667 		jp		nz, ErrDomain
  4667 		jp		nz, ErrDomain
  4668 		rst		18h
  4668 		rst		18h
  4669 		call	RECURNNAME
  4669 		call	RECURNNAME
  4670 		rst		10h
  4670 		rst		10h
  4671 		push	de
  4671 		push	de
  5009 ; ---------------------------------------------------------------------------
  5009 ; ---------------------------------------------------------------------------
  5010 
  5010 
  5011 XYCENT:
  5011 XYCENT:
  5012 		ld		hl, Xmin
  5012 		ld		hl, Xmin
  5013 		rst		20h
  5013 		rst		20h
  5014 		call	page0_BEC
  5014 		call	FPAdd_FromHL
  5015 		call	TimesPt5
  5015 		call	TimesPt5
  5016 		call	OP1ToOP5
  5016 		call	OP1ToOP5
  5017 		ld		hl, Ymin
  5017 		ld		hl, Ymin
  5018 		rst		20h
  5018 		rst		20h
  5019 		call	page0_BEC
  5019 		call	FPAdd_FromHL
  5020 		jp		TimesPt5
  5020 		jp		TimesPt5
  5021 ; ---------------------------------------------------------------------------
  5021 ; ---------------------------------------------------------------------------
  5022 
  5022 
  5023 Page04_3543:
  5023 Page04_3543:
  5024 		push	af
  5024 		push	af
  5073 p04sub_5DD4:
  5073 p04sub_5DD4:
  5074 		push	de
  5074 		push	de
  5075 		push	bc
  5075 		push	bc
  5076 		ld		de, OP2
  5076 		ld		de, OP2
  5077 		call	mov9B2
  5077 		call	mov9B2
  5078 		call	page0_117C
  5078 		call	Mov11B_ToOP1
  5079 		call	FPSub
  5079 		call	FPSub
  5080 		call	CkOP1Pos
  5080 		call	CkOP1Pos
  5081 		jp		nz, Page0Call_2509
  5081 		jp		nz, Page0Call_2509
  5082 		pop		hl
  5082 		pop		hl
  5083 		call	j_SetXXXXOP2
  5083 		call	j_SetXXXXOP2
  5213 		jr		p04loc_5E79
  5213 		jr		p04loc_5E79
  5214 
  5214 
  5215 ; =============== S U B	R O U T	I N E =======================================
  5215 ; =============== S U B	R O U T	I N E =======================================
  5216 
  5216 
  5217 
  5217 
  5218 ZmInt:
  5218 ZmDoInt:
  5219 
  5219 
  5220 		call	COPYRNG
  5220 		call	COPYRNG
  5221 		call	int
  5221 		call	int
  5222 		bit		grfSplit, (iy+sGrFlags)
  5222 		bit		grfSplit, (iy+sGrFlags)
  5223 		ld		a, (lcdTallP)
  5223 		ld		a, (lcdTallP)
  5246 		call	FPSub
  5246 		call	FPSub
  5247 		call	OP1ToOP5
  5247 		call	OP1ToOP5
  5248 		pop		af
  5248 		pop		af
  5249 		call	j_SetXXOP2
  5249 		call	j_SetXXOP2
  5250 		rst		30h
  5250 		rst		30h
  5251 ; End of function ZmInt
  5251 ; End of function ZmDoInt
  5252 
  5252 
  5253 
  5253 
  5254 ; =============== S U B	R O U T	I N E =======================================
  5254 ; =============== S U B	R O U T	I N E =======================================
  5255 
  5255 
  5256 
  5256 
  6884 		cp		87h ; '�'
  6884 		cp		87h ; '�'
  6885 		jp		z, ZmTrig
  6885 		jp		z, ZmTrig
  6886 		cp		8Bh ; '�'
  6886 		cp		8Bh ; '�'
  6887 		jp		z, ZmSquare
  6887 		jp		z, ZmSquare
  6888 		cp		8Ch ; '�'
  6888 		cp		8Ch ; '�'
  6889 		jp		z, ZmInt
  6889 		jp		z, ZmDoInt
  6890 		cp		8Dh ; '�'
  6890 		cp		8Dh ; '�'
  6891 		jp		z, ZmPrev
  6891 		jp		z, ZmPrev
  6892 		cp		8Eh ; '�'
  6892 		cp		8Eh ; '�'
  6893 		jp		z, ZmDecml
  6893 		jp		z, ZmDecml
  6894 		cp		90h ; '�'
  6894 		cp		90h ; '�'
  6901 
  6901 
  6902 ; =============== S U B	R O U T	I N E =======================================
  6902 ; =============== S U B	R O U T	I N E =======================================
  6903 
  6903 
  6904 
  6904 
  6905 p04sub_6786:
  6905 p04sub_6786:
  6906 		ld		hl, 8479h
  6906 		ld		hl, OP1+1
  6907 		inc		(hl)
  6907 		inc		(hl)
  6908 		rst		10h
  6908 		rst		10h
  6909 		call	nc, DelVar
  6909 		call	nc, DelVar
  6910 		ret
  6910 		ret
  6911 ; End of function p04sub_6786
  6911 ; End of function p04sub_6786
  7956 		call	j_RclN
  7956 		call	j_RclN
  7957 		call	Plus1
  7957 		call	Plus1
  7958 		call	OP1ToOP4
  7958 		call	OP1ToOP4
  7959 		call	j_RclN
  7959 		call	j_RclN
  7960 		ld		hl, PlotStep
  7960 		ld		hl, PlotStep
  7961 		call	page0_BEC
  7961 		call	FPAdd_FromHL
  7962 		call	OP1ToOP3
  7962 		call	OP1ToOP3
  7963 		rst		8
  7963 		rst		8
  7964 		ld		hl, nMax
  7964 		ld		hl, nMax
  7965 		rst		20h
  7965 		rst		20h
  7966 		call	cpop1op2
  7966 		call	cpop1op2
  9167 ; =============== S U B	R O U T	I N E =======================================
  9167 ; =============== S U B	R O U T	I N E =======================================
  9168 
  9168 
  9169 
  9169 
  9170 Ceiling:
  9170 Ceiling:
  9171 		call	InvOP1S
  9171 		call	InvOP1S
  9172 		call	BCALL_405D
  9172 		call	DoInt
  9173 		jp		InvOP1S
  9173 		jp		InvOP1S
  9174 ; End of function Ceiling
  9174 ; End of function Ceiling
  9175 
  9175 
  9176 
  9176 
  9177 ; =============== S U B	R O U T	I N E =======================================
  9177 ; =============== S U B	R O U T	I N E =======================================
 10405 
 10405 
 10406 
 10406 
 10407 p04sub_7BC8:
 10407 p04sub_7BC8:
 10408 		push	af
 10408 		push	af
 10409 		call	PopRealO1
 10409 		call	PopRealO1
 10410 		call	ErrD_OP1NotPosInt
 10410 		call	ErrD_OP1NotPosDoInt
 10411 		ld		a, (OP1+1)
 10411 		ld		a, (OP1+1)
 10412 		cp		83h ; '�'
 10412 		cp		83h ; '�'
 10413 		jr		nc, p04loc_7BE1
 10413 		jr		nc, p04loc_7BE1
 10414 		call	j_ConvOP1
 10414 		call	j_ConvOP1
 10415 		ld		a, d
 10415 		ld		a, d
 10445 		rst		8
 10445 		rst		8
 10446 		call	j_RclX
 10446 		call	j_RclX
 10447 		call	FPMult
 10447 		call	FPMult
 10448 		call	CpyTo3FPST
 10448 		call	CpyTo3FPST
 10449 		call	CpyO2ToFPST
 10449 		call	CpyO2ToFPST
 10450 		call	BCALL_4120
 10450 		call	OP3ToOP2
 10451 		call	InvSub
 10451 		call	InvSub
 10452 
 10452 
 10453 p04loc_7C13:
 10453 p04loc_7C13:
 10454 		rst		18h
 10454 		rst		18h
 10455 		call	j_RnFx
 10455 		call	j_RnFx
 10645 
 10645 
 10646 
 10646 
 10647 p04sub_7D7F:
 10647 p04sub_7D7F:
 10648 
 10648 
 10649 		call	PopRealO1
 10649 		call	PopRealO1
 10650 		call	page0_14D1
 10650 		call	RealPosNo0DoInt
 10651 		jp		nz, ErrDomain
 10651 		jp		nz, ErrDomain
 10652 		call	GETEXP
 10652 		call	GETEXP
 10653 		cp		81h ; '�'
 10653 		cp		81h ; '�'
 10654 
 10654 
 10655 p04loc_7D8D:
 10655 p04loc_7D8D: