source/page00/math_var.asm
author brandonlw
Tue, 20 May 2014 02:59:10 -0400
changeset 41 9ef17625274f
parent 38 a4c5f839b738
child 43 486c42a314bc
permissions -rw-r--r--
Finished _newContext and other page 0 cleanup. Still lots left to go...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
     1
sub_BD1:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     2
		call	OP1ToOP3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     3
		call	OP2ToOP4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
     4
		jp		cpop1op2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     5
; End of function sub_BD1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     6
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     7
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     8
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
     9
Min:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    10
		call	sub_BD1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    11
		jp		c, OP3ToOP1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    12
		jp		OP4ToOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    13
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    14
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    15
Max:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    16
		call	sub_BD1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    17
		jp		c, OP4ToOP1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    18
		jp		OP3ToOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    19
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    20
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    21
page0_BEC:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    22
		call	Mov9ToOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    23
		jr		FPAdd
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    24
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    25
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    26
BCALL_405A:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    27
		call	ClrOP1S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    28
		call	ClrOP2S
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    29
		jr		FPAdd
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    30
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    31
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    32
BCALL_405D:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    33
		call	page0_14E1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    34
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    35
		ld		a, (OP1)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    36
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    37
		call	Trunc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    38
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    39
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    40
		jr		nz, Minus1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    41
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    42
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    43
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    44
page0_C0A:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    45
		call	InvOP1S
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    46
		jr		page0_C3D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    47
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    48
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    49
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    50
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    51
Trunc:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    52
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    53
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    54
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    55
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    56
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    57
		rst		8
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    58
		call	frac
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    59
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    60
InvSub:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    61
		call	InvOP1S
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    62
		jr		FPAdd
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    63
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    64
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    65
Times2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    66
		rst		8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    67
		jr		FPAdd
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    68
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    69
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    70
Plus1:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    71
		call	OP2Set1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    72
		jr		FPAdd
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    73
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    74
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    75
page0_C20:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    76
		call	Mov9ToOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    77
		jr		FPAdd
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    78
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    79
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    80
page0_C25:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    81
		call	Mov9ToOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    82
		jr		FPSub
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    83
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    84
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    85
Minus1:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    86
		call	OP2Set1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    87
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    88
FPSub:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    89
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    90
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    91
		xor		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    92
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    93
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
    94
