Fix more hard-coded references (possibly the last ones).
authorbrandonlw
Mon, 12 May 2014 03:01:41 -0400
changeset 34 7740eaa2faeb
parent 33 2f43221d5e47
child 35 3bbec89e558e
Fix more hard-coded references (possibly the last ones).
source/page00/system.asm
source/page05/initial.asm
source/page7C/initial.asm
--- a/source/page00/system.asm	Fri May 09 06:10:57 2014 -0400
+++ b/source/page00/system.asm	Mon May 12 03:01:41 2014 -0400
@@ -10,7 +10,7 @@
 		jr		z, page0_408
 		di
 		res		5, (iy+1Fh)
-		ld		hl, 403h
+		ld		hl, page0_403
 		call	pushErrorHandleR
 		set		indicOnly, (iy+indicFlags)
 		ld		a, (mcxCurApp)
@@ -24,6 +24,7 @@
 		call	j_SendAck
 page0_400:
 		call	popErrorHandleR
+page0_403:
 		res		indicOnly, (iy+indicFlags)
 		ei
 page0_408:
--- a/source/page05/initial.asm	Fri May 09 06:10:57 2014 -0400
+++ b/source/page05/initial.asm	Mon May 12 03:01:41 2014 -0400
@@ -155,7 +155,7 @@
 
 
 p05sub_40EA:
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_40F7
 		call	popErrorHandleR
@@ -426,7 +426,7 @@
 p05loc_429D:
 		call	IsEditEmpty
 		ret		z
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_40F7
 		jr		nz, p05loc_42B7
@@ -941,7 +941,7 @@
 ; ---------------------------------------------------------------------------
 
 p05loc_4552:
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_47C2
 		call	p05sub_478B
@@ -2928,7 +2928,7 @@
 		ld		hl, (unk_9704)
 		call	p05sub_5B17
 		ret		nc
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_552C
 		call	Page0Call_241E
@@ -4240,7 +4240,7 @@
 ; ---------------------------------------------------------------------------
 
 p05loc_5699:
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_56A9
 		call	p05sub_55B6
@@ -4701,7 +4701,7 @@
 
 
 p05sub_59A3:
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_59B0
 		call	popErrorHandleR
@@ -8109,7 +8109,7 @@
 ; ---------------------------------------------------------------------------
 
 p05loc_6B3E:
-		ld		hl, 615h
+		ld		hl, sysErrHandler
 		call	pushErrorHandleR
 		call	p05sub_6B60
 		call	p05sub_6248
--- a/source/page7C/initial.asm	Fri May 09 06:10:57 2014 -0400
+++ b/source/page7C/initial.asm	Mon May 12 03:01:41 2014 -0400
@@ -3142,9 +3142,9 @@
 ; ---------------------------------------------------------------------------
 
 p7Cloc_5381:
-		cp		0CAh ; '�'
+		cp		0CAh
 		jr		z, p7Cloc_5389
-		cp		0C9h ; '�'
+		cp		0C9h
 		jr		nz, p7Cloc_53F8
 
 p7Cloc_5389:
@@ -3159,7 +3159,7 @@
 		jr		z, p7Cloc_537E
 		call	p7Csub_6530
 		ld		a, (unk_867F)
-		ld		hl, 5F1h
+		ld		hl, JForceCmdNoChar
 		call	pushErrorHandleR
 		push	af
 		ld		a, 15h
@@ -3249,7 +3249,7 @@
 		call	p7Csub_6530
 		ld		hl, noErrorEntry
 		ld		(mcxErrorEP), hl
-		ld		hl, 5F1h
+		ld		hl, JForceCmdNoChar
 		call	pushErrorHandleR
 		call	p7Csub_6B48
 		cp		18h
@@ -3320,7 +3320,7 @@
 		cp		89h ; '�'
 		jr		nz, p7Cloc_54F4
 		call	p7Csub_6530
-		ld		hl, 5F1h
+		ld		hl, JForceCmdNoChar
 		call	pushErrorHandleR
 		call	p7Csub_6B48
 		call	SendAck