source/page03/initial.asm
changeset 43 486c42a314bc
parent 42 adad2f097dcb
child 46 09e7d89fba35
equal deleted inserted replaced
42:adad2f097dcb 43:486c42a314bc
  2063 
  2063 
  2064 p03loc_4B47:
  2064 p03loc_4B47:
  2065 		dec		hl
  2065 		dec		hl
  2066 
  2066 
  2067 p03loc_4B48:
  2067 p03loc_4B48:
  2068 		ld		de, 8479h
  2068 		ld		de, OP1+1
  2069 		jr		p03loc_4B5E
  2069 		jr		p03loc_4B5E
  2070 ; ---------------------------------------------------------------------------
  2070 ; ---------------------------------------------------------------------------
  2071 
  2071 
  2072 nameToOP1:
  2072 nameToOP1:
  2073 		call	ZeroOP1
  2073 		call	ZeroOP1
  2078 		dec		hl
  2078 		dec		hl
  2079 		dec		hl
  2079 		dec		hl
  2080 		dec		hl
  2080 		dec		hl
  2081 		ld		b, (hl)
  2081 		ld		b, (hl)
  2082 		inc		b
  2082 		inc		b
  2083 		ld		de, 8479h
  2083 		ld		de, OP1+1
  2084 
  2084 
  2085 p03loc_4B5E:
  2085 p03loc_4B5E:
  2086 		ld		a, (hl)
  2086 		ld		a, (hl)
  2087 		dec		hl
  2087 		dec		hl
  2088 		ld		(de), a
  2088 		ld		(de), a
  5911 		push	af
  5911 		push	af
  5912 		call	c, fpdiv
  5912 		call	c, fpdiv
  5913 		pop		af
  5913 		pop		af
  5914 		call	nc, FPMult
  5914 		call	nc, FPMult
  5915 		pop		hl
  5915 		pop		hl
  5916 		call	page0_BEC
  5916 		call	FPAdd_FromHL
  5917 		ld		hl, OP1
  5917 		ld		hl, OP1
  5918 		call	j_XYRND
  5918 		call	j_XYRND
  5919 		ret
  5919 		ret
  5920 ; ---------------------------------------------------------------------------
  5920 ; ---------------------------------------------------------------------------
  5921 
  5921 
  6056 ; ---------------------------------------------------------------------------
  6056 ; ---------------------------------------------------------------------------
  6057 
  6057 
  6058 p03loc_5DB3:
  6058 p03loc_5DB3:
  6059 		ld		d, 0Ch
  6059 		ld		d, 0Ch
  6060 		call	Page0Call_39C9
  6060 		call	Page0Call_39C9
  6061 		ld		hl, 8479h
  6061 		ld		hl, OP1+1
  6062 		call	CKInt
  6062 		call	CKDoInt
  6063 		jp		nz, j_BCALL_4EAF
  6063 		jp		nz, j_BCALL_4EAF
  6064 
  6064 
  6065 p03loc_5DC1:
  6065 p03loc_5DC1:
  6066 		ld		hl, 8479h
  6066 		ld		hl, OP1+1
  6067 		call	CKOdd
  6067 		call	CKOdd
  6068 		jr		nz, p03loc_5DD2
  6068 		jr		nz, p03loc_5DD2
  6069 		bit		2, (iy+1Eh)
  6069 		bit		2, (iy+1Eh)
  6070 		jp		nz, j_BCALL_4EAF
  6070 		jp		nz, j_BCALL_4EAF
  6071 		jr		p03loc_5DD6
  6071 		jr		p03loc_5DD6
  6093 		jr		nc, p03loc_5E1D
  6093 		jr		nc, p03loc_5E1D
  6094 		ld		hl, OP2
  6094 		ld		hl, OP2
  6095 		bit		7, (hl)
  6095 		bit		7, (hl)
  6096 		jr		nz, p03loc_5E1D
  6096 		jr		nz, p03loc_5E1D
  6097 		inc		hl
  6097 		inc		hl
  6098 		call	CKInt
  6098 		call	CKDoInt
  6099 		jr		nz, p03loc_5E1D
  6099 		jr		nz, p03loc_5E1D
  6100 		ld		a, (OP2+1)
  6100 		ld		a, (OP2+1)
  6101 		cp		80h ; '�'
  6101 		cp		80h ; '�'
  6102 		ld		a, (OP2M)
  6102 		ld		a, (OP2M)
  6103 		call	z, ShRAcc
  6103 		call	z, ShRAcc
  6800 		call	Mov9ToOP2
  6800 		call	Mov9ToOP2
  6801 		ld		hl, OP2
  6801 		ld		hl, OP2
  6802 		res		7, (hl)
  6802 		res		7, (hl)
  6803 		call	FPMult
  6803 		call	FPMult
  6804 		ld		hl, Xmin
  6804 		ld		hl, Xmin
  6805 		jp		page0_BEC
  6805 		jp		FPAdd_FromHL
  6806 ; End of function p03sub_62BC
  6806 ; End of function p03sub_62BC
  6807 
  6807 
  6808 ; ---------------------------------------------------------------------------
  6808 ; ---------------------------------------------------------------------------
  6809 ; START	OF FUNCTION CHUNK FOR p03sub_640C
  6809 ; START	OF FUNCTION CHUNK FOR p03sub_640C
  6810 
  6810 
  7481 
  7481 
  7482 ; =============== S U B	R O U T	I N E =======================================
  7482 ; =============== S U B	R O U T	I N E =======================================
  7483 
  7483 
  7484 
  7484 
  7485 p03sub_6692:
  7485 p03sub_6692:
  7486 		ld		de, 8479h
  7486 		ld		de, OP1+1
  7487 		ld		a, 5Dh ; ']'
  7487 		ld		a, 5Dh ; ']'
  7488 		ld		(de), a
  7488 		ld		(de), a
  7489 		inc		de
  7489 		inc		de
  7490 		call	page0_118B
  7490 		call	Mov5B
  7491 		ex		de, hl
  7491 		ex		de, hl
  7492 		ld		(hl), 0
  7492 		ld		(hl), 0
  7493 		ret
  7493 		ret
  7494 ; End of function p03sub_6692
  7494 ; End of function p03sub_6692
  7495 
  7495 
  7694 		call	p03sub_6692
  7694 		call	p03sub_6692
  7695 		push	de
  7695 		push	de
  7696 		call	CMPPRGNAMLEN
  7696 		call	CMPPRGNAMLEN
  7697 		ld		c, a
  7697 		ld		c, a
  7698 		dec		c
  7698 		dec		c
  7699 		ld		hl, 8479h
  7699 		ld		hl, OP1+1
  7700 		ld		a, (OP1M)
  7700 		ld		a, (OP1M)
  7701 		cp		6
  7701 		cp		6
  7702 		jr		nc, p03loc_67EB
  7702 		jr		nc, p03loc_67EB
  7703 		inc		c
  7703 		inc		c
  7704 		dec		hl
  7704 		dec		hl
  9328 		bit		5, (iy+1Ch)
  9328 		bit		5, (iy+1Ch)
  9329 		jr		z, p03loc_7185
  9329 		jr		z, p03loc_7185
  9330 
  9330 
  9331 p03loc_7174:
  9331 p03loc_7174:
  9332 		ld		de, nameBuff
  9332 		ld		de, nameBuff
  9333 		call	page0_118B
  9333 		call	Mov5B
  9334 		call	CancelAlpha
  9334 		call	CancelAlpha
  9335 		call	Page03_37A7
  9335 		call	Page03_37A7
  9336 		ld		bc, 2
  9336 		ld		bc, 2
  9337 		jr		p03loc_7191
  9337 		jr		p03loc_7191
  9338 ; ---------------------------------------------------------------------------
  9338 ; ---------------------------------------------------------------------------
  9591 		jr		z, p03loc_7301
  9591 		jr		z, p03loc_7301
  9592 		cp		0Dh
  9592 		cp		0Dh
  9593 		jr		nz, p03loc_7308
  9593 		jr		nz, p03loc_7308
  9594 
  9594 
  9595 p03loc_7301:
  9595 p03loc_7301:
  9596 		ld		hl, 8479h
  9596 		ld		hl, OP1+1
  9597 		call	j_RstrSomeFlags
  9597 		call	j_RstrSomeFlags
  9598 		ret
  9598 		ret
  9599 ; ---------------------------------------------------------------------------
  9599 ; ---------------------------------------------------------------------------
  9600 
  9600 
  9601 p03loc_7308:
  9601 p03loc_7308:
  9764 		bit		5, (iy+1Ch)
  9764 		bit		5, (iy+1Ch)
  9765 		jr		nz, p03loc_7426
  9765 		jr		nz, p03loc_7426
  9766 		bit		6, (iy+1Ch)
  9766 		bit		6, (iy+1Ch)
  9767 		jr		nz, p03loc_7426
  9767 		jr		nz, p03loc_7426
  9768 		ld		hl, nameBuff
  9768 		ld		hl, nameBuff
  9769 		ld		de, 8479h
  9769 		ld		de, OP1+1
  9770 		ld		bc, 5
  9770 		ld		bc, 5
  9771 		ldir
  9771 		ldir
  9772 		ld		a, 1
  9772 		ld		a, 1
  9773 		ld		(OP1), a
  9773 		ld		(OP1), a
  9774 
  9774