FPAdd:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    95
		res		6, (iy+0Eh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    96
		call	page0_FB5
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
    97
		jr		page0_C41
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    98
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
    99
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   100
page0_C3D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   101
		set		6, (iy+0Eh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   102
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   103
page0_C41:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   104
		call	CkOP2FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   105
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   106
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   107
		jp		z, OP2ToOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   108
		call	OP1MOP2EXP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   109
		jr		nc, page0_C8E
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   110
		add		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   111
		ld		d, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   112
		ld		e, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   113
		ld		a, d
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   114
		ld		(OP1+1), a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   115
		sub		e
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   116
		cp		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   117
		jp		nc, OP2ToOP1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   118
		ld		b, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   119
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   120
page0_C5E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   121
		ld		hl, 847Ah
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   122
		call	SHR16
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   123
		djnz	page0_C5E
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   124
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   125
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   126
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   127
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   128
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   129
		xor		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   130
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   131
		ld		(OP1), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   132
		jr		z, page0_CAD
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   133
		call	sub_1415
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   134
		jr		nc, page0_CCF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   135
		call	sub_1397
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   136
		call	page0_141D
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   137
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   138
		xor		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   139
		ld		(OP1), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   140
		jp		page0_CD2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   141
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   142
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   143
page0_C8E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   144
		jr		z, page0_C9C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   145
		cp		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   146
		ret		nc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   147
		ld		b, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   148
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   149
page0_C94:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   150
		ld		hl, 8485h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   151
		call	SHR16
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   152
		djnz	page0_C94
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   153
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   154
page0_C9C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   155
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   156
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   157
		ld		(OP1), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   158
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   159
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   160
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   161
		xor		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   162
		jr		nz, page0_CC4
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   163
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   164
page0_CAD:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   165
		call	page0_139F
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   166
		jr		nc, page0_CB8
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   167
		call	sub_12F5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   168
		call	INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   169
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   170
page0_CB8:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   171
		call	sub_CDF
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   172
		bit		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   173
		jr		z, page0_D06
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   174
		jp		LJNORND
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   175
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   176
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   177
page0_CC4:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   178
		call	page0_141D
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   179
		jr		nc, page0_CD2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   180
		call	page0_139F
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   181
		call	sub_1415
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   182
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   183
page0_CCF:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   184
		call	OP2ToOP1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   185
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   186
page0_CD2:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   187
		call	sub_CDF
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   188
		bit		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   189
		jp		z, LJRND
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   190
		jp		LJNORND
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   191
; End of function Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   192
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   193
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   194
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   195
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   196
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   197
sub_CDF:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
   198
		; Trunc:loc_CD2p
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   199
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   200
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   201
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   202
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   203
		ld		hl, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   204
		ld		b, 6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   205
		call	sub_1525
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   206
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   207
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   208
		cp		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   209
		ret		nc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   210
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   211
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   212
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   213
		jp		OP1Set0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   214
; End of function sub_CDF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   215
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   216
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   217
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   218
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   219
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   220
page0_CF2:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   221
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   222
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   223
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   224
		ld		a, 5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   225
		jr		page0_CF7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   226
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   227
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   228
page0_CF6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   229
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   230
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   231
page0_CF7:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   232
		call	GETCONOP2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   233
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   234
page0_CFA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   235
		set		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   236
		jr		page0_D26
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   237
; End of function page0_CF2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   238
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   239
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   240
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   241
DToR:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   242
		call	page0_FB5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   243
		call	page0_CF2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   244
; START	OF FUNCTION CHUNK FOR Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   245
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   246
page0_D06:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   247
		jp		page0_E2D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   248
; END OF FUNCTION CHUNK	FOR Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   249
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   250
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   251
RToD:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   252
		call	page0_FB5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   253
		call	page0_CF6
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   254
		jr		page0_D06
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   255
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   256
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   257
Cube:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   258
		call	FPSquare
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   259
		jr		FPMult
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   260
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   261
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   262
TimesPt5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   263
		ld		hl, page0_FC3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   264
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   265
page0_D19:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   266
		call	Mov9ToOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   267
		jr		FPMult
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   268
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   269
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   270
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   271
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   272
FPSquare:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   273
		rst		8
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   274
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   275
FPMult:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   276
		res		6, (iy+0Eh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   277
		call	page0_FB5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   278
; End of function FPSquare
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   279
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   280
; START	OF FUNCTION CHUNK FOR page0_CF2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   281
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   282
page0_D26:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   283
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   284
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   285
		call	CkOP2FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   286
		jp		z, OP2ToOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   287
		call	page0_E9E
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   288
		ld		a, d
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   289
		ld		(OP1+1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   290
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   291
page0_D37:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   292
		call	ZeroOP3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   293
		ld		b, 8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   294
		ld		hl, 848Dh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   295
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   296
page0_D3F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   297
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   298
		cp		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   299
		jr		nz, page0_D4F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   300
		djnz	page0_D3F
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   301
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   302
page0_D45:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   303
		ld		hl, 848Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   304
		call	SHR16
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   305
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   306
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   307
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   308
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   309
page0_D4F:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   310
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   311
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   312
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   313
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   314
		and		0Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   315
		jr		z, page0_D96
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   316
		ld		b, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   317
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   318
page0_D58:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   319
		ld		de, 8497h
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   320
		ld		hl, (OP1+8)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   321
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   322
		add		a, h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   323
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   324
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   325
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   326
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   327
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   328
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   329
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   330
		dec		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   331
		ld		hl, (OP1+6)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   332
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   333
		adc	a, h
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   334
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   335
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   336
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   337
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   338
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   339
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   340
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   341
		dec		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   342
		ld		hl, (OP1+4)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   343
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   344
		adc	a, h
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   345
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   346
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   347
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   348
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   349
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   350
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   351
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   352
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   353
		ld		hl, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   354
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   355
		adc	a, h
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   356
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   357
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   358
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   359
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   360
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   361
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   362
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   363
		jp		nc, page0_D94
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   364
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   365
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   366
		inc		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   367
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   368
page0_D94:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   369
		djnz	page0_D58
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   370
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   371
page0_D96:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   372
		ld		hl, 848Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   373
		call	SHR16
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   374
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   375
		ld		a, c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   376
		rra
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   377
		rra
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   378
		rra
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   379
		rra
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   380
		and		0Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   381
		jr		z, page0_DE6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   382
		ld		b, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   383
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   384
page0_DA8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   385
		ld		de, 8497h
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   386
		ld		hl, (OP1+8)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   387
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   388
		add		a, h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   389
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   390
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   391
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   392
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   393
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   394
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   395
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   396
		dec		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   397
		ld		hl, (OP1+6)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   398
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   399
		adc	a, h
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   400
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   401
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   402
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   403
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   404
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   405
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   406
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   407
		dec		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   408
		ld		hl, (OP1+4)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   409
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   410
		adc	a, h
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   411
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   412
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   413
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   414
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   415
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   416
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   417
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   418
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   419
		ld		hl, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   420
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   421
		adc	a, h
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   422
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   423
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   424
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   425
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   426
		adc	a, l
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   427
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   428
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   429
		jp		nc, page0_DE4
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   430
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   431
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   432
		inc		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   433
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   434
page0_DE4:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   435
		djnz	page0_DA8
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   436
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   437
page0_DE6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   438
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   439
		dec		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   440
		jp		nz, page0_D45
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   441
		pop		hl
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   442
		ld		a, (OP3+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   443
		and		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   444
		jr		z, page0_DFD
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   445
		ld		hl, 848Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   446
		call	SHR16
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   447
		rrd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   448
		call	INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   449
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   450
page0_DFD:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   451
		call	page0_11CB
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   452
		bit		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   453
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   454
		jr		page0_E2D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   455
; END OF FUNCTION CHUNK	FOR page0_CF2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   456
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   457
; START	OF FUNCTION CHUNK FOR Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   458
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   459
LJRND:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   460
		ld		hl, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   461
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   462
		and		0F0h ;
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   463
		jr		nz, page0_E2D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   464
		ld		c, 10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   465
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   466
page0_E11:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   467
		dec		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   468
		jp		z, OP1Set0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   469
		call	page0_1301
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   470
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   471
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   472
		and		0F0h ;
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   473
		jp		z, page0_E11
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   474
		ld		a, 10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   475
		sub		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   476
		ld		c, a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   477
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   478
		sub		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   479
		jp		c, OP1Set0
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   480
		ld		(OP1+1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   481
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   482
page0_E2D:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
   483
		; page0_CF2+113j ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   484
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   485
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   486
		ld		(OP1), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   487
		ld		hl, 8481h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   488
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   489
		ld		(hl), 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   490
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   491
		add		a, 0B0h	; 'Ч
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   492
		ret		nc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   493
		call	sub_1373
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   494
		ret		nc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   495
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   496
		ld		(hl), 10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   497
		jp		INCO1EXP
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   498
; END OF FUNCTION CHUNK	FOR Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   499
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   500
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   501
InvOP1SC:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   502
		call	InvOP2S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   503
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   504
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   505
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   506
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   507
InvOP1S:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
   508
		; Trunc:InvSubp
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   509
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   510
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   511
		jr		nz, page0_E56
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   512
		or		80h ; ''
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   513
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   514
page0_E56:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   515
		xor		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   516
		ld		(OP1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   517
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   518
; End of function InvOP1S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   519
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   520
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   521
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   522
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   523
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   524
InvOP2S:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   525
		call	CkOP2FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   526
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   527
		jr		nz, page0_E66
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   528
		or		80h ; ''
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   529
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   530
page0_E66:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   531
		xor		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   532
		ld		(OP2), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   533
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   534
; End of function InvOP2S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   535
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   536
; ---------------------------------------------------------------------------
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   537
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   538
		ld		(OP1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   539
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   540
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   541
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   542
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   543
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   544
frac:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   545
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   546
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   547
		xor		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   548
		ld		(OP1+9), a
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   549
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   550
		sub		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   551
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   552
		cp		0Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   553
		jr		c, page0_E8E
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   554
		jr		page0_EBE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   555
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   556
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   557
page0_E86:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   558
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   559
		cp		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   560
		jp		c, LJRND
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   561
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   562
page0_E8E:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   563
		call	page0_12EF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   564
		call	DecO1Exp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   565
		jr		page0_E86
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   566
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   567
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   568
page0_E96:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   569
		ld		a, (OP2+1)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   570
		cpl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   571
		inc		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   572
		ld		d, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   573
		jr		page0_EA2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   574
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   575
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   576
page0_E9E:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   577
		ld		a, (OP2+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   578
		ld		d, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   579
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   580
page0_EA2:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   581
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   582
		add		a, d
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   583
		jr		nc, page0_EAF
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   584
		add		a, 80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   585
		jr		nc, page0_EB3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   586
		jp		ErrOverflow
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   587
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   588
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   589
page0_EAF:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   590
		add		a, 80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   591
		jr		nc, page0_EBD
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   592
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   593
page0_EB3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   594
		ld		d, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   595
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   596
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   597
		xor		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   598
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   599
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   600
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   601
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   602
page0_EBD:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   603
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   604
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   605
page0_EBE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   606
		jp		OP1Set0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   607
; End of function frac
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   608
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   609
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   610
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   611
page0_EC1:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   612
		call	Mov9ToOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   613
		jr		fpdiv
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   614
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   615
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   616
page0_EC6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   617
		set		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   618
		jr		page0_ED7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   619
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   620
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   621
fprecip:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   622
		rst		8
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   623
		call	OP1Set1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   624
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   625
fpdiv:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   626
		res		6, (iy+0Eh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   627
		call	page0_FB5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   628
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   629
page0_ED7:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   630
		call	CkOP2FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   631
		jp		z, ErrDivBy0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   632
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   633
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   634
		call	page0_E96
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   635
		ld		e, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   636
		ld		(OP3), de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   637
		xor		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   638
		ld		(OP1+1), a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   639
		ld		b, 0Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   640
		bit		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   641
		jr		z, page0_EF7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   642
		ld		b, 10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   643
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   644
page0_EF7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   645
		ld		hl, 8490h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   646
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   647
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   648
		ld		hl, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   649
		ld		de, 8481h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   650
		call	SUB16D
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   651
		jr		nc, page0_F24
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   652
		ld		hl, 848Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   653
		dec		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   654
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   655
		cp		0FFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   656
		jr		nz, page0_F13
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   657
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   658
		jr		page0_EBE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   659
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   660
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   661
page0_F13:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   662
		ld		c, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   663
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   664
page0_F15:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   665
		ld		hl, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   666
		ld		de, 8481h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   667
		call	ADD16D
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   668
		call	page0_1301
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   669
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   670
		jr		page0_F25
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   671
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   672
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   673
page0_F24:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   674
		inc		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   675
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   676
page0_F25:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   677
		ld		de, 8481h
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   678
		ld		hl, (OP2+8)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   679
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   680
		sub		h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   681
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   682
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   683
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   684
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   685
		sbc		a, l
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   686
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   687
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   688
		dec		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   689
		ld		hl, (OP2+6)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   690
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   691
		sbc		a, h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   692
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   693
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   694
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   695
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   696
		sbc		a, l
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   697
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   698
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   699
		dec		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   700
		ld		hl, (OP2+4)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   701
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   702
		sbc		a, h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   703
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   704
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   705
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   706
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   707
		sbc		a, l
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   708
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   709
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   710
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   711
		ld		hl, (OP2M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   712
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   713
		sbc		a, h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   714
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   715
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   716
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   717
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   718
		sbc		a, l
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   719
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   720
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   721
		jp		nc, page0_F24
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   722
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   723
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   724
		dec		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   725
		jp		p, page0_F24
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   726
		bit		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   727
		jr		z, page0_F70
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   728
		bit		0, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   729
		jr		z, page0_F74
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   730
		jr		page0_F7F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   731
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   732
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   733
page0_F70:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   734
		bit		0, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   735
		jr		z, page0_F7F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   736
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   737
page0_F74:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   738
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   739
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   740
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   741
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   742
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   743
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   744
		dec		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   745
		jr		z, page0_F8A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   746
		jr		page0_F15
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   747
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   748
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   749
page0_F7F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   750
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   751
		ld		(hl), c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   752
		dec		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   753
		jr		z, page0_F8C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   754
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   755
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   756
		ld		c, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   757
		jr		page0_F15
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   758
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   759
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   760
page0_F8A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   761
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   762
		ld		(hl), c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   763
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   764
page0_F8C:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   765
		call	OP3ToOP1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   766
		bit		6, (iy+0Eh)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   767
		jp		z, LJRND
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   768
		jr		LJNORND
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   769
; START	OF FUNCTION CHUNK FOR Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   770
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   771
LJNORND:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   772
		ld		c, 11h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   773
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   774
page0_F9A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   775
		ld		a, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   776
		and		0F0h ;
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   777
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   778
		dec		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   779
		jr		z, page0_FAC
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   780
		call	page0_1301
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   781
		call	DecO1Exp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   782
		jr		nc, page0_F9A
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   783
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   784
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   785
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   786
page0_FAC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   787
		jp		OP1Set0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   788
; END OF FUNCTION CHUNK	FOR Trunc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   789
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   790
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   791
int:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   792
		ld		d, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   793
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   794
Round:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   795
		call	Page0Call_3E73
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   796
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   797
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   798
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   799
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   800
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   801
page0_FB5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   802
		xor		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   803
		ld		(OP1+9), a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   804
		ld		(OP2EXT), a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   805
		ld		(OP1+10), a
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
   806
		ld		(OP2+10), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   807
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   808
; End of function page0_FB5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   809
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   810
page0_FC3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   811
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   812
		.db		7Fh	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   813
		.db		50h	; P
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   814
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   815
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   816
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   817
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   818
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   819
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   820
page0_FCC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   821
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   822
		.db		7Fh	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   823
		.db		25h	; %
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   824
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   825
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   826
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   827
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   828
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   829
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   830
page0_FD5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   831
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   832
		.db		7Fh	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   833
		.db		75h	; u
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   834
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   835
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   836
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   837
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   838
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   839
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   840
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   841
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   842
page0_FDE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   843
		ld		a, 0E3h	; '㧍
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   844
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   845
page0_FE0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   846
		ld		hl, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   847
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   848
page0_FE3:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   849
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   850
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   851
		call	page0_1254
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   852
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   853
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   854
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   855
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   856
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   857
page0_FED:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   858
		.db		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   859
		.db		80h	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   860
		.db		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   861
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   862
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   863
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   864
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   865
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   866
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   867
page0_FF6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   868
		.db		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   869
		.db		80h	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   870
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   871
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   872
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   873
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   874
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   875
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   876
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   877
		.db		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   878
		.db		80h	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   879
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   880
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   881
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   882
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   883
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   884
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   885
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   886
unk_1008:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   887
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   888
		.db		80h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   889
unk_100A:		; 
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   890
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   891
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   892
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   893
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   894
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   895
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   896
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   897
unk_1011:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   898
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   899
		.db		80h	; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   900
		.db		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   901
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   902
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   903
unk_1016:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   904
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   905
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   906
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   907
		.db		0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   908
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   909
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   910
OPSet0DE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   911
		ld		hl, unk_1008
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   912
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   913
page0_101D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   914
		jp		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   915
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   916
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   917
page0_1020:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   918
		ld		hl, unk_1011
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   919
		jr		page0_101D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   920
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   921
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   922
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   923
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   924
HLTimes9:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
   925
		; DataSize:page0_2138p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   926
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   927
		ld		c, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   928
		add		hl, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   929
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   930
		add		hl, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   931
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   932
		add		hl, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   933
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   934
		add		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   935
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   936
; End of function HLTimes9
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   937
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   938
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   939
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   940
CkOP1Cplx:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   941
		ld		a, (OP1)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   942
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   943
page0_1032:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   944
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   945
		cp		0Ch
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   946
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   947
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   948
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   949
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   950
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   951
CkOP1Real:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
   952
		; EOP1NotRealp	...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   953
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   954
		and		1Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   955
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   956
; End of function CkOP1Real
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   957
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   958
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   959
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   960
page0_103D:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   961
		call	OP2ToOP1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   962
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   963
page0_1040:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   964
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   965
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   966
		and		0E0h ; '্
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   967
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   968
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   969
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   970
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   971
COP1Set0:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   972
		call	OP1Set0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   973
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   974
page0_104B:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   975
		call	OP2Set0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   976
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   977
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   978
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   979
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
   980
page0_104E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   981
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   982
		and		0E0h ; '্
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   983
		or		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   984
		ld		(OP1), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   985
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   986
		and		0E0h ; '্
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   987
		or		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   988
		ld		(OP2), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   989
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   990
; End of function page0_104E
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   991
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   992
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   993
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   994
page0_1063:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   995
		call	MovFrOP1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   996
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   997
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
   998
		jp		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
   999
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1000
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1001
CpOP4OP3:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1002
		call	OP4ToOP1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1003
		call	BCALL_4120
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1004
		jr		cpop1op2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1005
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1006
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1007
Mov9OP2Cp:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1008
		call	Mov9ToOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1009
		jr		cpop1op2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1010
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1011
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1012
AbsO1O2Cp:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1013
		call	ClrOP1S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1014
		call	ClrOP2S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1015
; START	OF FUNCTION CHUNK FOR sub_BD1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1016
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1017
cpop1op2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1018
		ld		a, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1019
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1020
		call	z, ZeroOP1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1021
		ld		a, (OP2M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1022
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1023
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1024
page0_1089:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1025
		call	z, ZeroOP2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1026
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1027
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1028
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1029
		jp		m, page0_10B0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1030
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1031
		jr		nz, page0_10C3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1032
		call	OP1MOP2EXP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1033
		ld		hl, 8485h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1034
		ld		de, 847Ah
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1035
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1036
page0_10A3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1037
		jr		nz, page0_10C3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1038
		ld		b, 7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1039
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1040
page0_10A7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1041
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1042
		cp		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1043
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1044
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1045
		inc		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1046
		djnz	page0_10A7
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1047
		jr		page0_10C3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1048
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1049
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1050
page0_10B0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1051
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1052
		jr		z, page0_10C1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1053
		ld		hl, 8479h
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  1054
		ld		a, (OP2+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1055
		sub		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1056
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1057
		ld		de, 8485h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1058
		jr		page0_10A3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1059
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1060
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1061
page0_10C1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1062
		sub		1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1063
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1064
page0_10C3:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  1065
		; sub_BD1:page0_10A3j ...
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1066
		push	af
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  1067
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1068
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1069
		call	z, OP1Set0
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  1070
		ld		a, (OP2+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1071
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1072
		call	z, OP2Set0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1073
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1074
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1075
; END OF FUNCTION CHUNK	FOR sub_BD1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1076
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1077
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1078
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1079
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1080
OP3ToOP4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1081
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1082
		ld		de, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1083
		jp		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1084
; End of function OP3ToOP4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1085
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1086
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1087
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1088
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1089
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1090
OP1ToOP4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1091
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1092
		ld		de, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1093
		jp		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1094
; End of function OP1ToOP4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1095
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1096
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1097
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1098
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1099
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1100
OP2ToOP4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1101
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1102
		ld		de, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1103
		jp		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1104
; End of function OP2ToOP4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1105
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1106
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1107
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1108
OP4ToOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1109
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1110
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1111
		jp		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1112
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1113
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1114
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1115
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1116
BCALL_4120:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1117
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1118
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1119
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1120
; End of function BCALL_4120
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1121
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1122
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1123
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1124
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1125
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1126
OP1ToOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1127
		ld		de, 848Eh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1128
; End of function OP1ToOP3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1129
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1130
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1131
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1132
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1133
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1134
sub_1103:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1135
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1136
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1137
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1138
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1139
OP5ToOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1140
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1141
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1142
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1143
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1144
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1145
OP5ToOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1146
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1147
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1148
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1149
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1150
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1151
OP5ToOP4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1152
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1153
		ld		de, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1154
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1155
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1156
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1157
OP1ToOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1158
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1159
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1160
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1161
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1162
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1163
OP6ToOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1164
		ld		hl, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1165
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1166
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1167
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1168
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1169
OP6ToOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1170
		ld		hl, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1171
		jr		page0_117C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1172
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1173
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1174
OP4ToOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1175
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1176
		jr		page0_117C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1177
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1178
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1179
OP5ToOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1180
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1181
		jr		page0_117C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1182
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1183
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1184
OP3ToOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1185
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1186
		jr		page0_117C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1187
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1188
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1189
OP6ToOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1190
		ld		hl, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1191
		jr		page0_114C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1192
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1193
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1194
OP4ToOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1195
		ld		hl, 8499h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1196
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1197
page0_114C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1198
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1199
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1200
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1201
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1202
OP3ToOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1203
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1204
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1205
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1206
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1207
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1208
OP2ToOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1209
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1210
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1211
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1212
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1213
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1214
OP2ToOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1215
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1216
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1217
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1218
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1219
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1220
OP1ToOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1221
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1222
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1223
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1224
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1225
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1226
OP1ToOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1227
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1228
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1229
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1230
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1231
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1232
OP2ToOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1233
		ld		hl, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1234
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1235
page0_117C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1236
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1237
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1238
Mov11B:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1239
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1240
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1241
Mov10B:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1242
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1243
; End of function sub_1103
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1244
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1245
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1246
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1247
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1248
Mov9B:
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1249
mov9B2:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1250
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1251
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1252
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1253
Mov8B:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1254
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1255
Mov7B:
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1256
Mov7B2:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1257
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1258
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1259
page0_1189:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1260
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1261
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1262
page0_118B:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1263
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1264
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1265
page0_118D:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1266
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1267
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1268
page0_118F:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1269
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1270
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1271
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1272
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1273
; End of function mov9B2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1274
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1275
; ---------------------------------------------------------------------------
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1276
		ld		de, 849Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1277
		ld		hl, 8485h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1278
		jr		Mov8B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1279
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1280
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1281
page0_119E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1282
		ld		hl, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1283
		ld		de, 849Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1284
		jr		Mov8B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1285
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1286
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1287
page0_11A6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1288
		ld		hl, 849Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1289
		jr		page0_11AE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1290
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1291
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1292
page0_11AB:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1293
		ld		hl, 8485h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1294
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1295
page0_11AE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1296
		ld		de, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1297
		jr		Mov8B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1298
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1299
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1300
page0_11B3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1301
		ld		de, 8485h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1302
		ld		hl, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1303
		jr		Mov7B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1304
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1305
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1306
page0_11BB:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1307
		ld		de, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1308
		ld		hl, 84A6h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1309
		jr		Mov7B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1310
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1311
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1312
page0_11C3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1313
		ld		de, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1314
		ld		hl, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1315
		jr		Mov7B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1316
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1317
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1318
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1319
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1320
page0_11CB:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1321
		ld		de, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1322
		ld		hl, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1323
		jr		Mov8B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1324
; End of function page0_11CB
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1325
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1326
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1327
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1328
page0_11D3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1329
		ld		de, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1330
		jr		Mov7B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1331
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1332
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1333
OP2ToOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1334
		ld		hl, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1335
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1336
page0_11DB:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1337
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1338
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1339
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1340
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1341
OP4ToOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1342
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1343
		jr		page0_11DB
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1344
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1345
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1346
OP5ToOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1347
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1348
		jr		page0_11DB
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1349
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1350
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1351
OP4ToOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1352
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1353
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1354
		jr		Mov11B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1355
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1356
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1357
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1358
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1359
Mov9ToOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1360
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1361
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1362
page0_11F5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1363
		jr		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1364
; End of function Mov9ToOP1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1365
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1366
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1367
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1368
Mov9OP1OP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1369
		rst		20h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1370
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1371
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1372
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1373
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1374
Mov9ToOP2:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  1375
		; Trunc:page0_C20p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1376
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1377
		jr		page0_11F5
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1378
; End of function Mov9ToOP2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1379
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1380
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1381
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1382
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1383
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1384
MovFrOP1:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1385
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1386
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1387
		jr		page0_11F5
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1388
; End of function MovFrOP1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1389
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1390
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1391
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1392
OP4Set1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1393
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1394
		jr		page0_1254
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1395
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1396
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1397
OP3Set1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1398
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1399
		jr		page0_1254
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1400
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1401
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1402
OP2Set8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1403
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1404
		ld		a, 80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1405
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1406
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1407
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1408
OP2Set5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1409
		ld		a, 50h ; 'P'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1410
; START	OF FUNCTION CHUNK FOR OP2Set0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1411
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1412
OP2SetA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1413
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1414
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1415
; END OF FUNCTION CHUNK	FOR OP2Set0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1416
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1417
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1418
OP2Set4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1419
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1420
		ld		a, 40h ; '@'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1421
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1422
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1423
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1424
OP2Set3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1425
		ld		hl, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1426
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1427
page0_1224:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1428
		ld		a, 30h ; '0'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1429
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1430
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1431
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1432
page0_1228:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1433
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1434
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1435
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1436
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1437
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1438
OP1Set1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1439
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1440
		jr		page0_1254
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1441
; End of function OP1Set1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1442
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1443
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1444
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1445
OP1Set4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1446
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1447
		ld		a, 40h ; '@'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1448
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1449
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1450
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1451
OP1Set3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1452
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1453
		ld		a, 30h ; '0'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1454
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1455
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1456
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1457
OP3Set2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1458
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1459
		jr		page0_1249
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1460
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1461
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1462
OP1Set2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1463
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1464
		jr		page0_1249
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1465
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1466
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1467
OP2Set2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1468
		ld		hl, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1469
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1470
page0_1249:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1471
		ld		a, 20h ; ' '
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1472
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1473
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1474
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1475
page0_124D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1476
		ld		a, 10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1477
		jr		page0_125C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1478
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1479
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1480
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1481
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1482
OP2Set1:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  1483
		; Trunc:Minus1p
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1484
		ld		hl, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1485
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1486
page0_1254:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1487
		ld		a, 10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1488
; End of function OP2Set1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1489
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1490
; START	OF FUNCTION CHUNK FOR sub_CDF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1491
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1492
page0_1256:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1493
		ld		(hl), 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1494
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1495
		ld		(hl), 80h ; ''
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1496
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1497
page0_125B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1498
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1499
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1500
page0_125C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1501
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1502
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1503
		jr		page0_1262
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1504
; END OF FUNCTION CHUNK	FOR sub_CDF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1505
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1506
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1507
Zero16D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1508
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1509
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1510
; START	OF FUNCTION CHUNK FOR sub_CDF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1511
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1512
page0_1262:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1513
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1514
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1515
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1516
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1517
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1518
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1519
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1520
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1521
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1522
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1523
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1524
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1525
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1526
page0_126E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1527
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1528
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1529
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1530
; END OF FUNCTION CHUNK	FOR sub_CDF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1531
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1532
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1533
OP5Set0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1534
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1535
		jr		OPSet0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1536
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1537
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1538
OP4Set0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1539
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1540
		jr		OPSet0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1541
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1542
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1543
OP3Set0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1544
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1545
		jr		OPSet0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1546
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1547
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1548
page0_1280:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  1549
		bit		fmtReal, (iy+numMode)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1550
		jp		nz, ErrNon_Real
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1551
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1552
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1553
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1554
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1555
OP2Set0:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  1556
		; sub_BD1+4FEp	...
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1557
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1558
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1559
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1560
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1561
		jr		OP2SetA
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1562
; End of function OP2Set0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1563
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1564
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1565
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1566
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1567
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1568
OP1Set0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1569
		ld		hl, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1570
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1571
OPSet0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1572
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1573
		jr		page0_1256
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1574
; End of function OP1Set0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1575
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1576
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1577
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1578
page0_1290:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1579
		ld		hl, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1580
		jr		Zero16D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1581
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1582
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1583
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1584
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1585
ZeroOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1586
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1587
		jr		ZeroOP
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1588
; End of function ZeroOP1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1589
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1590
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1591
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1592
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1593
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1594
ZeroOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1595
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1596
		jr		ZeroOP
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1597
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1598
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1599
ZeroOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1600
		ld		hl, 848Eh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1601
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1602
ZeroOP:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1603
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1604
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1605
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1606
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1607
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1608
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1609
		jr		page0_125B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1610
; End of function ZeroOP2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1611
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1612
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1613
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1614
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1615
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1616
ClrLp:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1617
		ld		(hl), 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1618
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1619
		djnz	ClrLp
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1620
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1621
; End of function ClrLp
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1622
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1623
; ---------------------------------------------------------------------------
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1624
		ld		a, c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1625
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1626
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1627
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1628
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1629
ShRAcc:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1630
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1631
		rra
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1632
		rra
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1633
		rra
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1634
		rra
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1635
		and		0Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1636
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1637
; End of function ShRAcc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1638
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1639
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1640
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1641
page0_12B8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1642
		ld		a, c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1643
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1644
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1645
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1646
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1647
ShLAcc:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1648
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1649
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1650
		add		a, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1651
		add		a, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1652
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1653
; End of function ShLAcc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1654
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1655
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1656
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1657
page0_12BE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1658
		ld		hl, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1659
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1660
		jr		SHR14
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1661
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1662
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1663
page0_12C4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1664
		ld		hl, 8479h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1665
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1666
ShR18:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1667
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1668
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1669
SHR18A:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1670
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1671
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1672
		jr		page0_12D1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1673
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1674
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1675
page0_12CD:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1676
		ld		hl, 847Ah
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1677
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1678
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1679
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1680
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1681
SHR16:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1682
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1683
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1684
page0_12D1:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1685
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1686
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1687
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1688
SHR14:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1689
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1690
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1691
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1692
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1693
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1694
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1695
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1696
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1697
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1698
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1699
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1700
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1701
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1702
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1703
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1704
; End of function SHR16
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1705
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1706
; ---------------------------------------------------------------------------
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1707
		ld		hl, 8496h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1708
		jr		page0_12F2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1709
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1710
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1711
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1712
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1713
page0_12EF:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1714
		ld		hl, 8480h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1715
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1716
page0_12F2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1717
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1718
		jr		SHL14
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1719
; End of function page0_12EF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1720
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1721
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1722
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1723
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1724
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1725
sub_12F5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1726
		ld		hl, 847Ah
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1727
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1728
page0_12F8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1729
		ld		a, 1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1730
		jr		page0_12D1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1731
; End of function sub_12F5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1732
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1733
; ---------------------------------------------------------------------------
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1734
		ld		hl, 8497h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1735
		jr		SHL16
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1736
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1737
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1738
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1739
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1740
page0_1301:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1741
		ld		hl, 8481h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1742
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1743
SHL16:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1744
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1745
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1746
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1747
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1748
SHL14:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1749
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1750
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1751
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1752
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1753
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1754
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1755
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1756
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1757
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1758
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1759
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1760
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1761
		rld
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1762
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1763
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1764
; End of function page0_1301
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1765
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1766
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1767
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1768
page0_131E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1769
		ld		a, (OP2)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1770
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1771
page0_1321:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1772
		ld		de, 849Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1773
		jr		SHRDRND
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1774
; ---------------------------------------------------------------------------
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1775
		ld		a, 1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1776
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1777
SRDO1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1778
		ld		de, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1779
		jr		SHRDRND
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1780
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1781
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1782
page0_132D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1783
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1784
		ld		hl, 84A5h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1785
		sub		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1786
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1787
page0_1332:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1788
		ld		de, 8485h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1789
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1790
SHRDRND:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1791
		srl	a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1792
		ld		hl, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1793
		jp		nz, page0_1350
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1794
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1795
		call	Mov8B
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1796
		ret		nc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1797
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1798
page0_1342:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1799
		ld		hl, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1800
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1801
		call	SHR14
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1802
		rrd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1803
		cp		5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1804
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1805
		jr		page0_136D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1806
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1807
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1808
page0_1350:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1809
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1810
		ld		b, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1811
		call	ClrLp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1812
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1813
		ld		hl, 8490h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1814
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1815
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1816
		cpl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1817
		add		a, 9
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1818
		jr		z, page0_1363
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1819
		ld		c, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1820
		ldir
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1821
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1822
page0_1363:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1823
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1824
		jr		c, page0_1342
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1825
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1826
		cp		50h ; 'P'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1827
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1828
		ld		hl, 8497h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1829
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1830
page0_136D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1831
		ld		a, 1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1832
		ld		b, 8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1833
		jr		ADDPROPLP
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1834
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1835
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1836
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1837
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1838
sub_1373:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1839
		ld		a, 1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1840
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1841
MANTPA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1842
		ld		b, 7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1843
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1844
ADDPROP:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1845
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1846
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1847
ADDPROPLP:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1848
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1849
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1850
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1851
		ret		nc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1852
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1853
		ld		a, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1854
		djnz	ADDPROPLP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1855
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1856
; End of function sub_1373
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1857
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1858
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1859
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1860
page0_1382:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1861
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1862
		and		1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1863
		ld		a, b
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1864
		call	z, ShLAcc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1865
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1866
page0_138B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1867
		ld		b, 8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1868
		jr		ADDPROP
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1869
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1870
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1871
page0_138F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1872
		ld		hl, 84A2h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1873
		ld		de, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1874
		jr		ADD16D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1875
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1876
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1877
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1878
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1879
sub_1397:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1880
		ld		hl, 8481h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1881
		ld		de, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1882
		jr		ADD16D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1883
; End of function sub_1397
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1884
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1885
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1886
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1887
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1888
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1889
page0_139F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1890
		ld		hl, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1891
		ld		de, 8481h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1892
		jr		ADD16D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1893
; ---------------------------------------------------------------------------
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1894
		ld		de, 848Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1895
		jr		page0_13AF
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1896
; ---------------------------------------------------------------------------
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1897
		ld		de, 8480h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1898
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1899
page0_13AF:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1900
		ld		hl, 848Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1901
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1902
		jr		ADD14D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1903
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1904
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1905
page0_13B5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1906
		ld		hl, 8497h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1907
		ld		de, 8481h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1908
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1909
ADD16D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1910
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1911
		add		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1912
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1913
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1914
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1915
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1916
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1917
ADD14D:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1918
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1919
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1920
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1921
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1922
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1923
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1924
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1925
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1926
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1927
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1928
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1929
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1930
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1931
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1932
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1933
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1934
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1935
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1936
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1937
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1938
page0_13D3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1939
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1940
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1941
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1942
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1943
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1944
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1945
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1946
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1947
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1948
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1949
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1950
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1951
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1952
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1953
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1954
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1955
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1956
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1957
		ld		a, (de)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1958
		adc	a, (hl)
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1959
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1960
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1961
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1962
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1963
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1964
; End of function page0_139F
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1965
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1966
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1967
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1968
page0_13EC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1969
		ld		a, (OP5)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1970
		and		80h ; ''
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1971
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1972
page0_13F1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1973
		ld		hl, 8497h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1974
		ld		de, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1975
		jr		nz, SUB16D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1976
		jp		ADD16D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1977
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1978
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1979
page0_13FC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1980
		ld		a, (OP5)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1981
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1982
		ld		hl, 8497h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1983
		ld		de, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1984
		jr		nz, SUB16D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1985
		jp		page0_13D3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1986
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1987
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1988
page0_140C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1989
		ld		hl, 8496h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1990
		ld		de, 8480h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1991
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1992
		jr		ADD14D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1993
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1994
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1995
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  1996
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  1997
sub_1415:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1998
		ld		hl, 8481h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  1999
		ld		de, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2000
		jr		SUB16D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2001
; End of function sub_1415
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2002
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2003
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2004
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2005
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2006
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2007
page0_141D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2008
		ld		hl, 848Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2009
		jr		page0_142D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2010
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2011
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2012
page0_1422:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2013
		ld		hl, 8481h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2014
		ld		de, 8497h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2015
		jr		SUB16D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2016
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2017
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2018
page0_142A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2019
		ld		hl, 8497h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2020
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2021
page0_142D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2022
		ld		de, 8481h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2023
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2024
SUB16D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2025
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2026
		sub		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2027
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2028
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2029
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2030
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2031
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2032
SUB14D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2033
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2034
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2035
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2036
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2037
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2038
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2039
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2040
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2041
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2042
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2043
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2044
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2045
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2046
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2047
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2048
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2049
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2050
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2051
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2052
page0_1448:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2053
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2054
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2055
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2056
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2057
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2058
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2059
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2060
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2061
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2062
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2063
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2064
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2065
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2066
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2067
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2068
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2069
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2070
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2071
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2072
		sbc		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2073
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2074
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2075
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2076
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2077
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2078
; End of function page0_141D
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2079
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2080
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2081
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2082
page0_1461:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2083
		ld		de, 84A1h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2084
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2085
		jr		SUB14D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2086
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2087
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2088
page0_1467:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2089
		ld		hl, 8480h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2090
		ld		de, 8496h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2091
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2092
		jr		SUB14D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2093
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2094
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2095
page0_1470:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2096
		ld		hl, 8496h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2097
		ld		de, 8480h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2098
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2099
		jr		SUB14D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2100
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2101
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2102
OP2ExOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2103
		ld		hl, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2104
		jr		page0_1498
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2105
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2106
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2107
OP5ExOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2108
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2109
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2110
		jr		page0_14B6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2111
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2112
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2113
OP1ExOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2114
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2115
		jr		page0_14B3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2116
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2117
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2118
OP1ExOP6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2119
		ld		hl, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2120
		jr		page0_14B3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2121
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2122
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2123
OP2ExOP4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2124
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2125
		jr		page0_1498
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2126
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2127
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2128
OP2ExOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2129
		ld		hl, 84A4h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2130
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2131
page0_1498:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2132
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2133
		jr		page0_14B6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2134
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2135
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2136
OP1ExOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2137
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2138
		jr		page0_14B3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2139
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2140
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2141
OP1ExOP4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2142
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2143
		jr		page0_14B3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2144
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2145
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2146
page0_14A7:
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2147
		call	j_RndGuard
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2148
		call	OP1ExOP2
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2149
		call	j_RndGuard
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2150
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2151
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2152
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2153
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2154
OP1ExOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2155
		ld		hl, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2156
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2157
page0_14B3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2158
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2159
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2160
page0_14B6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2161
		ld		b, 0Bh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2162
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2163
ExLp:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2164
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2165
		ld		c, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2166
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2167
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2168
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2169
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2170
		inc		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2171
		djnz	ExLp
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2172
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2173
; End of function OP1ExOP2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2174
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2175
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2176
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2177
CkOP1C0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2178
		ld		a, (OP2M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2179
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2180
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2181
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2182
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2183
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2184
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2185
CkOP1FP0:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  2186
		; page0_CF2:loc_D26p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2187
		ld		a, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2188
		and		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2189
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2190
; End of function CkOP1FP0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2191
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2192
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2193
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2194
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2195
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2196
CkOP2FP0:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  2197
		; page0_CF2+38p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2198
		ld		a, (OP2M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2199
		and		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2200
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2201
; End of function CkOP2FP0
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2202
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2203
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2204
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2205
page0_14D1:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2206
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2207
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2208
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2209
PosNo0Int:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2210
		ld		a, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2211
		sub		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2212
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2213
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2214
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2215
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2216
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2217
CKPosInt:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2218
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2219
		and		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2220
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2221
; End of function CKPosInt
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2222
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2223
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2224
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2225
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2226
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2227
page0_14E1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2228
		ld		hl, 8479h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2229
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2230
CKInt:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2231
		ld		d, 1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2232
		jr		page0_14EA
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2233
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2234
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2235
CKOdd:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2236
		ld		d, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2237
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2238
page0_14EA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2239
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2240
		ld		e, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2241
		sub		80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2242
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2243
		cp		0Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2244
		jr		c, page0_14F5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2245
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2246
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2247
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2248
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2249
page0_14F5:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2250
		srl	a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2251
		ld		b, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2252
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2253
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2254
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2255
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2256
		bit		0, d
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2257
		jr		nz, page0_1509
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2258
		bit		0, e
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2259
		call	z, ShRAcc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2260
		and		1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2261
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2262
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2263
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2264
page0_1509:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2265
		bit		0, e
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2266
		jr		nz, page0_1510
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2267
		and		0Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2268
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2269
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2270
page0_1510:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2271
		ld		a, 6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2272
		sub		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2273
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2274
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2275
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2276
		jr		sub_1525
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2277
; End of function page0_14E1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2278
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2279
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2280
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2281
page0_1518:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2282
		ld		a, 10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2283
		jr		CKOP1M
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2284
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2285
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2286
page0_151C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2287
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2288
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2289
CKOP1M:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2290
		ld		hl, 847Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2291
		cp		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2292
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2293
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2294
		ld		b, 7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2295
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2296
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2297
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2298
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2299
sub_1525:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2300
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2301
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2302
page0_1526:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2303
		cp		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2304
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2305
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2306
		djnz	page0_1526
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2307
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2308
; End of function sub_1525
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2309
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2310
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2311
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2312
GETCONOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2313
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2314
		jr		page0_1534
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2315
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2316
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2317
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2318
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2319
GETCONOP2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2320
		ld		de, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2321
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2322
page0_1534:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2323
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2324
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2325
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2326
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2327
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2328
		ld		hl, unk_1544
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2329
		call	sub_18C3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2330
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2331
		ldi
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2332
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2333
; End of function GETCONOP2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2334
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2335
unk_1544:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2336
		.db		81h ; ü
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2337
		.db		57h ; W
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2338
		.db		29h ; )
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2339
		.db		57h ; W
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2340
		.db		79h ; y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2341
		.db		51h ; Q
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2342
		.db		30h ; 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2343
		.db		82h ; é
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2344
		.db		32h ; 2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2345
PIDIV2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2346
		.db		80h ; Ç
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2347
		.db		15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2348
		.db		70h ; p
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2349
		.db		79h ; y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2350
		.db		63h ; c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2351
		.db		26h ; &
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2352
		.db		79h ; y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2353
		.db		48h ; H
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2354
		.db		97h ; ù
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2355
PIDIV4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2356
		.db		7Fh ; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2357
		.db		78h ; x
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2358
		.db		53h ; S
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2359
		.db		98h ; ÿ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2360
		.db		16h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2361
		.db		33h ; 3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2362
		.db		97h ; ù
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2363
		.db		44h ; D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2364
		.db		83h ; â
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2365
		.db		7Fh ; 
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2366
		.db		43h ; C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2367
		.db		42h ; B
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2368
		.db		94h ; ö
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2369
		.db		48h ; H
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2370
		.db		19h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2371
		.db		3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2372
		.db		25h ; %
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2373
		.db		18h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2374
		.db		80h ; Ç
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2375
		.db		31h ; 1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2376
		.db		41h ; A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2377
		.db		59h ; Y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2378
		.db		26h ; &
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2379
		.db		53h ; S
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2380
		.db		58h ; X
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2381
		.db		98h ; ÿ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2382
		.db		0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2383
		.db		7Eh ; ~
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2384
		.db		17h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2385
		.db		45h ; E
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2386
		.db		32h ; 2
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2387
		.db		92h ; Æ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2388
		.db		51h ; Q
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2389
		.db		99h ; Ö
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2390
		.db		43h ; C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2391
		.db		30h ; 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2392
		.db		80h ; Ç
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2393
		.db		23h ; #
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2394
		.db		2
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2395
		.db		58h ; X
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2396
		.db		50h ; P
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2397
		.db		92h ; Æ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2398
		.db		99h ; Ö
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2399
		.db		40h ; @
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2400
		.db		46h ; F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2401
PItimes2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2402
		.db		62h ; b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2403
		.db		83h ; â
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2404
		.db		18h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2405
		.db		53h ; S
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2406
		.db		7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2407
		.db		17h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2408
		.db		96h ; û
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2409
PI:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2410
		.db		31h ; 1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2411
		.db		41h ; A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2412
		.db		59h ; Y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2413
		.db		26h ; &
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2414
		.db		53h ; S
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2415
		.db		58h ; X
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2416
unk_1590:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2417
		.db		98h ; ÿ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2418
		.db		78h ; x
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2419
		.db		53h ; S
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2420
		.db		98h ; ÿ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2421
		.db		16h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2422
		.db		33h ; 3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2423
		.db		97h ; ù
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2424
unk_1597:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2425
		.db		45h ; E
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2426
unk_1598:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2427
		.db		15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2428
		.db		70h ; p
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2429
		.db		79h ; y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2430
		.db		63h ; c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2431
		.db		26h ; &
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2432
		.db		79h ; y
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2433
		.db		49h ; I
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2434
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2435
ExpToHex:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2436
		ld		a, 80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2437
		sub		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2438
		jr		nc, page0_15A7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2439
		res		7, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2440
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2441
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2442
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2443
page0_15A7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2444
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2445
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2446
; End of function ExpToHex
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2447
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2448
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2449
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2450
OP1ExpToDec:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2451
		ld		hl, 8479h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2452
		call	ExpToHex
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2453
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2454
		and		0F0h ;
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2455
		call	ShRAcc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2456
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2457
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2458
		and		0Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2459
		add		a, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2460
		daa
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2461
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2462
page0_15BC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2463
		dec		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2464
		ret		m
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2465
		add		a, 16h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2466
		daa
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2467
		jr		nc, page0_15BC
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2468
		jp		ErrOverflow
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2469
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2470
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2471
ckop2pos:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2472
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2473
		jr		page0_15CE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2474
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2475
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2476
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2477
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2478
CkOP1Pos:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2479
		ld		a, (OP1)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2480
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2481
page0_15CE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2482
		and		80h ; ''
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2483
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2484
; End of function CkOP1Pos
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2485
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2486
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2487
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2488
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2489
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2490
ClrOP2S:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2491
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2492
		jr		page0_15D9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2493
; End of function ClrOP2S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2494
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2495
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2496
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2497
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2498
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2499
ClrOP1S:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2500
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2501
		ld		hl, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2502
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2503
page0_15D9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2504
		ld		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2505
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2506
page0_15DA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2507
		res		7, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2508
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2509
; End of function ClrOP1S
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2510
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2511
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2512
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2513
FDIV100:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2514
		call	FDIV10
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2515
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2516
FDIV10:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2517
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2518
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2519
		call	DecO1Exp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2520
		jp		z, OP1Set0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2521
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2522
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2523
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2524
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2525
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2526
DecO1Exp:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2527
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2528
		dec		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2529
		ld		(OP1+1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2530
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2531
; End of function DecO1Exp
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2532
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2533
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2534
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2535
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2536
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2537
INCO1EXP:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2538
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2539
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2540
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2541
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2542
		ld		hl, 8479h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2543
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2544
INCEXP:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2545
		inc		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2546
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2547
		jp		ErrOverflow
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2548
; End of function INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2549
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2550
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2551
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2552
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2553
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2554
CkValidNum:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2555
		ld		a, (OP1)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2556
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2557
page0_15FE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2558
		and		1Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2559
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2560
		jr		z, page0_1620
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2561
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2562
		jr		nz, page0_1639
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2563
		call	CkOP2FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2564
		jr		nz, page0_1614
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2565
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2566
page0_160C:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2567
		call	OP2Set0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2568
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2569
		ld		(OP2), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2570
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2571
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2572
page0_1614:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2573
		ld		a, (OP2+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2574
		cp		0E4h ; '䧍
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2575
		jp		nc, ErrOverflow
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2576
		cp		1Dh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2577
		jr		c, page0_160C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2578
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2579
page0_1620:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2580
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2581
		jr		nz, page0_162D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2582
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2583
page0_1625:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2584
		call	OP1Set0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2585
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2586
		ld		(OP1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2587
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2588
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2589
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2590
page0_162D:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2591
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2592
		cp		0E4h ; '䧍
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2593
		jp		nc, ErrOverflow
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2594
		cp		1Dh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2595
		jr		c, page0_1625
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2596
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2597
page0_1639:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2598
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2599
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2600
; End of function CkValidNum
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2601
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2602
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2603
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2604
GETEXP:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2605
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2606
		cp		80h ; ''
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2607
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2608
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2609
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2610
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2611
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2612
page0_1641:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2613
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2614
		cp		24h ; '$'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2615
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2616
; End of function page0_1641
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2617
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2618
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2619
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2620
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2621
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2622
HTimesL:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2623
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2624
		ld		h, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2625
		ld		d, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2626
		ld		e, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2627
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2628
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2629
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2630
page0_164E:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2631
		adc	hl, de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2632
		djnz	page0_164E
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2633
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2634
; End of function HTimesL
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2635
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2636
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2637
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2638
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2639
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2640
EOP1NotReal:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2641
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2642
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2643
		cp		0Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2644
		jp		z, ErrInvalid
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2645
		jp		ErrDataType
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2646
last_entry_to_OP1:
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2647
		ld		hl, 21h
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2648
		jr		{+}
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2649
command_buf_to_OP1:
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2650
		ld		hl, 23h
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2651
+:		ld		a, 5
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2652
AHLtoOP1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2653
		ld		(OP1), a
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2654
		jr		HLtoOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2655
page0_166E:
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2656
		ld		hl, 40h
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2657
page0_1671:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2658
		ld		a, 3
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2659
		jr		AHLtoOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2660
page0_1675:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2661
		ld		hl, 2A01h
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2662
HLtoOP1:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2663
		ld		(OP1+1), hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2664
		xor		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2665
		ld		(OP1+3), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2666
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2667
; END OF FUNCTION CHUNK	FOR page0_1671
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2668
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2669
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2670
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2671
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2672
sub_1680:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2673
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2674
		ld		a, 40h ; '@'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2675
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2676
page0_1682:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2677
		ld		h, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2678
		ld		l, 5Dh ; ']'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2679
		ld		a, 1
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2680
		jr		AHLtoOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2681
; End of function sub_1680
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2682
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2683
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2684
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2685
ThetaName:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2686
		ld		a, 5Bh ; '['
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2687
		jr		REALNAME
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2688
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2689
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2690
RName:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2691
		ld		a, 52h ; 'R'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2692
		jr		REALNAME
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2693
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2694
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2695
REGEQNAME:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2696
		ld		h, 1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2697
		ld		a, 3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2698
		jr		page0_169B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2699
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2700
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2701
RECURNNAME:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2702
		ld		a, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2703
		ld		h, 21h ; '!'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2704
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2705
page0_169B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2706
		ld		l, 62h ; 'b'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2707
		ld		(OP1), a
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2708
		jr		HLtoOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2709
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2710
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2711
XName:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2712
		ld		a, 58h ; 'X'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2713
		jr		REALNAME
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2714
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2715
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2716
YName:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2717
		ld		a, 59h ; 'Y'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2718
		jr		REALNAME
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2719
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2720
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2721
TName:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2722
		ld		a, 54h ; 'T'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2723
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2724
REALNAME:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2725
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2726
		call	ZeroOP1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2727
		pop		af
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2728
		ld		(OP1+1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2729
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2730
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2731
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2732
SETesTOfps:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2733
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2734
		ld		(ES), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2735
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2736
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2737
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2738
markTableDirty:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2739
		call	page0_1641
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2740
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2741
		rst		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2742
		set		7, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2743
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2744
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2745
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2746
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2747
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2748
page0_16C4:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2749
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2750
		cp		5Ch ; '\'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2751
		jr		nz, page0_16D3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2752
		ld		a, (OP1M)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2753
		ld		hl, 8D8Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2754
		cp		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2755
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2756
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2757
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2758
page0_16D3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2759
		cp		5Dh ; ']'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2760
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2761
		ld		hl, 8D2Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2762
		ld		b, 14h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2763
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2764
page0_16DB:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2765
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2766
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2767
		ld		de, 847Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2768
		ld		b, 5
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2769
		call	j_CmpSyms
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2770
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2771
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2772
		ld		bc, 5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2773
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2774
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2775
		cp		5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2776
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2777
		djnz	page0_16DB
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2778
		or		1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2779
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2780
; End of function page0_16C4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2781
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2782
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2783
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2784
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2785
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2786
page0_16F4:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2787
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2788
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2789
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2790
		call	ChkFindSym
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2791
		jp		c, ErrUndefined
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2792
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2793
page0_16FA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2794
		bit		6, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2795
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2796
		jp		SetTblGraphDraw
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2797
; End of function page0_16F4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2798
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2799
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2800
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2801
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2802
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2803
OP1MOP2EXP:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2804
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2805
		ld		hl, 8484h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2806
		sub		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2807
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2808
; End of function OP1MOP2EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2809
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2810
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2811
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2812
page0_1708:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2813
		ld		e, 81h ; 'g
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2814
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2815
OP1EXPMinusE:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  2816
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2817
		sub		e
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2818
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2819
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2820
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2821
page0_170F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2822
		ld		e, 7Fh ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2823
		jr		OP1EXPMinusE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2824
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2825
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2826
page0_1713:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2827
		ld		e, 8Ch ; '̧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2828
		jr		OP1EXPMinusE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2829
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2830
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2831
page0_1717:
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  2832
		call	IsOP1Num
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2833
		jp		z, ErrInvalid
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2834
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2835
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2836
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2837
CHKERRBREAK:
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  2838
		call	IsOnInterruptSet
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2839
		jp		nz, ErrBreak
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2840
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2841
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2842
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2843
page0_1725:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2844
		bit		5, (iy+9)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2845
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2846
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2847
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2848
page0_172A:
20
7b2a10ddc8f2 Assume 1,(iy+3) is the "drawing graph now" flag.
brandonlw
parents: 19
diff changeset
  2849
		bit		drawingGraph, (iy+graphFlags)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2850
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2851
38
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2852
isPtrHLA2ByteTok:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2853
		ld		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2854
isA2ByteTok:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2855
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2856
		push	hl
38
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2857
		ld		hl, _2ByteTokTable
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2858
		ld		bc, _2ByteTokTableEnd-_2ByteTokTable
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2859
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2860
		cpir
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2861
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2862
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2863
		ret
38
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2864
_2ByteTokTable:
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2865
		.db		5Ch
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2866
		.db		5Dh
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2867
		.db		5Eh
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2868
		.db		60h
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2869
		.db		61h
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2870
		.db		62h
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2871
		.db		63h
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2872
		.db		7Eh
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2873
		.db		0BBh
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2874
		.db		0AAh
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2875
_2ByteTokTableEnd:
a4c5f839b738 Cleanup of _Mon. This sucked a lot.
brandonlw
parents: 35
diff changeset
  2876
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2877
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2878
GETLASTENTRY:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2879
		ld		hl, 8E2Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2880
		ld		b, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2881
		ld		a, (numLastEntries)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2882
		cp		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2883
		jr		z, page0_1755
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2884
		inc		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2885
		jr		page0_1757
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2886
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2887
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2888
page0_1755:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2889
		ld		(hl), 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2890
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2891
page0_1757:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2892
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2893
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2894
		jr		nz, GETLASTENTRYPTR
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2895
		call	command_buf_to_OP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2896
		call	FINDPROGSYM
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2897
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2898
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2899
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2900
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2901
GETLASTENTRYPTR:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2902
		ld		hl, 8DA9h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2903
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2904
page0_1766:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2905
		dec		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2906
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2907
		ld		e, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2908
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2909
		ld		d, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2910
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2911
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2912
		jr		page0_1766
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2913
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2914
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2915
page0_176F:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2916
		call	CheckSplitFlag
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2917
		ret		z
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  2918
		bit		grfSChanged, (iy+sGrFlags)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2919
		jr		z, page0_1799
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2920
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2921
REGCLRCHNG:
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2922
		call	j_ClrLCDFull
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2923
		call	j_RunIndicOn
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2924
		ld		hl, (mcxErrorEP)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2925
		push	hl
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2926
		call	j_loadnoeentry
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  2927
		res		plotLoc, (iy+plotFlags)
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2928
		call	j_Regraph
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2929
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2930
		ld		(mcxErrorEP), hl
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2931
		call	j_RunIndicOff
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  2932
		res		grfSChanged, (iy+sGrFlags)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2933
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2934
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2935
page0_1799:
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  2936
		call	j_GrBufCpy
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2937
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2938
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2939
page0_179D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2940
		ld		a, (mcxCurApp)
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2941
		ld		hl, {+}
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2942
		ld		bc, 7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2943
		cpir
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2944
		ret
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2945
+:		.db	appStart
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2946
		.db	kYequ
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2947
		.db	kStatEd
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2948
		.db	kWindow
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2949
		.db	kGraph
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2950
		.db	kTable
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2951
		.db	kTblSet
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2952
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2953
page0_17B0:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2954
		call	CkOP1Real
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2955
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2956
page0_17B3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2957
		cp		15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2958
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2959
		cp		17h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2960
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2961
		jr		page0_17BE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2962
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2963
page0_17BB:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2964
		call	CkOP1Real
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2965
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2966
page0_17BE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2967
		cp		5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2968
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2969
		cp		16h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2970
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2971
		cp		6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2972
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2973
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2974
page0_17C7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2975
		ld		a, d
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2976
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2977
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2978
		ld		a, e
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2979
		cp		3Fh ; '?'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2980
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2981
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2982
CheckSplitFlag:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  2983
		bit		grfSplitOverride, (iy+sGrFlags)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2984
		jr		z, page0_17D6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2985
		cp		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2986
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2987
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  2988
page0_17D6:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  2989
		bit		grfSplit, (iy+sGrFlags)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2990
		ret
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2991
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2992
ResetSplitOverride:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  2993
		res		grfSplitOverride, (iy+sGrFlags)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2994
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2995
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2996
page0_17E0:
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  2997
		ld		hl, OP1+2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  2998
		set		0, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  2999
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3000
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3001
page0_17E6:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3002
		call	page0_16F4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3003
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3004
page0_17E9:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  3005
		bit		statsValid, (iy+statFlags)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3006
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3007
		call	page0_16C4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3008
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3009
		rst		8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3010
		rst		10h
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  3011
		call	j_DelRes
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3012
		jp		OP2ToOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3013
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3014
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3015
RESETWINTOP:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3016
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3017
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3018
		call	CheckSplitFlag
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3019
		jr		z, page0_1803
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3020
		add		a, 4
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3021
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3022
page0_1803:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3023
		ld		(winTop), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3024
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3025
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3026
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3027
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3028
page0_1808:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3029
		cp		0FEh ;
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3030
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3031
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3032
		ld		a, (keyExtend)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3033
		cp		0BDh ; 'ݧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3034
		ld		a, b
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3035
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3036
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3037
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3038
SetYUp:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3039
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3040
		ld		a, 7
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3041
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3042
page0_1816:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3043
		call	lcd_busy
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3044
		out		(10h), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3045
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3046
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3047
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3048
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3049
SetXUp:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3050
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3051
		ld		a, 5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3052
		jr		page0_1816
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3053
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3054
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3055
ISO1NONTLSTorPROG:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3056
		call	page0_17B0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3057
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3058
		call	page0_17BB
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3059
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3060
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3061
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3062
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3063
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3064
ISO1NONTEMPLST:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3065
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3066
		cp		5Dh ; ']'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3067
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3068
; End of function ISO1NONTEMPLST
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3069
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3070
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3071
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3072
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3073
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3074
IS_A_LSTorCLST:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3075
		; page0_19F8+66p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3076
		cp		1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3077
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3078
		cp		0Dh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3079
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3080
; End of function IS_A_LSTorCLST
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3081
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3082
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3083
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3084
CHK_HL_999:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3085
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3086
		ld		de, 3E8h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3087
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3088
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3089
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3090
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3091
		jp		ErrDimension
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3092
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3093
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3094
page0_1842:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3095
		set		6, (iy+0Fh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3096
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3097
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3098
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3099
page0_1847:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3100
		res		6, (iy+0Fh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3101
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3102
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3103
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3104
page0_184C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3105
		bit		6, (iy+0Fh)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3106
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3107
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3108
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3109
page0_1851:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3110
		call	EOP1NotReal
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3111
		jp		PushRealO1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3112
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3113
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3114
equ_or_newequ:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3115
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3116
		cp		3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3117
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3118
		cp		0Bh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3119
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3120
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3121
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3122
page0_185F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3123
		ld		a, (iy+17h)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3124
		and		3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3125
		cp		1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3126
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3127
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3128
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3129
page0_1867:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3130
		ld		hl, 91D0h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3131
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3132
page0_186A:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3133
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3134
		rst		20h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3135
		call	Plus1
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3136
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3137
		jp		MovFrOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3138
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3139
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3140
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3141
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3142
errd_op1notpos:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3143
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3144
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3145
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3146
		call	CkOP1Pos
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3147
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3148
page0_1876:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3149
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3150
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3151
page0_1877:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3152
		jp		ErrDomain
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3153
; End of function errd_op1notpos
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3154
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3155
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3156
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3157
ErrD_OP1Not_R:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3158
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3159
		jr		page0_1876
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3160
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3161
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3162
ErrD_OP1NotPosInt:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3163
		call	CKPosInt
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3164
		jr		page0_1876
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3165
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3166
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3167
ErrD_OP1_LE_0:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3168
		call	errd_op1notpos
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3169
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3170
ErrD_OP1_0:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3171
		call	CkOP1FP0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3172
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3173
		jr		page0_1877
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3174
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3175
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3176
FINDSYM_GET_SIZE:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3177
		call	FIND_E_UNDEF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3178
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3179
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3180
		call	ldHLind
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3181
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3182
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3183
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3184
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3185
STO_STATVAR:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3186
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3187
		call	CkValidNum
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3188
		pop		af
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  3189
		call	j_CMP_STATPTR
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3190
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3191
		jp		MovFrOP1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3192
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3193
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3194
Rcl_StatVar:
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  3195
		call	j_CMP_STATPTR
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3196
		rst		20h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3197
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3198
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3199
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3200
CkOP2Real:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3201
		ld		a, (OP2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3202
		and		1Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3203
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3204
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3205
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3206
page0_18AE:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3207
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3208
		cp		5Eh ; '^'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3209
		scf
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3210
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3211
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3212
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3213
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3214
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3215
Bit_VertSplit:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  3216
		bit		vertSplit, (iy+sGrFlags)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3217
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3218
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3219
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3220
GET_X_INDIRECT:
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  3221
		call	j_GET_INDEX_LST
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  3222
		call	j_GETL1TOP1A
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3223
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3224
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3225
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3226
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3227
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3228
sub_18C3:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3229
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3230
		ld		c, 9
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3231
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3232
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3233
		jr		page0_18CB
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3234
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3235
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3236
page0_18CA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3237
		add		a, c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3238
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3239
page0_18CB:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3240
		dec		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3241
		jp		p, page0_18CA
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3242
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3243
		ld		b, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3244
		add		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3245
		call	Mov8B
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3246
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3247
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3248
; End of function sub_18C3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3249
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3250
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3251
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3252
GetBytePaged:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3253
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3254
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3255
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3256
		in		a, (6)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3257
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3258
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3259
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3260
		ld		b, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3261
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3262
		jr		page0_18F1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3263
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3264
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  3265
IsOP1Num5:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3266
		call	sub_1901
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3267
		ld		de, 812Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3268
		ld		bc, 2Bh	; '+'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3269
		ldir
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3270
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3271
page0_18F0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3272
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3273
; START	OF FUNCTION CHUNK FOR sub_1901
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3274
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3275
page0_18F1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3276
		out		(6), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3277
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3278
; END OF FUNCTION CHUNK	FOR sub_1901
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3279
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3280
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3281
page0_18F4:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3282
		call	sub_1901
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3283
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3284
		ld		bc, 0FFFFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3285
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3286
		cpir
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3287
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3288
		jr		page0_18F0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3289
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3290
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3291
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3292
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3293
sub_1901:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3294
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3295
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3296
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3297
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3298
		in		a, (6)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3299
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3300
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3301
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3302
		ld		a, (unk_8156)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3303
		jr		page0_18F1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3304
; End of function sub_1901
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3305
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3306
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3307
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3308
page0_190B:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3309
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3310
		call	sub_1901
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3311
		ld		b, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3312
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3313
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3314
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3315
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3316
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3317
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3318
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3319
IsEditEmpty:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3320
		call	IsAtBtm
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3321
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3322
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3323
IsAtTop:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3324
		ld		hl, (editCursor)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3325
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3326
page0_191D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3327
		ld		de, (editTop)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3328
		jr		CpHLDE
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3329
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3330
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3331
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3332
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3333
IsAtBtm:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3334
		ld		de, (editTail)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3335
		ld		hl, (editBtm)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3336
; End of function IsAtBtm
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3337
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3338
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3339
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3340
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3341
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3342
CpHLDE:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3343
		; handleONKeyPress+1A0p ...
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3344
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3345
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3346
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3347
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3348
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3349
; End of function CpHLDE
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3350
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3351
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3352
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3353
ExecuteNewPrgm:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3354
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3355
		ld		de, 8479h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3356
		call	strcopy
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3357
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3358
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3359
		call	FINDPROGSYM
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3360
		jr		c, page0_194C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3361
		call	Page0Call_2420
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3362
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3363
		cp		6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3364
		jp		nz, Page0Call_24E1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3365
		call	DelVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3366
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3367
page0_194C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3368
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3369
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3370
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3371
		call	ldHLind
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3372
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3373
		ld		a, b
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3374
		call	CreateVar
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3375
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3376
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3377
		inc		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3378
		inc		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3379
		ldir
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3380
		jp		Page0Call_3E2B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3381
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3382
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3383
FillBasePageTable:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3384
		in		a, (6)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3385
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3386
		ld		de, 8245h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3387
		call	NZIf83Plus
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3388
		ld		a, 15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3389
		jr		nz, page0_1972
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3390
		ld		a, 69h ; 'i'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3391
		ld		de, 9C6Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3392
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3393
page0_1972:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3394
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3395
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3396
		ld		hl, 4000h
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  3397
		call	j_IsAHLAtValidAppHeader
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3398
		jr		nz, page0_1996
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3399
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3400
		ld		de, 8080h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3401
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3402
		rst		28h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3403
		ld		(hl), l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3404
		add		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3405
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3406
		jr		nz, page0_1996
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3407
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3408
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3409
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3410
		ld		b, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3411
		ld		c, b
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3412
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3413
page0_198D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3414
		ld		(de), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3415
		call	sub_19A4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3416
		djnz	page0_198D
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3417
		sub		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3418
		jr		page0_199C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3419
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3420
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3421
page0_1996:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3422
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3423
		ld		(de), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3424
		call	sub_19A4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3425
		dec		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3426
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3427
page0_199C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3428
		cp		7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3429
		jr		nz, page0_1972
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3430
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3431
		out		(6), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3432
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3433
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3434
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3435
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3436
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3437
sub_19A4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3438
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3439
		ld		hl, 9C25h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3440
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3441
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3442
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3443
		ld		de, 824Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3444
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3445
; End of function sub_19A4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3446
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3447
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3448
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3449
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3450
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3451
MemChk:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3452
		ld		hl, (OPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3453
		ld		bc, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3454
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3455
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3456
		jr		nc, page0_19C0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3457
		ld		hl, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3458
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3459
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3460
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3461
page0_19C0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3462
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3463
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3464
; End of function MemChk
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3465
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3466
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3467
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3468
CMPPRGNAMLEN1:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3469
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3470
		jr		page0_19C9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3471
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3472
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3473
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3474
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3475
CMPPRGNAMLEN:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3476
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3477
		ld		hl, 8479h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3478
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3479
page0_19C9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3480
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3481
		sub		5Dh ; ']'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3482
		ld		d, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3483
		ld		bc, 8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3484
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3485
		cpir
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3486
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3487
		ld		a, 8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3488
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3489
		inc		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3490
		sub		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3491
		cp		1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3492
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3493
		ld		e, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3494
		ld		a, d
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3495
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3496
		ld		a, e
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3497
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3498
		inc		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3499
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3500
; End of function CMPPRGNAMLEN
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3501
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3502
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3503
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3504
FindGroupSym:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3505
		ld		a, 17h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3506
		jr		page0_19E9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3507
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3508
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3509
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3510
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3511
FINDPROGSYM:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3512
		ld		a, 5
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3513
; End of function FINDPROGSYM
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3514
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3515
; START	OF FUNCTION CHUNK FOR ChkFindSym
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3516
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3517
page0_19E9:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3518
		; ChkFindSym+3j
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3519
		call	Page0Call_3E13
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3520
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3521
; END OF FUNCTION CHUNK	FOR ChkFindSym
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3522
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3523
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3524
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3525
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3526
ChkFindSym:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3527
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3528
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3529
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3530
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3531
		call	page0_17B0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3532
		jr		z, page0_19E9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3533
; End of function ChkFindSym
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3534
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3535
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3536
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3537
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3538
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3539
FindSym:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3540
		call	Page0Call_3E19
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3541
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3542
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3543
sub_19F6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3544
		ld		c, 9
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3545
page0_19F8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3546
		ld		b, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3547
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3548
		ld		hl, (OPBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3549
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3550
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3551
		ld		(OPBase), hl
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3552
		ld		a, (OP1+6)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3553
		cp		24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3554
		jr		z, page0_1A32
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3555
		ld		hl, (unk_982E)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3556
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3557
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3558
		ld		(unk_982E), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3559
		cp		72h ; 'r'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3560
		jr		z, page0_1A29
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3561
		cp		3Ah ; ':'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3562
		jr		z, page0_1A29
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3563
		call	CkOP1Real
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3564
		call	IS_A_LSTorCLST
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3565
		jr		z, page0_1A32
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3566
		call	page0_17B0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3567
		jr		z, page0_1A32
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3568
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3569
page0_1A29:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3570
		; page0_19F8+22j
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3571
		ld		hl, (progPtr)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3572
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3573
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3574
		ld		(progPtr), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3575
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3576
page0_1A32:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3577
		; page0_19F8+2Aj ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3578
		ld		de, (OPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3579
		add		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3580
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3581
		sbc		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3582
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3583
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3584
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3585
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3586
		ld		(OPS), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3587
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3588
		ld		d, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3589
		ld		e, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3590
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3591
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3592
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3593
		jr		z, page0_1A4C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3594
		ldir
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3595
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3596
page0_1A4C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3597
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3598
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3599
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3600
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3601
		ld		b, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3602
		ld		hl, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3603
		dec		b
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3604
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3605
page0_1A55:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3606
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3607
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3608
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3609
		dec		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3610
		djnz	page0_1A55
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3611
		call	CkOP1Real
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3612
		call	IS_A_LSTorCLST
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3613
		jr		nz, page0_1A6C
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3614
		ld		a, (OP1+6)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3615
		cp		24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3616
		jr		z, page0_1A6C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3617
		ld		(hl), 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3618
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3619
page0_1A6C:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3620
		; page0_19F8+70j
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3621
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3622
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3623
		pop		bc
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3624
		ld		a, (OP1+6)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3625
		cp		24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3626
		jr		z, page0_1A97
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3627
		cp		5Eh ; '^'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3628
		jr		z, page0_1A82
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3629
		cp		21h ; '!'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3630
		jr		z, page0_1A82
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3631
		cp		23h ; '#'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3632
		jr		nz, page0_1A8E
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3633
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3634
page0_1A82:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3635
		; page0_19F8+84j
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3636
		ld		a, (OP1+5)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3637
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3638
		jr		nz, page0_1A8E
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3639
		ld		hl, (OP1+3)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3640
		ld		(newDataPtr), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3641
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3642
page0_1A8E:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3643
		; page0_19F8+8Ej
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3644
		call	sub_23C4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3645
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3646
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3647
		inc		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3648
		call	page0_207C
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3649
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3650
page0_1A97:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3651
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3652
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3653
; End of function page0_19F8
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3654
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3655
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3656
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3657
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3658
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3659
page0_1A99:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3660
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3661
		ld		hl, (fpBase)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3662
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3663
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3664
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3665
		ld		(fpBase), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3666
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3667
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3668
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3669
		sbc		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3670
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3671
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3672
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3673
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3674
		ld		(FPS), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3675
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3676
		ld		d, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3677
		ld		e, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3678
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3679
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3680
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3681
		jr		z, page0_1AD2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3682
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3683
page0_1ABB:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3684
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3685
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3686
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3687
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3688
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3689
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3690
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3691
		ldd
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3692
		ldd
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3693
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3694
		or		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3695
		jp		nz, page0_1ABB
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3696
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3697
page0_1AD2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3698
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3699
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3700
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3701
		jr		z, page0_1B07
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3702
		ld		hl, (tempMem)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3703
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3704
		ld		(tempMem), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3705
		ld		hl, (newDataPtr)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3706
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3707
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3708
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3709
		jr		z, page0_1B08
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3710
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3711
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3712
		ld		c, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3713
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3714
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3715
		ld		de, (fpBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3716
		dec		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3717
		lddr
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3718
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3719
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3720
		call	sub_23C4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3721
		call	page0_1FF3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3722
		ld		bc, (freeRAM)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3723
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3724
page0_1AFF:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3725
		call	ADJPARSER
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3726
		call	ADJMATH
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3727
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3728
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3729
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3730
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3731
page0_1B07:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3732
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3733
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3734
page0_1B08:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3735
		dec		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3736
		call	sub_23C4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3737
		jr		page0_1AFF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3738
; End of function page0_1A99
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3739
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3740
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3741
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3742
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3743
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3744
InsertMem:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3745
		call	INSERTMEMA
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3746
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3747
		dec		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3748
		call	DELVAR3DC
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3749
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3750
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3751
; End of function InsertMem
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3752
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3753
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3754
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3755
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3756
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3757
INSERTMEMA:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3758
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3759
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3760
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3761
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3762
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3763
		jr		z, page0_1B30
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3764
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3765
		ld		c, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3766
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3767
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3768
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3769
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3770
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3771
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3772
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3773
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3774
		lddr
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3775
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3776
page0_1B30:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3777
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3778
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3779
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3780
; End of function INSERTMEMA
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3781
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3782
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3783
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3784
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3785
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3786
EnoughMem:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  3787
		; CMPMEMNEED+5p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3788
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3789
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3790
page0_1B34:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3791
		call	MemChk
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3792
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3793
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3794
		ret		nc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3795
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3796
		ld		hl, (unk_982E)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3797
		ld		bc, (OPBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3798
		inc		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3799
		ld		d, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3800
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3801
page0_1B46:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3802
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3803
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3804
		jr		c, page0_1B69
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3805
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3806
		bit		7, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3807
		jr		z, page0_1B63
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3808
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3809
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3810
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3811
		ld		e, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3812
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3813
		ld		d, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3814
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3815
		ld		b, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3816
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3817
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3818
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3819
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3820
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3821
		call	DelVar
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3822
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3823
		jr		page0_1B34
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3824
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3825
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3826
page0_1B63:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3827
		ld		e, 9
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3828
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3829
		jr		page0_1B46
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3830
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3831
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3832
page0_1B69:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3833
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3834
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3835
; End of function EnoughMem
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3836
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3837
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3838
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3839
page0_1B6B:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3840
		call	page0_17B0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3841
		jr		nz, page0_1B75
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3842
		call	CMPPRGNAMLEN
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3843
		jr		sub_1B7E
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3844
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3845
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3846
page0_1B75:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3847
		call	ISO1NONTEMPLST
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3848
		jr		nz, sub_1B7E
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3849
		call	CMPPRGNAMLEN
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3850
		inc		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3851
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3852
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3853
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3854
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3855
sub_1B7E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3856
		add		a, 7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3857
		ld		b, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3858
		ld		c, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3859
		call	page0_17B0
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3860
		ret		z
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3861
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3862
		cp		5Dh ; ']'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3863
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3864
		ld		c, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3865
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3866
; End of function sub_1B7E
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3867
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3868
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3869
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3870
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3871
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3872
CMPMEMNEED:
22
dea09e588bf1 Cleanup of page 0's boot.asm.
brandonlw
parents: 20
diff changeset
  3873
		; sub_1BA3:HandleRunIndicatorFp ...
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3874
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3875
		call	sub_1B7E
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3876
		add		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3877
		call	EnoughMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3878
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3879
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3880
; End of function CMPMEMNEED
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3881
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3882
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3883
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3884
CREATEPVAR4:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3885
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3886
		jr		CREATEPVAR3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3887
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3888
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3889
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3890
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3891
sub_1B9D:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3892
		call	HLTimes9
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3893
; End of function sub_1B9D
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3894
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3895
; START	OF FUNCTION CHUNK FOR sub_1BA3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3896
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3897
page0_1BA0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3898
		jp		c, ErrMemory
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3899
; END OF FUNCTION CHUNK	FOR sub_1BA3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3900
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3901
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3902
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3903
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3904
sub_1BA3:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3905
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3906
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3907
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3908
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3909
		ld		de, 2
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3910
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3911
		jr		c, page0_1BA0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3912
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3913
page0_1BA9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3914
		ld		(OP1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3915
		call	page0_17B3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3916
		jr		z, page0_1BC3
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3917
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3918
		cp		5Dh ; ']'
22
dea09e588bf1 Cleanup of page 0's boot.asm.
brandonlw
parents: 20
diff changeset
  3919
		jr		nz, HandleRunIndicatorF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3920
		call	CMPPRGNAMLEN
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3921
		cp		7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3922
		jp		nc, ErrSyntax
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3923
		inc		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3924
		jr		page0_1BC6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3925
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3926
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3927
page0_1BC3:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3928
		call	CMPPRGNAMLEN
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3929
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3930
page0_1BC6:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3931
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3932
		call	CMPMEMNEED
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3933
		jr		c, page0_1BA0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3934
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3935
CREATEPVAR3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3936
		or		1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3937
		call	page0_1A99
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3938
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3939
		call	OP1ToOP4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3940
		ld		de, 8486h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3941
		ld		hl, 8480h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3942
		ld		bc, 8
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3943
		lddr
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3944
		pop		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3945
		ld		(OP1+3), de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3946
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3947
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3948
page0_1BE6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3949
		ld		(OP1M), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3950
		xor		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3951
		ld		(OP1+5), a
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3952
		ld		(OP1+1), a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3953
		pop		af
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3954
		ld		(OP1+6), a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3955
		add		a, 7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3956
		ld		c, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3957
		call	page0_19F8
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3958
		ld		de, (OP1+3)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3959
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3960
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3961
22
dea09e588bf1 Cleanup of page 0's boot.asm.
brandonlw
parents: 20
diff changeset
  3962
HandleRunIndicatorF:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3963
		call	CMPMEMNEED
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3964
		jr		c, page0_1BA0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3965
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3966
CREATEVAR3:
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3967
		ld		a, (OP1+1)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3968
		cp		24h ; '$'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3969
		call	page0_1A99
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3970
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3971
		call	OP1ToOP4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3972
		ld		de, 8480h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3973
		ld		hl, 847Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3974
		ld		bc, 3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3975
		lddr
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3976
		pop		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3977
		ld		(OP1+3), de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3978
		xor		a
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3979
		ld		(OP1+5), a
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3980
		ld		(OP1+1), a
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3981
		ld		(OP1M), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3982
		call	sub_19F6
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  3983
		ld		de, (OP1+3)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3984
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3985
; End of function sub_1BA3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3986
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3987
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3988
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3989
CreateCplx:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3990
		ld		a, 0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3991
		ld		hl, 12h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3992
		jr		page0_1C3D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3993
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3994
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3995
CreateReal:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3996
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  3997
		ld		hl, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  3998
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  3999
page0_1C3D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4000
		jp		page0_1BA9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4001
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4002
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4003
CreateTempRList:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4004
		ld		a, 1
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  4005
		call	j_CREATETEMP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4006
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4007
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4008
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4009
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4010
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4011
CreateRList:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4012
		ld		a, 1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4013
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4014
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4015
page0_1C49:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4016
		call	sub_1B9D
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4017
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4018
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4019
		ld		h, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4020
		ld		l, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4021
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4022
		or		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4023
		jr		nz, page0_1C5A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4024
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4025
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4026
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4027
		dec		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4028
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4029
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4030
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4031
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4032
page0_1C5A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4033
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4034
		ld		(hl), e
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4035
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4036
		ld		(hl), d
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4037
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4038
		ld		(hl), 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4039
		ld		a, (OP4)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4040
		bit		3, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4041
		jr		z, page0_1C6A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4042
		ld		(hl), 0Ch
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4043
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4044
page0_1C6A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4045
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4046
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4047
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4048
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4049
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4050
; End of function CreateRList
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4051
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4052
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4053
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4054
CREATETCLIST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4055
		ld		a, 0Dh
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  4056
		call	j_CREATETEMP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4057
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4058
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4059
CreateCList:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4060
		ld		a, 0Dh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4061
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4062
		add		hl, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4063
		jr		page0_1C49
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4064
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4065
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4066
CreateTempRMat:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4067
		ld		a, 2
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  4068
		call	j_CREATETEMP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4069
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4070
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4071
CreateRMat:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4072
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4073
		call	HTimesL
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4074
		ld		a, 2
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4075
		jr		page0_1C49
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4076
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4077
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4078
CreateTempString:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4079
		ld		a, 4
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  4080
		call	j_CREATETEMP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4081
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4082
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4083
CreateStrng:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4084
		ld		a, 4
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4085
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4086
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4087
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4088
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4089
CreateVar:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4090
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4091
		call	sub_1BA3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4092
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4093
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4094
		ld		(hl), c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4095
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4096
		ld		(hl), b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4097
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4098
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4099
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4100
; End of function CreateVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4101
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4102
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4103
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4104
Create0Equ:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4105
		ld		hl, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4106
		jr		CreateEqu
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4107
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4108
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4109
CreateTempEqu:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4110
		ld		a, 3
16
27ca02d0d8aa Give meaningful names to the page 0 calls we know about so far.
brandonlw
parents: 8
diff changeset
  4111
		call	j_CREATETEMP
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4112
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4113
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4114
CreateEqu:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4115
		ld		a, 3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4116
		jr		CreateVar
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4117
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4118
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4119
CreatePict:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4120
		ld		a, 7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4121
		ld		hl, 2F4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4122
		jr		CreateVar
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4123
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4124
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4125
CreateGDB:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4126
		ld		a, 8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4127
		jr		CreateVar
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4128
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4129
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4130
CreateAppVar:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4131
		ld		a, 15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4132
		jr		CreateVar
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4133
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4134
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4135
CreateProtProg:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4136
		ld		a, 6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4137
		jr		CreateVar
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4138
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4139
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4140
CreateProg:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4141
		ld		a, 5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4142
		jr		CreateVar
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4143
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4144
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4145
page0_1CC3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4146
		ld		a, 17h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4147
		ld		(OP1), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4148
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4149
		call	CMPPRGNAMLEN
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4150
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4151
		ld		hl, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4152
		call	CMPMEMNEED
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4153
		jp		c, ErrMemory
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4154
		ld		de, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4155
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4156
		call	OP1ToOP4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4157
		ld		de, 8486h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4158
		ld		hl, 8480h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4159
		ld		bc, 8
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4160
		lddr
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4161
		pop		de
29
1c4ed1f8d543 Eliminate all the unnecessary OPx equates.
brandonlw
parents: 27
diff changeset
  4162
		ld		(OP1+3), de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4163
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4164
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4165
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4166
		jp		page0_1BE6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4167
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4168
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4169
CHKDEL:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4170
		ld		a, (OP1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4171
		ld		hl, (chkDelPtr2)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4172
		call	DataSize
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4173
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4174
CHKDELA:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4175
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4176
		ld		a, (OP4)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4177
		ld		hl, (chkDelPtr1)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4178
		call	DataSize
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4179
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4180
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4181
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4182
		jr		c, page0_1D24
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4183
		jr		z, page0_1D17
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4184
		ld		de, (chkDelPtr1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4185
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4186
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4187
		call	DelMem
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4188
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4189
page0_1D17:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4190
		ld		hl, (chkDelPtr3)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4191
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4192
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4193
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4194
		and		0E0h ; '্
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4195
		or		b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4196
		ld		(hl), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4197
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4198
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4199
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4200
page0_1D24:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4201
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4202
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4203
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4204
		sbc		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4205
		call	ErrNotEnoughMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4206
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4207
		ld		de, (chkDelPtr1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4208
		inc		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4209
		call	InsertMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4210
		jr		page0_1D17
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4211
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4212
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4213
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4214
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4215
ADJPARSER:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4216
		; sub_1FA3+2Fp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4217
		ld		hl, (basic_start)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4218
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4219
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4220
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4221
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4222
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4223
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4224
		ld		(basic_start), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4225
		ld		hl, (nextParseByte)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4226
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4227
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4228
		ld		(nextParseByte), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4229
		ld		hl, (basic_end)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4230
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4231
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4232
		ld		(basic_end), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4233
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4234
; End of function ADJPARSER
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4235
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4236
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4237
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4238
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4239
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4240
ADJMATH:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4241
		; sub_1FA3:DELVAR3Dp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4242
		ld		hl, (iMathPtr1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4243
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4244
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4245
		jr		c, page0_1D69
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4246
		jr		z, page0_1D69
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4247
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4248
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4249
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4250
		ld		(iMathPtr1), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4251
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4252
page0_1D69:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4253
		ld		hl, (iMathPtr2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4254
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4255
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4256
		jr		c, page0_1D7A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4257
		jr		z, page0_1D7A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4258
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4259
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4260
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4261
		ld		(iMathPtr2), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4262
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4263
page0_1D7A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4264
		ld		hl, (iMathPtr3)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4265
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4266
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4267
		jr		c, page0_1D8B
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4268
		jr		z, page0_1D8B
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4269
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4270
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4271
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4272
		ld		(iMathPtr3), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4273
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4274
page0_1D8B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4275
		ld		hl, (iMathPtr4)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4276
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4277
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4278
		jr		c, page0_1D9C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4279
		jr		z, page0_1D9C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4280
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4281
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4282
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4283
		ld		(iMathPtr4), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4284
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4285
page0_1D9C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4286
		ld		hl, (iMathPtr5)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4287
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4288
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4289
		jr		c, ADJM7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4290
		jr		z, ADJM7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4291
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4292
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4293
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4294
		ld		(iMathPtr5), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4295
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4296
ADJM7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4297
		ld		hl, (asm_data_ptr1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4298
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4299
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4300
		jr		c, page0_1DBE
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4301
		jr		z, page0_1DBE
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4302
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4303
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4304
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4305
		ld		(asm_data_ptr1), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4306
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4307
page0_1DBE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4308
		ld		hl, (asm_data_ptr2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4309
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4310
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4311
		jr		c, page0_1DCF
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4312
		jr		z, page0_1DCF
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4313
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4314
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4315
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4316
		ld		(asm_data_ptr2), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4317
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4318
page0_1DCF:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4319
		ld		hl, (fmtMatMem)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4320
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4321
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4322
		jr		c, page0_1DE0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4323
		jr		z, page0_1DE0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4324
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4325
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4326
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4327
		ld		(fmtMatMem), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4328
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4329
page0_1DE0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4330
		ld		hl, (newDataPtr)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4331
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4332
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4333
		jr		c, page0_1DF1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4334
		jr		z, page0_1DF1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4335
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4336
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4337
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4338
		ld		(newDataPtr), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4339
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4340
page0_1DF1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4341
		ld		hl, (EQS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4342
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4343
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4344
		jr		c, page0_1E02
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4345
		jr		z, page0_1E02
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4346
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4347
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4348
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4349
		ld		(EQS), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4350
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4351
page0_1E02:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4352
		ld		hl, (unk_9313)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4353
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4354
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4355
		jr		c, page0_1E13
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4356
		jr		z, page0_1E13
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4357
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4358
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4359
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4360
		ld		(unk_9313), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4361
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4362
page0_1E13:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4363
		ld		hl, (ES)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4364
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4365
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4366
		jr		c, page0_1E24
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4367
		jr		z, page0_1E24
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4368
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4369
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4370
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4371
		ld		(ES), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4372
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4373
page0_1E24:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4374
		ld		hl, (insDelPtr)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4375
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4376
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4377
		jr		c, page0_1E35
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4378
		jr		z, page0_1E35
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4379
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4380
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4381
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4382
		ld		(insDelPtr), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4383
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4384
page0_1E35:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4385
		ld		hl, (unk_9306)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4386
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4387
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4388
		jr		c, page0_1E46
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4389
		jr		z, page0_1E46
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4390
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4391
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4392
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4393
		ld		(unk_9306), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4394
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4395
page0_1E46:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4396
		ld		hl, (unk_9311)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4397
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4398
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4399
		jr		c, page0_1E57
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4400
		jr		z, page0_1E57
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4401
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4402
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4403
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4404
		ld		(unk_9311), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4405
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4406
page0_1E57:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4407
		ld		hl, (editDat)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4408
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4409
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4410
		jr		c, page0_1E68
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4411
		jr		z, page0_1E68
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4412
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4413
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4414
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4415
		ld		(editDat), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4416
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4417
page0_1E68:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4418
		ld		hl, (chkDelPtr1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4419
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4420
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4421
		jr		c, page0_1E79
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4422
		jr		z, page0_1E79
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4423
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4424
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4425
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4426
		ld		(chkDelPtr1), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4427
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4428
page0_1E79:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4429
		ld		hl, (XOutDat)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4430
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4431
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4432
		jr		c, page0_1E8A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4433
		jr		z, page0_1E8A
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4434
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4435
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4436
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4437
		ld		(XOutDat), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4438
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4439
page0_1E8A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4440
		ld		hl, (YOutDat)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4441
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4442
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4443
		jr		c, page0_1E9B
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4444
		jr		z, page0_1E9B
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4445
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4446
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4447
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4448
		ld		(YOutDat), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4449
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4450
page0_1E9B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4451
		ld		hl, (fOutDat)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4452
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4453
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4454
		jr		c, page0_1EAC
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4455
		jr		z, page0_1EAC
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4456
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4457
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4458
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4459
		ld		(fOutDat), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4460
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4461
page0_1EAC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4462
		ld		hl, (unk_84E7)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4463
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4464
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4465
		jr		c, page0_1EBD
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4466
		jr		z, page0_1EBD
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4467
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4468
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4469
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4470
		ld		(unk_84E7), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4471
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4472
page0_1EBD:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4473
		ld		hl, (inputDat)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4474
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4475
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4476
		jr		c, page0_1ECE
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4477
		jr		z, page0_1ECE
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4478
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4479
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4480
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4481
		ld		(inputDat), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4482
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4483
page0_1ECE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4484
		ld		hl, (chkDelPtr2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4485
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4486
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4487
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4488
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4489
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4490
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4491
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4492
		ld		(chkDelPtr2), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4493
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4494
; End of function ADJMATH
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4495
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4496
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4497
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4498
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4499
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4500
DELMEMA:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4501
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4502
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4503
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4504
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4505
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4506
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4507
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4508
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4509
		ld		c, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4510
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4511
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4512
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4513
		jr		z, page0_1EF1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4514
		ldir
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4515
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4516
page0_1EF1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4517
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4518
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4519
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4520
; End of function DELMEMA
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4521
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4522
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4523
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4524
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4525
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4526
GET_FORM_NUM:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4527
		call	Page0Call_2407
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4528
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4529
		cp		24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4530
		jr		nz, page0_1EFE
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4531
		xor		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4532
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4533
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4534
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4535
page0_1EFE:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4536
		ld		b, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4537
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4538
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4539
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4540
		ld		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4541
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4542
; End of function GET_FORM_NUM
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4543
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4544
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4545
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4546
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4547
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4548
page0_1F06:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4549
		; sub_1FA3:page0_1FB0p
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4550
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4551
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4552
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4553
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4554
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4555
		ld		bc, (OPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4556
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4557
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4558
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4559
		ld		c, l
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4560
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4561
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4562
		jr		z, page0_1F1B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4563
		lddr
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4564
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4565
page0_1F1B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4566
		ld		(OPS), de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4567
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4568
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4569
		ld		hl, (OPBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4570
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4571
		ld		(OPBase), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4572
		call	DelVarEntry
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4573
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4574
; End of function page0_1F06
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4575
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4576
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4577
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4578
DelVarArc:
24
12b896331796 More cleanup.
brandonlw
parents: 22
diff changeset
  4579
		call	IsBZero
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4580
		jr		z, DelVarNoArc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4581
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4582
page0_1F31:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4583
		call	page0_1F38
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4584
		call	Page0Call_3E25
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4585
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4586
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4587
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4588
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4589
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4590
page0_1F38:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4591
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4592
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4593
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4594
		ld		bc, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4595
		call	IsFixedName
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4596
		jr		nz, page0_1F4E
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4597
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4598
		call	Page0Call_2407
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4599
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4600
		add		a, 7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4601
		ld		b, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4602
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4603
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4604
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4605
page0_1F4E:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4606
		call	page0_1F06
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4607
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4608
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4609
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4610
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4611
; End of function page0_1F38
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4612
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4613
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4614
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4615
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4616
24
12b896331796 More cleanup.
brandonlw
parents: 22
diff changeset
  4617
IsBZero:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4618
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4619
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4620
		ret
24
12b896331796 More cleanup.
brandonlw
parents: 22
diff changeset
  4621
; End of function IsBZero
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4622
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4623
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4624
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4625
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4626
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4627
DelVar:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4628
		; EnoughMem+2Ap ...
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4629
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4630
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4631
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4632
24
12b896331796 More cleanup.
brandonlw
parents: 22
diff changeset
  4633
		call	IsBZero
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4634
		jp		nz, Page0Call_254D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4635
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4636
DelVarNoArc:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4637
		ld		a, (hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4638
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4639
DELVARIO:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4640
		bit		6, a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4641
		call	nz, SetTblGraphDraw
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4642
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4643
		ld		bc, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4644
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4645
		call	IsFixedName
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4646
		jr		nz, page0_1FB0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4647
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4648
		and		1Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4649
		call	IS_A_LSTorCLST
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4650
		jr		nz, page0_1FA5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4651
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4652
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4653
		call	GET_FORM_NUM
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4654
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4655
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4656
		jr		z, page0_1FA4
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4657
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4658
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4659
		call	sub_1FA3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4660
		ld		de, 9315h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4661
		call	sub_1103
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4662
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4663
		ld		l, 3Fh ; '?'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4664
		call	page0_1671
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4665
		rst		10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4666
		call	nc, DelVar
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4667
		ld		a, (OP1M)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4668
		call	Page0Call_25E7
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4669
		cpl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4670
		and		(hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4671
		ld		(hl), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4672
		ld		hl, 9315h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4673
		jp		page0_117C
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4674
; End of function DelVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4675
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4676
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4677
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4678
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4679
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4680
sub_1FA3:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4681
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4682
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4683
page0_1FA4:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4684
		push	de
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4685
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4686
page0_1FA5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4687
		ld		b, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4688
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4689
		call	Page0Call_2407
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4690
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4691
		add		a, 7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4692
		ld		c, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4693
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4694
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4695
page0_1FB0:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4696
		call	page0_1F06
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4697
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4698
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4699
		call	DataSize
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4700
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4701
DelMem:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4702
		call	DELMEMA
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4703
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4704
DELVAR3D:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4705
		call	ADJMATH
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4706
		nop
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4707
		nop
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4708
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4709
DELVAR3C:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4710
		ld		hl, (fpBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4711
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4712
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4713
		ld		(fpBase), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4714
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4715
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4716
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4717
		ld		(FPS), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4718
		call	ADJPARSER
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4719
		ld		hl, (tempMem)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4720
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4721
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4722
		jr		c, page0_1FED
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4723
		jr		z, page0_1FED
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4724
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4725
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4726
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4727
		ld		(tempMem), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4728
		jr		page0_1FF3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4729
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4730
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4731
DELVAR3DC:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4732
		call	sub_23C4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4733
		jr		DELVAR3D
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4734
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4735
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4736
page0_1FED:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4737
		ld		hl, (unk_982E)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4738
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4739
		jr		page0_1FF6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4740
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4741
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4742
page0_1FF3:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4743
		; sub_1FA3+43j
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4744
		ld		hl, 0FE66h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4745
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4746
page0_1FF6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4747
		ld		(freeRAM), bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4748
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4749
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4750
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4751
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4752
page0_1FFD:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4753
		ld		c, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4754
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4755
		ld		b, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4756
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4757
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4758
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4759
		jr		nc, page0_2019
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4760
		add		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4761
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4762
		ld		h, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4763
		ld		l, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4764
		ld		bc, (freeRAM)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4765
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4766
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4767
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4768
		ld		(hl), d
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4769
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4770
		ld		(hl), e
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4771
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4772
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4773
		jr		page0_201B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4774
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4775
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4776
page0_2019:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4777
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4778
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4779
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4780
page0_201B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4781
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4782
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4783
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4784
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4785
		push	af
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4786
		call	IsFixedName
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4787
		ld		c, 0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4788
		jr		nz, page0_202F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4789
		call	Page0Call_2407
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4790
		ld		c, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4791
		inc		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4792
		inc		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4793
		inc		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4794
		inc		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4795
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4796
page0_202F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4797
		ld		b, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4798
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4799
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4800
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4801
		ld		bc, (OPBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4802
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4803
		ret		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4804
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4805
		jp		page0_1FFD
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4806
; End of function sub_1FA3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4807
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4808
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4809
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4810
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4811
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4812
IsFixedName:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4813
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4814
		and		1Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4815
		call	page0_17B3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4816
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4817
		call	IS_A_LSTorCLST
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4818
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4819
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4820
		call	Page0Call_2407
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4821
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4822
		cp		24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4823
		jr		z, page0_205E
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4824
		cp		72h ; 'r'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4825
		jr		z, page0_205E
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4826
		cp		3Ah ; ':'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4827
		jr		z, page0_205E
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4828
		ld		a, 1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4829
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4830
page0_205E:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4831
		; IsFixedName+16j ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4832
		cp		1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4833
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4834
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4835
; End of function IsFixedName
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4836
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4837
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4838
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4839
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4840
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4841
DelVarEntry:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4842
		ld		hl, (unk_982E)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4843
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4844
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4845
		jr		nc, page0_206F
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4846
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4847
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4848
		ld		(unk_982E), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4849
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4850
page0_206F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4851
		ld		hl, (progPtr)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4852
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4853
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4854
		jr		nc, page0_207C
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4855
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4856
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4857
		ld		(progPtr), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4858
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4859
page0_207C:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  4860
		; DelVarEntry+13j
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4861
		ld		hl, (editSym)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4862
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4863
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4864
		jr		nc, page0_2089
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4865
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4866
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4867
		ld		(editSym), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4868
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4869
page0_2089:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4870
		ld		hl, (tSymPtr1)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4871
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4872
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4873
		jr		nc, page0_2096
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4874
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4875
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4876
		ld		(tSymPtr1), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4877
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4878
page0_2096:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4879
		ld		hl, (tSymPtr2)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4880
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4881
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4882
		jr		nc, page0_20A3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4883
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4884
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4885
		ld		(tSymPtr2), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4886
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4887
page0_20A3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4888
		ld		hl, (chkDelPtr3)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4889
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4890
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4891
		jr		nc, page0_20B0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4892
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4893
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4894
		ld		(chkDelPtr3), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4895
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4896
page0_20B0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4897
		ld		hl, (chkDelPtr4)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4898
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4899
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4900
		jr		nc, page0_20BD
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4901
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4902
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4903
		ld		(chkDelPtr4), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4904
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4905
page0_20BD:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4906
		ld		hl, (XOutSym)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4907
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4908
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4909
		jr		nc, page0_20CA
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4910
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4911
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4912
		ld		(XOutSym), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4913
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4914
page0_20CA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4915
		ld		hl, (YOutSym)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4916
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4917
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4918
		jr		nc, page0_20D7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4919
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4920
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4921
		ld		(YOutSym), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4922
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4923
page0_20D7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4924
		ld		hl, (inputSym)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4925
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4926
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4927
		jr		nc, page0_20E5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4928
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4929
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4930
		ld		(inputSym), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4931
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4932
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4933
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4934
page0_20E5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4935
		ld		hl, (fmtMatSym)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4936
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4937
		sbc		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4938
		ret		nc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4939
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4940
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4941
		ld		(fmtMatSym), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4942
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4943
; End of function DelVarEntry
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4944
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4945
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4946
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4947
DataSizeA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4948
		ld		d, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4949
		ld		e, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4950
		jr		page0_211A
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4951
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4952
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4953
page0_20F6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4954
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4955
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4956
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4957
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4958
Page0Call_20F8:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4959
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4960
		ld		de, 9
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4961
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4962
		jr		z, page0_20F6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4963
		ld		de, 12h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4964
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4965
		jr		z, page0_20F6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4966
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4967
		jr		page0_211A
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4968
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4969
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4970
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4971
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4972
DataSize:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4973
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4974
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4975
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4976
		ld		de, 9
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4977
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4978
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4979
		ld		de, 12h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4980
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4981
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4982
		ld		e, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4983
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4984
		ld		d, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4985
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4986
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  4987
page0_211A:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  4988
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4989
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4990
		cp		15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4991
		jr		z, page0_213D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4992
		cp		17h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4993
		jr		z, page0_213D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4994
		cp		16h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4995
		jr		z, page0_213D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4996
		cp		0Dh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4997
		jr		nz, page0_212F
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4998
		add		hl, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  4999
		jr		page0_2138
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5000
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5001
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5002
page0_212F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5003
		cp		3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5004
		jr		nc, page0_213D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5005
		cp		1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5006
		call	nz, HTimesL
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5007
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5008
page0_2138:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5009
		call	HLTimes9
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5010
		jr		c, page0_2141
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5011
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5012
page0_213D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5013
		ld		de, 2
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5014
		add		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5015
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5016
page0_2141:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5017
		jp		c, ErrMemory
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5018
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5019
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5020
		or		a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5021
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5022
; End of function DataSize
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5023
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5024
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5025
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5026
POPMCPLXO1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5027
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5028
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5029
POPMCPLX:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5030
		call	FPOPCPLX
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5031
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5032
MOVCPLX:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5033
		call	mov9B2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5034
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5035
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5036
		jp		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5037
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5038
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5039
popOP5:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5040
		call	PopRealO5
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5041
		ld		a, (OP5)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5042
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5043
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5044
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5045
		call	OP5ToOP6
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5046
		jr		PopRealO5
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5047
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5048
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5049
popOP3:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5050
		call	PopRealO3
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5051
		ld		a, (OP3)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5052
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5053
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5054
		ret		nz
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5055
		call	OP3ToOP4
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5056
		jr		PopRealO3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5057
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5058
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5059
popOP1:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5060
		call	PopRealO1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5061
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5062
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5063
		ret		nz
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5064
		rst		8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5065
		jr		PopRealO1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5066
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5067
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5068
PopRealO6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5069
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5070
		jr		PopReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5071
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5072
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5073
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5074
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5075
PopRealO5:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5076
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5077
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5078
		jr		PopReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5079
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5080
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5081
PopRealO4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5082
		ld		de, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5083
		jr		PopReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5084
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5085
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5086
PopRealO3:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5087
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5088
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5089
		jr		PopReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5090
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5091
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5092
PopRealO2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5093
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5094
		jr		PopReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5095
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5096
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5097
PopRealO1:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5098
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5099
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5100
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5101
PopReal:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5102
		call	FPOPREAL
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5103
		jp		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5104
; End of function PopRealO5
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5105
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5106
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5107
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5108
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5109
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5110
FPOPCPLX:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5111
		call	FPOPREAL
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5112
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5113
FPOPREAL:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5114
		ld		bc, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5115
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5116
FPOPFPS:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5117
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5118
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5119
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5120
		jr		page0_21BC
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5121
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5122
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5123
DeallocFPS:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5124
		call	HLTimes9
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5125
		ex		de, hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5126
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5127
DeallocFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5128
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5129
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5130
		sbc		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5131
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5132
page0_21BC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5133
		ld		(FPS), hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5134
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5135
; End of function FPOPCPLX
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5136
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5137
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5138
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5139
AllocFPS:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5140
		call	HLTimes9
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5141
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5142
AllocFPS1:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5143
		call	ErrNotEnoughMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5144
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5145
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5146
		jr		page0_21BC
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5147
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5148
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5149
PushRealO6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5150
		ld		hl, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5151
		jr		PushReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5152
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5153
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5154
PushRealO5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5155
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5156
		jr		PushReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5157
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5158
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5159
PushRealO4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5160
		ld		hl, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5161
		jr		PushReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5162
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5163
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5164
PushRealO3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5165
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5166
		jr		PushReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5167
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5168
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5169
PushRealO2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5170
		ld		hl, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5171
		jr		PushReal
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5172
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5173
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5174
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5175
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5176
PushRealO1:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5177
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5178
		ld		hl, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5179
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5180
PushReal:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5181
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5182
		ld		hl, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5183
		call	ErrNotEnoughMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5184
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5185
		ld		de, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5186
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5187
page0_21F4:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5188
		call	mov9B2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5189
		ld		(FPS), de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5190
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5191
; End of function PushRealO1
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5192
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5193
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5194
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5195
PushOP5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5196
		ld		a, (OP5)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5197
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5198
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5199
		jr		nz, PushRealO5
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5200
		ld		hl, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5201
		jr		PUSHMCPLX
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5202
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5203
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5204
PushOP3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5205
		ld		a, (OP3)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5206
		and		1Fh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5207
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5208
		jr		nz, PushRealO3
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5209
		ld		a, (OP4)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5210
		and		0E0h ; '্
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5211
		or		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5212
		ld		(OP4), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5213
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5214
PUSHMCPLXO3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5215
		ld		hl, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5216
		jr		PUSHMCPLX
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5217
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5218
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5219
PushOP1:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5220
		call	CkOP1Real
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5221
		cp		0Ch
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5222
		jr		nz, PushRealO1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5223
		call	page0_104E
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5224
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5225
PUSHMCPLXO1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5226
		ld		hl, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5227
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5228
PUSHMCPLX:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5229
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5230
		ld		hl, 12h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5231
		call	ErrNotEnoughMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5232
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5233
		ld		de, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5234
		call	mov9B2
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5235
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5236
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5237
		jr		page0_21F4
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5238
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5239
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5240
ExMCplxO1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5241
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5242
		ld		bc, 0FFEEh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5243
		add		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5244
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5245
		ld		b, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5246
		call	ExLp
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5247
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5248
		inc		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5249
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5250
Exch9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5251
		ld		b, 9
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5252
		jp		ExLp
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5253
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5254
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5255
CpyTo1FPS11:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5256
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5257
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5258
		ld		c, 6Ch ; 'l'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5259
		jr		page0_226F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5260
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5261
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5262
CpyTo2FPS5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5263
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5264
		jr		page0_226A
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5265
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5266
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5267
CpyTo1FPS5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5268
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5269
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5270
page0_226A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5271
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5272
		ld		c, 36h ; '6'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5273
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5274
page0_226F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5275
		jp		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5276
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5277
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5278
CpyTo2FPS6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5279
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5280
		jr		page0_227A
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5281
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5282
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5283
CpyTo1FPS6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5284
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5285
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5286
page0_227A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5287
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5288
		ld		c, 3Fh ; '?'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5289
		jr		page0_226F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5290
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5291
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5292
CpyTo2FPS7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5293
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5294
		jr		page0_2289
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5295
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5296
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5297
CpyTo1FPS7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5298
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5299
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5300
page0_2289:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5301
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5302
		ld		c, 48h ; 'H'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5303
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5304
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5305
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5306
CpyTo1FPS8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5307
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5308
		jr		page0_2298
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5309
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5310
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5311
CpyTo2FPS8:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5312
		ld		de, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5313
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5314
page0_2298:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5315
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5316
		ld		c, 51h ; 'Q'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5317
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5318
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5319
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5320
CpyTo1FPS10:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5321
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5322
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5323
		ld		c, 63h ; 'c'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5324
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5325
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5326
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5327
CpyTo1FPS9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5328
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5329
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5330
		ld		c, 5Ah ; 'Z'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5331
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5332
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5333
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5334
CpyTo2FPS4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5335
		ld		de, 8483h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5336
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5337
page0_22B6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5338
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5339
		ld		c, 2Dh ; '-'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5340
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5341
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5342
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5343
CpyTo6FPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5344
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5345
		jr		CPYFPS3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5346
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5347
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5348
CpyTo6FPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5349
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5350
		jr		CPYFPS2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5351
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5352
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5353
CpyTo2FPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5354
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5355
		jr		CPYFPS3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5356
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5357
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5358
CPYCTO1FPS3:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5359
		call	CpyTo2FPS2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5360
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5361
CpyTo1FPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5362
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5363
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5364
CPYFPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5365
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5366
		ld		c, 24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5367
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5368
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5369
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5370
CpyTo1FPS4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5371
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5372
		jr		page0_22B6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5373
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5374
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5375
CpyTo3FPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5376
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5377
		jr		CPYFPS2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5378
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5379
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5380
CpyTo5FPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5381
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5382
		jr		CPYFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5383
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5384
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5385
CpyTo6FPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5386
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5387
		jr		CPYFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5388
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5389
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5390
CpyTo4FPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5391
		ld		de, 8499h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5392
		jr		CPYFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5393
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5394
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5395
CpyTo3FPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5396
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5397
		jr		CPYFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5398
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5399
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5400
CpyTo2FPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5401
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5402
		jr		CPYFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5403
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5404
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5405
CpyTo1FPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5406
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5407
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5408
CPYFPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5409
		ld		hl, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5410
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5411
page0_2302:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5412
		ld		c, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5413
; START	OF FUNCTION CHUNK FOR CpyTo2FPS2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5414
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5415
CpyStack:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5416
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5417
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5418
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5419
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5420
		jp		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5421
; END OF FUNCTION CHUNK	FOR CpyTo2FPS2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5422
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5423
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5424
CpyTo3FPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5425
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5426
		jr		CPYFPS1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5427
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5428
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5429
CpyTo2FPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5430
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5431
		jr		CPYFPS1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5432
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5433
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5434
CpyTo1FPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5435
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5436
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5437
CPYFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5438
		ld		hl, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5439
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5440
page0_231B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5441
		ld		c, 12h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5442
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5443
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5444
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5445
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5446
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5447
CpyTo2FPS2:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5448
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5449
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5450
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5451
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5452
		jr		CPYFPS2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5453
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5454
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5455
CpyTo1FPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5456
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5457
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5458
CPYFPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5459
		ld		hl, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5460
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  5461
_checkThirdBankA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5462
		ld		c, 1Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5463
		jr		CpyStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5464
; End of function CpyTo2FPS2
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5465
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5466
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5467
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5468
CpyO3ToFPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5469
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5470
		jr		CpyToFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5471
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5472
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5473
CpyO2ToFPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5474
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5475
		jr		CpyToFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5476
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5477
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5478
CpyO6ToFPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5479
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5480
		jr		CpyToFPST
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5481
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5482
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5483
CpyO1ToFPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5484
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5485
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5486
CpyToFPST:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5487
		ld		hl, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5488
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5489
page0_2343:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5490
		ld		c, 9
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5491
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5492
CpyToStack:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5493
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5494
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5495
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5496
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5497
		jp		mov9B2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5498
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5499
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5500
CpyO3ToFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5501
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5502
		jr		CpyToFPS1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5503
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5504
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5505
CpyO5ToFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5506
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5507
		jr		CpyToFPS1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5508
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5509
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5510
CpyO2ToFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5511
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5512
		jr		CpyToFPS1
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5513
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5514
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5515
CpyO1ToFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5516
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5517
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5518
CpyToFPS1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5519
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5520
		ld		c, 12h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5521
		jr		CpyToStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5522
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5523
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5524
CpyO2ToFPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5525
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5526
		jr		CpyToFPS2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5527
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5528
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5529
CpyO3ToFPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5530
		ld		de, 848Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5531
		jr		CpyToFPS2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5532
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5533
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5534
CpyO6ToFPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5535
		ld		de, 84AFh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5536
		jr		CpyToFPS2
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5537
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5538
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5539
CpyO1ToFPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5540
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5541
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5542
CpyToFPS2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5543
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5544
		ld		c, 1Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5545
		jr		CpyToStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5546
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5547
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5548
CpyO5ToFPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5549
		ld		de, 84A4h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5550
		jr		CpyToFPS3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5551
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5552
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5553
CpyO2ToFPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5554
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5555
		jr		CpyToFPS3
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5556
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5557
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5558
CpyO1ToFPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5559
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5560
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5561
CpyToFPS3:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5562
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5563
		ld		c, 24h ; '$'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5564
		jr		CpyToStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5565
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5566
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5567
CpyO1ToFPS6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5568
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5569
		ld		c, 3Fh ; '?'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5570
		jr		page0_239F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5571
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5572
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5573
CpyO1ToFPS7:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5574
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5575
		ld		c, 48h ; 'H'
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5576
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5577
page0_239F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5578
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5579
		jr		CpyToStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5580
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5581
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5582
CpyO1ToFPS5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5583
		ld		de, 8478h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5584
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5585
		ld		c, 36h ; '6'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5586
		jr		CpyToStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5587
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5588
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5589
CpyO2ToFPS4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5590
		ld		de, 8483h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5591
		jr		page0_23B6
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5592
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5593
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5594
CpyO1ToFPS4:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5595
		ld		de, 8478h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5596
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5597
page0_23B6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5598
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5599
		ld		c, 2Dh ; '-'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5600
		jr		CpyToStack
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5601
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5602
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5603
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5604
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5605
ErrNotEnoughMem:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5606
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5607
		call	EnoughMem
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5608
		ret		nc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5609
		jp		ErrMemory
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5610
; End of function ErrNotEnoughMem
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5611
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5612
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5613
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5614
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5615
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5616
sub_23C4:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  5617
		; page0_1A99+5Cp ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5618
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5619
		ld		h, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5620
		ld		l, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5621
		sbc		hl, bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5622
		ld		b, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5623
		ld		c, l
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5624
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5625
; End of function sub_23C4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5626
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5627
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5628
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5629
FPSMINUS9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5630
		ld		hl, (FPS)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5631
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5632
HLMINUS9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5633
		ld		de, 0FFF7h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5634
		add		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5635
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5636
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5637
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5638
Page0Call_23D4:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5639
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5640
		call	sub_1680
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5641
		rst		10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5642
		call	nc, DelVar
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5643
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5644
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5645
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5646
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5647
Page0Call_23DE:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5648
		call	sub_1680
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5649
		rst		10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5650
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5651
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5652
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5653
Page0Call_23E3:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5654
		call	sub_1680
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  5655
		ld		hl, ErrMemory_NoGoTo
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5656
		call	pushErrorHandleR
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5657
		ld		hl, 0
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5658
		call	CreateRList
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5659
		call	popErrorHandleR
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5660
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5661
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5662
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5663
Page0Call_23F6:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5664
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5665
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5666
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5667
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5668
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5669
Page0Call_23FA:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5670
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5671
		inc		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5672
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5673
Page0Call_23FC:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5674
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5675
		bit		7, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5676
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5677
		res		7, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5678
		set		6, h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5679
		scf
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5680
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5681
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5682
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5683
Page0Call_2406:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5684
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5685
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5686
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5687
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5688
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5689
Page0Call_2407:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  5690
		; page0_1F38+Cp ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5691
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5692
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5693
HLMinus5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5694
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5695
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5696
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5697
Page0Call_240A:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5698
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5699
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5700
Page0Call_240B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5701
		dec		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5702
		dec		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5703
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5704
; End of function Page0Call_2407
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5705
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5706
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5707
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5708
Page0Call_240E:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5709
		call	ChkFindSym
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5710
		jr		page0_2414
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5711
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5712
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5713
Page0Call_2413:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5714
		rst		10h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5715
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5716
page0_2414:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5717
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5718
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5719
Page0Call_2415:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5720
		push	af
24
12b896331796 More cleanup.
brandonlw
parents: 22
diff changeset
  5721
		call	IsBZero
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5722
		jp		nz, page0_2551
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5723
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5724
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5725
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5726
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5727
Page0Call_241E:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5728
		rst		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5729
		ret		c
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5730
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5731
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5732
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5733
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5734
Page0Call_2420:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  5735
		; FIND_E_UNDEF+4j
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5736
		push	af
24
12b896331796 More cleanup.
brandonlw
parents: 22
diff changeset
  5737
		call	IsBZero
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5738
		jp		nz, Page0Call_254D
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5739
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5740
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5741
; End of function Page0Call_2420
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5742
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5743
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5744
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5745
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5746
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5747
FIND_E_UNDEF:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5748
		rst		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5749
		jp		c, ErrUndefined
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5750
		jr		Page0Call_2420
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5751
; End of function FIND_E_UNDEF
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5752
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5753
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5754
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5755
SetupPagedPtr:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5756
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5757
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5758
		ld		(pagedPN), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5759
		ld		(pagedGetPtr), de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5760
		xor		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5761
		ld		(pagedCount), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5762
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5763
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5764
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5765
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5766
PagedGet:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5767
		push	hl
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5768
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5769
page0_243F:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5770
		ld		a, (pagedCount)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5771
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5772
		jr		z, page0_2453
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5773
		dec		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5774
		ld		(pagedCount), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5775
		ld		hl, (pagedPutPtr)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5776
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5777
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5778
		ld		(pagedPutPtr), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5779
		pop		hl
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5780
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5781
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5782
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5783
page0_2453:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5784
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5785
		push	de
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5786
		in		a, (6)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5787
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5788
		ld		a, (pagedPN)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5789
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5790
		ld		bc, 10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5791
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5792
		ld		(pagedCount), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5793
		ld		de, 983Ah
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5794
		ld		(pagedPutPtr), de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5795
		ld		hl, (pagedGetPtr)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5796
		bit		7, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5797
		jr		nz, page0_2489
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5798
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5799
page0_2472:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5800
		ldi
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5801
		bit		7, h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5802
		jr		z, page0_2483
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5803
		in		a, (6)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5804
		inc		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5805
		ld		(pagedPN), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5806
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5807
		ld		hl, 4000h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5808
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5809
page0_2483:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5810
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5811
		or		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5812
		jr		nz, page0_2472
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5813
		jr		page0_248B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5814
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5815
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5816
page0_2489:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5817
		ldir
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5818
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5819
page0_248B:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5820
		ld		(pagedGetPtr), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5821
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5822
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5823
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5824
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5825
		jr		page0_243F
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5826
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5827
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5828
Page0Call_2495:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5829
		and		1Fh
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5830
		call	IS_A_LSTorCLST
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5831
		ret		z
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5832
		call	page0_17B3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5833
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5834
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5835
sub_249F:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5836
		call	NZIf83Plus
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5837
		jr		z, page0_24A6
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5838
		and		1Fh
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  5839
;#ifdef DEVIATE_FROM_ORIGINAL_FILE
25
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5840
;		out		(6), a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5841
;		ret
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  5842
;#endif
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5843
page0_24A6:
25
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5844
;#ifdef DEVIATE_FROM_ORIGINAL_FILE
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5845
;		push	bc
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5846
;		ld		b, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5847
;		bit		0, (iy+asm_Flag3)
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5848
;		jr		z, {+}
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5849
;		bit		7, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5850
;		ld		a, 1
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5851
;		jr		nz, {+}
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5852
;		dec		a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5853
;+:		out		(0Eh),a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5854
;		ld		a, b
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5855
;		res		7, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5856
;		pop		bc
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5857
;#endif
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5858
		out		(6), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5859
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5860
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5861
NZIf83Plus:
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5862
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5863
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5864
		in		a, (2)
25
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5865
		and		80h
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5866
		xor		80h
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5867
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5868
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5869
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5870
		ret
25
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5871
27
5220b6f6c984 More page 0 cleanup.
brandonlw
parents: 25
diff changeset
  5872
;#ifdef DEVIATE_FROM_ORIGINAL_FILE
25
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5873
;NZIfColorModel:
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5874
;;Return Z immediately if an 83+ or non-84+/SE
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5875
;		in		a, (2)
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5876
;		bit		7, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5877
;		ret		z
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5878
;		bit		5, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5879
;		ret		z
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5880
;		;Get the current LCD transfer mode to B
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5881
;		push	hl
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5882
;		push	bc
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5883
;		in		a, (10h)
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5884
;		bit		6, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5885
;		ld		b, 0
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5886
;		jr		nz, {+}
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5887
;		inc		b
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5888
;+:		;Set 84+CSE LCD register 0000h
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5889
;		;NOTE: This only changes the transfer mode on the non-color
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5890
;		xor		a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5891
;		out		(10h), a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5892
;		out		(10h), a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5893
;		;Read the word from the register
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5894
;		;NOTE: This is garbage on the non-color
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5895
;		push	de
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5896
;		in		a, (11h)
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5897
;		ld		d, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5898
;		in		a, (11h)
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5899
;		ld		e, a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5900
;		ld		hl, 9335h
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5901
;		call	cphlde
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5902
;		ld		a, b
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5903
;		pop		de
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5904
;		pop		bc
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5905
;		pop		hl
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5906
;		jr		nz, {+}
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5907
;		;Return NZ
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5908
;		or		1
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5909
;		ret
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5910
;+:		;Non-color, so restore LCD transfer mode that we trashed
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5911
;		out		(10h),a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5912
;		cp		a
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5913
;		ret
fab1bedd3281 Commit some experimental commented-out code for 84+CSE detection and booting
brandonlw
parents: 24
diff changeset
  5914
;#endif
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5915
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5916
Page0Call_24B5:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5917
		ld		a, 0B2h	; 'ҧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5918
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5919
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5920
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5921
Page0Call_24B9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5922
		ld		a, 0B3h	; 'ӧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5923
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5924
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5925
; START	OF FUNCTION CHUNK FOR INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5926
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5927
ErrOverflow:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5928
		ld		a, 81h ; 'g
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5929
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5930
; END OF FUNCTION CHUNK	FOR INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5931
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5932
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5933
ErrDivBy0:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5934
		ld		a, 82h ; '§
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5935
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5936
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5937
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5938
ErrSingularMat:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5939
		ld		a, 83h ; 'ç
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5940
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5941
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5942
; START	OF FUNCTION CHUNK FOR errd_op1notpos
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5943
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5944
ErrDomain:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5945
		ld		a, 84h ; 'ħ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5946
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5947
; END OF FUNCTION CHUNK	FOR errd_op1notpos
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5948
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5949
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5950
ErrIncrement:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5951
		ld		a, 85h ; 'ŧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5952
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5953
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5954
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5955
ErrNon_Real:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5956
		ld		a, 87h ; 'ǧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5957
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5958
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5959
; START	OF FUNCTION CHUNK FOR sub_1BA3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5960
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5961
ErrSyntax:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5962
		ld		a, 88h ; 'ȧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5963
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5964
; END OF FUNCTION CHUNK	FOR sub_1BA3
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5965
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5966
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5967
Page0Call_24D9:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5968
		ld		a, 9Eh ; 'ާ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5969
		jr		page0_24DF
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5970
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5971
; START	OF FUNCTION CHUNK FOR EOP1NotReal
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5972
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5973
ErrDataType:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5974
		ld		a, 89h ; 'ɧ
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5975
; END OF FUNCTION CHUNK	FOR EOP1NotReal
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5976
; START	OF FUNCTION CHUNK FOR INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5977
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5978
page0_24DF:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5979
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5980
; END OF FUNCTION CHUNK	FOR INCO1EXP
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5981
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5982
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5983
Page0Call_24E1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5984
		ld		a, 9Dh ; 'ݧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5985
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5986
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5987
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5988
ErrArgument:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5989
		ld		a, 8Ah ; 'ʧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5990
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5991
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5992
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5993
ErrDimMismatch:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5994
		ld		a, 8Bh ; '˧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5995
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5996
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  5997
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  5998
ErrDimension:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  5999
		ld		a, 8Ch ; '̧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6000
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6001
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6002
; START	OF FUNCTION CHUNK FOR page0_16F4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6003
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6004
ErrUndefined:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  6005
		; FIND_E_UNDEF+1j
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6006
		ld		a, 8Dh ; 'ͧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6007
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6008
; END OF FUNCTION CHUNK	FOR page0_16F4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6009
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6010
; START	OF FUNCTION CHUNK FOR DataSize
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6011
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6012
ErrMemory:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6013
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6014
		ld		a, 8Eh ; 'Χ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6015
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6016
; END OF FUNCTION CHUNK	FOR DataSize
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6017
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6018
41
9ef17625274f Finished _newContext and other page 0 cleanup. Still lots left to go...
brandonlw
parents: 38
diff changeset
  6019
ErrMemory_NoGoTo:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6020
		ld		a, 0Eh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6021
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6022
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6023
; START	OF FUNCTION CHUNK FOR EOP1NotReal
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6024
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6025
ErrInvalid:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6026
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6027
		ld		a, 8Fh ; 'ϧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6028
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6029
; END OF FUNCTION CHUNK	FOR EOP1NotReal
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6030
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6031
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6032
Page0Call_2501:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6033
		ld		a, 90h ; 'Ч
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6034
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6035
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6036
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6037
Page0Call_2505:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6038
		ld		a, 91h ; 'ѧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6039
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6040
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6041
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6042
Page0Call_2509:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6043
		ld		a, 92h ; 'ҧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6044
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6045
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6046
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6047
Page0Call_250D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6048
		ld		a, 93h ; 'ӧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6049
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6050
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6051
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6052
ErrBreak:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6053
		ld		a, 86h ; 'Ƨ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6054
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6055
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6056
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6057
ErrStat:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6058
		ld		a, 15h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6059
		jr		JError
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6060
; ---------------------------------------------------------------------------
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6061
		ld		a, 96h ; '֧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6062
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6063
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6064
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6065
ErrSignChange:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6066
		ld		a, 98h ; 'ا
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6067
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6068
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6069
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6070
ErrIterations:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6071
		ld		a, 99h ; '٧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6072
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6073
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6074
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6075
ErrBadGuess:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6076
		ld		a, 9Ah ; 'ڧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6077
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6078
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6079
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6080
ErrTolTooSmall:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6081
		ld		a, 9Ch ; 'ܧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6082
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6083
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6084
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6085
ErrStatPlot:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6086
		ld		a, 1Bh
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6087
		jr		JError
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6088
; ---------------------------------------------------------------------------
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6089
		ld		a, 0AAh	; 'ʧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6090
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6091
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6092
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6093
Page0Call_2535:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6094
		ld		a, 26h ; '&'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6095
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6096
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6097
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6098
Page0Call_2539:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6099
		ld		a, 28h ; '('
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6100
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6101
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6102
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6103
Page0Call_253D:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6104
		ld		a, 2Dh ; '-'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6105
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6106
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6107
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6108
Page0Call_2541:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6109
		ld		a, 2Eh ; '.'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6110
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6111
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6112
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6113
ErrCustom1:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6114
		ld		a, 0ABh	; '˧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6115
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6116
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6117
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6118
ErrCustom2:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6119
		ld		a, 0ACh	; '̧
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6120
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6121
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6122
; START	OF FUNCTION CHUNK FOR DelVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6123
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6124
Page0Call_254D:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  6125
		; Page0Call_2420+4j
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6126
		ld		a, 0AFh	; 'ϧ
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6127
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6128
; END OF FUNCTION CHUNK	FOR DelVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6129
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6130
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6131
page0_2551:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6132
		ld		a, 2Fh ; '/'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6133
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6134
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6135
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6136
Page0Call_2555:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6137
		ld		a, 30h ; '0'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6138
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6139
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6140
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6141
Page0Call_2559:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6142
		ld		a, 31h ; '1'
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6143
		jr		JError
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6144
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6145
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6146
ErrLinkXmit:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6147
		ld		a, 9Fh ; 'ߧ
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6148
; START	OF FUNCTION CHUNK FOR DelVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6149
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6150
JError:
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6151
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6152
		call	Page0Call_3E0D
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6153
		ld		(errNo), a
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6154
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6155
JErrorNo:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6156
		call	Page0Call_3E0D
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6157
		call	NZIf83Plus
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6158
		jr		z, page0_2573
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6159
		ld		a, 0C0h	; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6160
		out		(0), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6161
		jr		page0_257B
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6162
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6163
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6164
page0_2573:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6165
		ld		a, 80h ; ''
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6166
		out		(8), a
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  6167
		res		silentLinkActive, (iy+silentLinkFlags)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6168
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6169
page0_257B:
19
271dfee8e3ad Set all known flags -- I'm amazed this actually worked.
brandonlw
parents: 16
diff changeset
  6170
		res		indicOnly, (iy+indicFlags)
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6171
		res		4, (iy+24h)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6172
		ld		sp, (errSP)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6173
		ld		hl, (OPBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6174
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6175
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6176
		ld		(OPS), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6177
		pop		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6178
		ld		hl, (fpBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6179
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6180
		ld		(FPS), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6181
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6182
		ld		(errSP), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6183
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6184
		out		(6), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6185
		ld		a, (errNo)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6186
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6187
noErrorEntry:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6188
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6189
; END OF FUNCTION CHUNK	FOR DelVar
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6190
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6191
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6192
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6193
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6194
pushErrorHandleR:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  6195
		; handleONKeyPress-3FFp ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6196
		pop		de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6197
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6198
		ld		b, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6199
		in		a, (6)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6200
		push	af
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6201
		ld		a, b
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6202
		ld		hl, (errSP)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6203
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6204
		ld		bc, (fpBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6205
		ld		hl, (FPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6206
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6207
		sbc		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6208
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6209
		ld		bc, (OPBase)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6210
		ld		hl, (OPS)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6211
		sbc		hl, bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6212
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6213
		ld		(errSP), sp
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6214
		ex		de, hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6215
		jp		(hl)
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6216
; End of function pushErrorHandleR
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6217
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6218
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6219
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6220
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6221
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6222
popErrorHandleR:
6
e514aba854d4 Standardize on all the tabs.
brandonlw
parents: 4
diff changeset
  6223
		; handleONKeyPress:loc_400p ...
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6224
		pop		bc
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6225
		ld		sp, (errSP)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6226
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6227
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6228
		ex		(sp), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6229
		ld		(errSP), hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6230
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6231
		pop		af
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6232
		pop		af
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6233
		push	bc
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6234
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6235
; End of function popErrorHandleR
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6236
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6237
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6238
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6239
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6240
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6241
strcopy:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6242
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6243
		ld		(de), a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6244
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6245
		ret		z
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6246
		inc		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6247
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6248
		jr		strcopy
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6249
; End of function strcopy
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6250
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6251
; ---------------------------------------------------------------------------
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6252
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6253
strCat:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6254
		ld		a, (de)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6255
		or		a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6256
		jr		z, strcopy
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6257
		inc		de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6258
		jr		strCat
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6259
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6260
; =============== S U B	R O U T	I N E =======================================
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6261
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6262
7
89b82476a75f Get rid of (most) of the godawful IDA comments.
brandonlw
parents: 6
diff changeset
  6263
Page0Call_25E7:
35
3bbec89e558e Define unk_9320.
brandonlw
parents: 29
diff changeset
  6264
		ld		hl, unk_9320
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6265
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6266
isInSet:
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6267
		push	bc
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6268
		ld		c, a
35
3bbec89e558e Define unk_9320.
brandonlw
parents: 29
diff changeset
  6269
		and		0F8h
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6270
		rrca
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6271
		rrca
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6272
		rrca
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6273
		ld		e, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6274
		ld		d, 0
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6275
		add		hl, de
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6276
		push	hl
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6277
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6278
		and		7
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6279
		ld		e, a
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6280
		ld		a, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6281
		ld		hl, unk_2605
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6282
		add		hl, de
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6283
		ld		c, (hl)
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6284
		and		c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6285
		ld		a, c
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6286
		pop		hl
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6287
		pop		bc
4
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6288
		ret
59f60baeaf6a Initial commit
brandonlw
parents:
diff changeset
  6289
unk_2605:
8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6290
		.db		1
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6291
		.db		2
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6292
		.db		4
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6293
		.db		8
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6294
		.db		10h
795326a8c258 More formatting cleanup.
brandonlw
parents: 7
diff changeset
  6295
		.db		20h
35
3bbec89e558e Define unk_9320.
brandonlw
parents: 29
diff changeset
  6296
		.db		40h
3bbec89e558e Define unk_9320.
brandonlw
parents: 29
diff changeset
  6297
		.db		80h