source/page79/initial.asm
changeset 43 486c42a314bc
parent 42 adad2f097dcb
child 46 09e7d89fba35
equal deleted inserted replaced
42:adad2f097dcb 43:486c42a314bc
    27 
    27 
    28 StoRand:
    28 StoRand:
    29 		call	CkOP1Real
    29 		call	CkOP1Real
    30 		jp		nz, ErrDataType
    30 		jp		nz, ErrDataType
    31 		call	OP1ToOP6
    31 		call	OP1ToOP6
    32 		ld		hl, 8479h
    32 		ld		hl, OP1+1
    33 		ld		a, 88h ; '�'
    33 		ld		a, 88h ; '�'
    34 		cp		(hl)
    34 		cp		(hl)
    35 		jr		nc, p79loc_404F
    35 		jr		nc, p79loc_404F
    36 		ld		(hl), a
    36 		ld		(hl), a
    37 
    37 
    92 		jr		z, p79loc_40BE
    92 		jr		z, p79loc_40BE
    93 		call	CkOP1Pos
    93 		call	CkOP1Pos
    94 		ret		z
    94 		ret		z
    95 
    95 
    96 p79loc_40BE:
    96 p79loc_40BE:
    97 		jp		page0_BEC
    97 		jp		FPAdd_FromHL
    98 ; End of function p79sub_4077
    98 ; End of function p79sub_4077
    99 
    99 
   100 
   100 
   101 ; =============== S U B	R O U T	I N E =======================================
   101 ; =============== S U B	R O U T	I N E =======================================
   102 
   102 
   244 		call	InvOP2S
   244 		call	InvOP2S
   245 		call	cpop1op2
   245 		call	cpop1op2
   246 		jp		nz, ErrDomain
   246 		jp		nz, ErrDomain
   247 		ld		hl, p79loc_4184
   247 		ld		hl, p79loc_4184
   248 		rst		20h
   248 		rst		20h
   249 		call	BCALL_4120
   249 		call	OP3ToOP2
   250 		call	FPMult
   250 		call	FPMult
   251 		ret
   251 		ret
   252 p79loc_4184:
   252 p79loc_4184:
   253 		.db		0
   253 		.db		0
   254 		.db		80h	; �
   254 		.db		80h	; �
   622 p79loc_44D8:
   622 p79loc_44D8:
   623 		ld		hl, OP1
   623 		ld		hl, OP1
   624 		cp		6
   624 		cp		6
   625 		jr		nc, p79loc_44E6
   625 		jr		nc, p79loc_44E6
   626 		ld		(hl), a
   626 		ld		(hl), a
   627 		call	page0_118B
   627 		call	Mov5B
   628 		inc		a
   628 		inc		a
   629 		jr		p79loc_44D8
   629 		jr		p79loc_44D8
   630 ; ---------------------------------------------------------------------------
   630 ; ---------------------------------------------------------------------------
   631 
   631 
   632 p79loc_44E6:
   632 p79loc_44E6:
   832 		call	OP1ToOP6
   832 		call	OP1ToOP6
   833 		call	XName
   833 		call	XName
   834 		call	CpyTo3FPST
   834 		call	CpyTo3FPST
   835 		call	CpyO1ToFPST
   835 		call	CpyO1ToFPST
   836 		call	OP2ToOP1
   836 		call	OP2ToOP1
   837 		call	BCALL_4120
   837 		call	OP3ToOP2
   838 
   838 
   839 p79loc_46A6:
   839 p79loc_46A6:
   840 		call	p79sub_4E86
   840 		call	p79sub_4E86
   841 		call	j_SAVEPARSE
   841 		call	j_SAVEPARSE
   842 		call	p79sub_4D75
   842 		call	p79sub_4D75
  1905 p79sub_4DCA:
  1905 p79sub_4DCA:
  1906 		call	OP1ToOP3
  1906 		call	OP1ToOP3
  1907 		call	CPYTO2ES10
  1907 		call	CPYTO2ES10
  1908 		call	cpop1op2
  1908 		call	cpop1op2
  1909 		ret		c
  1909 		ret		c
  1910 		call	BCALL_4120
  1910 		call	OP3ToOP2
  1911 		call	CPYTO1ES9
  1911 		call	CPYTO1ES9
  1912 		call	cpop1op2
  1912 		call	cpop1op2
  1913 		ret		c
  1913 		ret		c
  1914 		call	OP3ToOP1
  1914 		call	OP3ToOP1
  1915 		xor		a
  1915 		xor		a
  1941 
  1941 
  1942 p79sub_4DF9:
  1942 p79sub_4DF9:
  1943 		call	OP1ToOP3
  1943 		call	OP1ToOP3
  1944 		call	CPYTO2ES10
  1944 		call	CPYTO2ES10
  1945 		call	p79sub_4E08
  1945 		call	p79sub_4E08
  1946 		call	BCALL_4120
  1946 		call	OP3ToOP2
  1947 		call	CPYTO1ES9
  1947 		call	CPYTO1ES9
  1948 ; End of function p79sub_4DF9
  1948 ; End of function p79sub_4DF9
  1949 
  1949 
  1950 
  1950 
  1951 ; =============== S U B	R O U T	I N E =======================================
  1951 ; =============== S U B	R O U T	I N E =======================================
  5449 		jr		c, p79loc_604E
  5449 		jr		c, p79loc_604E
  5450 		ld		hl, curRow
  5450 		ld		hl, curRow
  5451 		inc		(hl)
  5451 		inc		(hl)
  5452 
  5452 
  5453 p79loc_6039:
  5453 p79loc_6039:
  5454 		ld		hl, 8479h
  5454 		ld		hl, OP1+1
  5455 		ld		a, (MenuCurrent)
  5455 		ld		a, (MenuCurrent)
  5456 		cp		10h
  5456 		cp		10h
  5457 		jr		nz, p79loc_6044
  5457 		jr		nz, p79loc_6044
  5458 		inc		hl
  5458 		inc		hl
  5459 
  5459 
  7595 		ld		a, e
  7595 		ld		a, e
  7596 		ld		(keyExtend), a
  7596 		ld		(keyExtend), a
  7597 		ld		a, d
  7597 		ld		a, d
  7598 		call	j_ConvKeyToTok
  7598 		call	j_ConvKeyToTok
  7599 		call	ZeroOP1
  7599 		call	ZeroOP1
  7600 		ld		hl, 8479h
  7600 		ld		hl, OP1+1
  7601 		ld		(hl), d
  7601 		ld		(hl), d
  7602 		inc		hl
  7602 		inc		hl
  7603 		ld		(hl), e
  7603 		ld		(hl), e
  7604 		jr		p79loc_690F
  7604 		jr		p79loc_690F
  7605 ; ---------------------------------------------------------------------------
  7605 ; ---------------------------------------------------------------------------
  7876 		call	nz, j_call_character_hook
  7876 		call	nz, j_call_character_hook
  7877 		call	j_PutS
  7877 		call	j_PutS
  7878 		ld		hl, 1
  7878 		ld		hl, 1
  7879 		ld		(curRow), hl
  7879 		ld		(curRow), hl
  7880 		call	p79sub_7282
  7880 		call	p79sub_7282
  7881 		ld		hl, 8479h
  7881 		ld		hl, OP1+1
  7882 		ld		b, 8
  7882 		ld		b, 8
  7883 
  7883 
  7884 p79loc_6A93:
  7884 p79loc_6A93:
  7885 		ld		a, (hl)
  7885 		ld		a, (hl)
  7886 		or		a
  7886 		or		a
  7940 
  7940 
  7941 p79loc_6AF6:
  7941 p79loc_6AF6:
  7942 		pop		bc
  7942 		pop		bc
  7943 
  7943 
  7944 p79loc_6AF7:
  7944 p79loc_6AF7:
  7945 		ld		de, 8479h
  7945 		ld		de, OP1+1
  7946 
  7946 
  7947 p79loc_6AFA:
  7947 p79loc_6AFA:
  7948 		ld		a, (arcPage)
  7948 		ld		a, (arcPage)
  7949 		call	Page0Call_2CCD
  7949 		call	Page0Call_2CCD
  7950 		ld		(de), a
  7950 		ld		(de), a
  8635 		bit		localizeHookActive, (iy+hookflags3)
  8635 		bit		localizeHookActive, (iy+hookflags3)
  8636 		call	nz, j_call_character_hook
  8636 		call	nz, j_call_character_hook
  8637 		call	j_PutS
  8637 		call	j_PutS
  8638 		call	j_newline
  8638 		call	j_newline
  8639 		call	CpyTo1FPST
  8639 		call	CpyTo1FPST
  8640 		ld		hl, 8479h
  8640 		ld		hl, OP1+1
  8641 		ld		b, 8
  8641 		ld		b, 8
  8642 
  8642 
  8643 p79loc_7048:
  8643 p79loc_7048:
  8644 		ld		a, (hl)
  8644 		ld		a, (hl)
  8645 		or		a
  8645 		or		a
  9398 ; START	OF FUNCTION CHUNK FOR p79sub_7BF5
  9398 ; START	OF FUNCTION CHUNK FOR p79sub_7BF5
  9399 
  9399 
  9400 p79loc_74BC:
  9400 p79loc_74BC:
  9401 		call	OP2Set1
  9401 		call	OP2Set1
  9402 		call	j_RndGuard
  9402 		call	j_RndGuard
  9403 		call	page0_14E1
  9403 		call	CKOP1DoInt
  9404 		ret		z
  9404 		ret		z
  9405 		ld		a, (OP1+1)
  9405 		ld		a, (OP1+1)
  9406 		cp		84h ; '�'
  9406 		cp		84h ; '�'
  9407 		jp		nc, ErrDomain
  9407 		jp		nc, ErrDomain
  9408 		call	cpop1op2
  9408 		call	cpop1op2
  9549 ; =============== S U B	R O U T	I N E =======================================
  9549 ; =============== S U B	R O U T	I N E =======================================
  9550 
  9550 
  9551 
  9551 
  9552 p79sub_75DE:
  9552 p79sub_75DE:
  9553 		; p79sub_760A+2Fp	...
  9553 		; p79sub_760A+2Fp	...
  9554 		ld		hl, 8479h
  9554 		ld		hl, OP1+1
  9555 		inc		(hl)
  9555 		inc		(hl)
  9556 		inc		(hl)
  9556 		inc		(hl)
  9557 		ret
  9557 		ret
  9558 ; End of function p79sub_75DE
  9558 ; End of function p79sub_75DE
  9559 
  9559 
  9611 		call	Trunc
  9611 		call	Trunc
  9612 		call	OP1ToOP5
  9612 		call	OP1ToOP5
  9613 		call	OP4ToOP2
  9613 		call	OP4ToOP2
  9614 		call	InvSub
  9614 		call	InvSub
  9615 		call	p79sub_75DE
  9615 		call	p79sub_75DE
  9616 		call	page0_14E1
  9616 		call	CKOP1DoInt
  9617 		jr		nz, p79loc_7607
  9617 		jr		nz, p79loc_7607
  9618 		ld		a, 32h ; '2'
  9618 		ld		a, 32h ; '2'
  9619 		call	p79sub_7726
  9619 		call	p79sub_7726
  9620 		jr		nc, p79loc_764F
  9620 		jr		nc, p79loc_764F
  9621 		ld		hl, 64h	; 'd'
  9621 		ld		hl, 64h	; 'd'
  9647 		call	j_SetXXXXOP2
  9647 		call	j_SetXXXXOP2
  9648 		rst		30h
  9648 		rst		30h
  9649 		call	OP1ToOP4
  9649 		call	OP1ToOP4
  9650 		call	OP2Set4
  9650 		call	OP2Set4
  9651 		call	fpdiv
  9651 		call	fpdiv
  9652 		call	page0_14E1
  9652 		call	CKOP1DoInt
  9653 		jr		nz, p79loc_76AD
  9653 		jr		nz, p79loc_76AD
  9654 		call	OP4ToOP1
  9654 		call	OP4ToOP1
  9655 		call	p79sub_771B
  9655 		call	p79sub_771B
  9656 		jr		nz, p79loc_76A9
  9656 		jr		nz, p79loc_76A9
  9657 		call	OP2Set1
  9657 		call	OP2Set1
  9737 
  9737 
  9738 p79sub_771B:
  9738 p79sub_771B:
  9739 		ld		a, 82h ; '�'
  9739 		ld		a, 82h ; '�'
  9740 		ld		(OP2+1), a
  9740 		ld		(OP2+1), a
  9741 		call	fpdiv
  9741 		call	fpdiv
  9742 		jp		page0_14E1
  9742 		jp		CKOP1DoInt
  9743 ; End of function p79sub_771B
  9743 ; End of function p79sub_771B
  9744 
  9744 
  9745 
  9745 
  9746 ; =============== S U B	R O U T	I N E =======================================
  9746 ; =============== S U B	R O U T	I N E =======================================
  9747 
  9747 
  9979 		call	page0_C20
  9979 		call	page0_C20
  9980 		call	InvOP1S
  9980 		call	InvOP1S
  9981 		ld		hl, cal_PMT
  9981 		ld		hl, cal_PMT
  9982 		call	Mov9ToOP2
  9982 		call	Mov9ToOP2
  9983 		call	FPSub
  9983 		call	FPSub
  9984 		call	BCALL_4120
  9984 		call	OP3ToOP2
  9985 		call	fpdiv
  9985 		call	fpdiv
  9986 		ret
  9986 		ret
  9987 ; ---------------------------------------------------------------------------
  9987 ; ---------------------------------------------------------------------------
  9988 
  9988 
  9989 p79loc_7912:
  9989 p79loc_7912:
 10192 
 10192 
 10193 
 10193 
 10194 p79sub_7AD2:
 10194 p79sub_7AD2:
 10195 		; p79sub_7AFD+18p
 10195 		; p79sub_7AFD+18p
 10196 		call	PopRealO1
 10196 		call	PopRealO1
 10197 		call	ErrD_OP1NotPosInt
 10197 		call	ErrD_OP1NotPosDoInt
 10198 		ld		a, (OP1+1)
 10198 		ld		a, (OP1+1)
 10199 		cp		84h ; '�'
 10199 		cp		84h ; '�'
 10200 		jp		nc, ErrDomain
 10200 		jp		nc, ErrDomain
 10201 		call	j_ConvOP1
 10201 		call	j_ConvOP1
 10202 		ret
 10202 		ret
 10649 		rst		30h
 10649 		rst		30h
 10650 		call	OP1ToOP3
 10650 		call	OP1ToOP3
 10651 		call	CpyTo1FPS2
 10651 		call	CpyTo1FPS2
 10652 		call	CpyTo2FPS5
 10652 		call	CpyTo2FPS5
 10653 		rst		30h
 10653 		rst		30h
 10654 		call	BCALL_4120
 10654 		call	OP3ToOP2
 10655 		call	fpdiv
 10655 		call	fpdiv
 10656 		call	OP4ToOP2
 10656 		call	OP4ToOP2
 10657 		call	InvSub
 10657 		call	InvSub
 10658 		call	OP1ToOP4
 10658 		call	OP1ToOP4
 10659 		call	CpyTo1FPS3
 10659 		call	CpyTo1FPS3