source/page05/initial.asm
changeset 43 486c42a314bc
parent 41 9ef17625274f
child 46 09e7d89fba35
equal deleted inserted replaced
42:adad2f097dcb 43:486c42a314bc
   825 		ld		hl, (iMathPtr3)
   825 		ld		hl, (iMathPtr3)
   826 		ld		(editBtm), hl
   826 		ld		(editBtm), hl
   827 		ld		(editTail), hl
   827 		ld		(editTail), hl
   828 		call	parseEditBuf
   828 		call	parseEditBuf
   829 		call	page0_1847
   829 		call	page0_1847
   830 		call	page0_14D1
   830 		call	RealPosNo0DoInt
   831 		jp		nz, ErrDimension
   831 		jp		nz, ErrDimension
   832 		call	j_ConvOP1
   832 		call	j_ConvOP1
   833 		sub		a
   833 		sub		a
   834 		cp		d
   834 		cp		d
   835 		jp		nz, ErrDimension
   835 		jp		nz, ErrDimension
  1765 		jr		nz, p05loc_4978
  1765 		jr		nz, p05loc_4978
  1766 
  1766 
  1767 p05loc_4983:
  1767 p05loc_4983:
  1768 		; Page05_3435+35j
  1768 		; Page05_3435+35j
  1769 		ld		hl, nameBuff
  1769 		ld		hl, nameBuff
  1770 		ld		de, 8479h
  1770 		ld		de, OP1+1
  1771 		call	Mov8B
  1771 		call	Mov8B
  1772 		ld		hl, (editCursor)
  1772 		ld		hl, (editCursor)
  1773 		ld		de, nameBuff
  1773 		ld		de, nameBuff
  1774 		or		a
  1774 		or		a
  1775 		sbc		hl, de
  1775 		sbc		hl, de
  3226 
  3226 
  3227 
  3227 
  3228 Page05_322B:
  3228 Page05_322B:
  3229 		ld		hl, nameBuff
  3229 		ld		hl, nameBuff
  3230 		ld		de, OP2
  3230 		ld		de, OP2
  3231 		call	page0_118B
  3231 		call	Mov5B
  3232 		ld		hl, 0
  3232 		ld		hl, 0
  3233 		xor		a
  3233 		xor		a
  3234 		bit		grfSplit, (iy+sGrFlags)
  3234 		bit		grfSplit, (iy+sGrFlags)
  3235 		jr		z, p05loc_51EE
  3235 		jr		z, p05loc_51EE
  3236 		ld		a, 4
  3236 		ld		a, 4
  3248 		ld		a, b
  3248 		ld		a, b
  3249 		cp		3
  3249 		cp		3
  3250 		jr		nz, p05loc_51FA
  3250 		jr		nz, p05loc_51FA
  3251 		ld		de, nameBuff
  3251 		ld		de, nameBuff
  3252 		ld		hl, OP2
  3252 		ld		hl, OP2
  3253 		call	page0_118B
  3253 		call	Mov5B
  3254 		ret
  3254 		ret
  3255 ; End of function Page05_322B
  3255 ; End of function Page05_322B
  3256 
  3256 
  3257 
  3257 
  3258 ; =============== S U B	R O U T	I N E =======================================
  3258 ; =============== S U B	R O U T	I N E =======================================
  5821 		call	pushErrorHandleR
  5821 		call	pushErrorHandleR
  5822 		call	p05sub_603D
  5822 		call	p05sub_603D
  5823 		call	PushRealO2
  5823 		call	PushRealO2
  5824 		bit		grfRecurM, (iy+grfModeFlags)
  5824 		bit		grfRecurM, (iy+grfModeFlags)
  5825 		jr		z, p05loc_5F87
  5825 		jr		z, p05loc_5F87
  5826 		call	ErrD_OP1NotPosInt
  5826 		call	ErrD_OP1NotPosDoInt
  5827 		call	OP1ToOP3
  5827 		call	OP1ToOP3
  5828 		ld		hl, nMin
  5828 		ld		hl, nMin
  5829 		call	Mov9OP2Cp
  5829 		call	Mov9OP2Cp
  5830 		call	OP3ToOP1
  5830 		call	OP3ToOP1
  5831 		jp		c, ErrDomain
  5831 		jp		c, ErrDomain
  6076 		call	p05sub_6834
  6076 		call	p05sub_6834
  6077 		jp		c, p05loc_616A
  6077 		jp		c, p05loc_616A
  6078 		jp		z, p05loc_616A
  6078 		jp		z, p05loc_616A
  6079 		bit		grfRecurM, (iy+grfModeFlags)
  6079 		bit		grfRecurM, (iy+grfModeFlags)
  6080 		jr		z, p05loc_60D6
  6080 		jr		z, p05loc_60D6
  6081 		call	ErrD_OP1NotPosInt
  6081 		call	ErrD_OP1NotPosDoInt
  6082 		call	OP1ToOP3
  6082 		call	OP1ToOP3
  6083 		ld		hl, nMin
  6083 		ld		hl, nMin
  6084 		call	Mov9OP2Cp
  6084 		call	Mov9OP2Cp
  6085 		call	OP3ToOP1
  6085 		call	OP3ToOP1
  6086 		jp		c, ErrDomain
  6086 		jp		c, ErrDomain
  8145 		call	parseEditBuf
  8145 		call	parseEditBuf
  8146 		bit		5, (iy+5)
  8146 		bit		5, (iy+5)
  8147 		ret		z
  8147 		ret		z
  8148 		call	EOP1NotReal
  8148 		call	EOP1NotReal
  8149 		bit		grfRecurM, (iy+grfModeFlags)
  8149 		bit		grfRecurM, (iy+grfModeFlags)
  8150 		call	nz, ErrD_OP1NotPosInt
  8150 		call	nz, ErrD_OP1NotPosDoInt
  8151 		call	p05sub_6077
  8151 		call	p05sub_6077
  8152 		call	p05sub_607D
  8152 		call	p05sub_607D
  8153 		ex		de, hl
  8153 		ex		de, hl
  8154 		call	MovFrOP1
  8154 		call	MovFrOP1
  8155 		call	j_releaseBuffer
  8155 		call	j_releaseBuffer
  9729 		ld		(hl), a
  9729 		ld		(hl), a
  9730 		jr		p05loc_74A9
  9730 		jr		p05loc_74A9
  9731 ; ---------------------------------------------------------------------------
  9731 ; ---------------------------------------------------------------------------
  9732 
  9732 
  9733 p05loc_74A6:
  9733 p05loc_74A6:
  9734 		call	page0_118B
  9734 		call	Mov5B
  9735 
  9735 
  9736 p05loc_74A9:
  9736 p05loc_74A9:
  9737 		; NameToBuf+16j
  9737 		; NameToBuf+16j
  9738 		ld		hl, nameBuff
  9738 		ld		hl, nameBuff
  9739 		ret
  9739 		ret
 10038 		pop		af
 10038 		pop		af
 10039 		ld		(unk_92FC), a
 10039 		ld		(unk_92FC), a
 10040 		ret
 10040 		ret
 10041 ; ---------------------------------------------------------------------------
 10041 ; ---------------------------------------------------------------------------
 10042 		ld		de, nameBuff
 10042 		ld		de, nameBuff
 10043 		call	page0_118B
 10043 		call	Mov5B
 10044 		ex		de, hl
 10044 		ex		de, hl
 10045 		ld		(hl), 0
 10045 		ld		(hl), 0
 10046 		ld		hl, nameBuff
 10046 		ld		hl, nameBuff
 10047 		jp		p05loc_76A9
 10047 		jp		p05loc_76A9
 10048 ; ---------------------------------------------------------------------------
 10048 ; ---------------------------------------------------------------------------