Finished _newContext and other page 0 cleanup. Still lots left to go...
p07loc_4000:
.db 84h ; �
.db 0
.db 89h ;
.db 8Ah ;
.db 8Dh ;
.db 88h ; �
.db 8Eh ; �
.db 0
.db 8Bh ;
.db 86h ; �
.db 87h ; �
.db 90h ; �
.db 92h ; �
.db 8Ch ;
.db 8Fh ; �
.db 0
.db 0A5h ; �
.db 85h ; �
.db 9Ch ; �
.db 0
.db 0A0h ; �
.db 9Fh ; �
.db 9Eh ; �
.db 9Dh ; �
.db 0A6h ; �
.db 93h ; �
.db 0A7h ; �
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0EBh ;
.db 70h ; p
.db 71h ; q
.db 82h ; �
.db 83h ; �
.db 0F0h ; �
.db 10h
.db 11h
.db 6
.db 7
.db 0A4h ; �
.db 4
.db 2Bh ; +
.db 0B0h ; �
.db 3Ah ; :
.db 30h ; 0
.db 31h ; 1
.db 32h ; 2
.db 33h ; 3
.db 34h ; 4
.db 35h ; 5
.db 36h ; 6
.db 37h ; 7
.db 38h ; 8
.db 39h ; 9
.db 3Bh ; ;
.db 29h ; )
.db 41h ; A
.db 42h ; B
.db 43h ; C
.db 44h ; D
.db 45h ; E
.db 46h ; F
.db 47h ; G
.db 48h ; H
.db 49h ; I
.db 4Ah ; J
.db 4Bh ; K
.db 4Ch ; L
.db 4Dh ; M
.db 4Eh ; N
.db 4Fh ; O
.db 50h ; P
.db 51h ; Q
.db 52h ; R
.db 53h ; S
.db 54h ; T
.db 55h ; U
.db 56h ; V
.db 57h ; W
.db 58h ; X
.db 59h ; Y
.db 5Ah ; Z
.db 0
.db 0ACh ;
.db 0Ch
.db 0C2h ; �
.db 0C3h ; �
.db 0C4h ; �
.db 0C5h ; �
.db 0C6h ; �
.db 0C7h ; �
.db 0Dh
.db 0BCh ; �
.db 0BEh ; �
.db 0BFh ; �
.db 0C0h ; �
.db 0C1h ; �
.db 3
.db 0FBh ; �
.db 72h ; r
.db 3Eh ; >
.db 25h ; %
.db 24h ; $
.db 22h ; "
.db 0AFh ; �
.db 2Ah ; *
.db 5Bh ; [
.db 0CEh ; �
.db 0CFh ; �
.db 0D0h ; �
.db 0D3h ; �
.db 0D1h ; �
.db 0D2h ; �
.db 0D4h ; �
.db 0D8h ; �
.db 0D6h ; �
.db 0D7h ; �
.db 0DAh ; �
.db 0DBh ; �
.db 0E6h ; �
.db 5Fh ; _
.db 0D5h ; �
.db 0D9h ; �
.db 0DCh ; �
.db 0DDh ; �
.db 0DEh ; �
.db 0DFh ; �
.db 0E5h ; �
.db 0E0h ; �
.db 0ADh ;
.db 0E1h ; �
.db 91h ; �
.db 0C8h ; �
.db 0CAh ;
.db 0CCh ;
.db 0C9h ;
.db 0CBh ;
.db 0CDh ;
.db 8
.db 9
.db 2Ch ; ,
.db 0
.db 0EEh ; �
.db 27h ; '
.db 28h ; (
p07loc_4099:
.db 0A8h ; �
.db 0A9h ;
.db 0A1h ; �
.db 0A2h ; �
.db 13h
.db 9Bh ; �
.db 99h ; �
.db 9Ah ; �
.db 98h ; �
.db 0B2h ; �
.db 6Ah ; j
.db 6Fh ; o
.db 6Ch ; l
.db 6Eh ; n
.db 6Bh ; k
.db 6Dh ; m
.db 40h ; @
.db 3Ch ; <
.db 3Dh ; =
.db 0B8h ; �
.db 0FFh
.db 0F1h ; �
.db 0Fh
.db 0BDh ; �
.db 2
.db 2Eh ; .
.db 2Fh ; /
.db 0ECh ;
.db 0EDh ;
.db 12h
.db 0B9h ; �
.db 0BAh ; �
.db 0B1h ; �
.db 0ABh ;
.db 94h ; �
.db 95h ; �
.db 2Dh ; -
.db 0Ah
.db 0Bh
.db 0AEh ; �
.db 1
.db 1Ch
.db 1Bh
.db 1Dh
.db 1Eh
.db 15h
.db 16h
.db 17h
.db 18h
.db 0E3h ; �
.db 0E4h ; �
.db 23h ; #
.db 1Ah
.db 19h
.db 21h ; !
.db 1Fh
.db 0B6h ; �
.db 0B7h ; �
.db 0B3h ; �
.db 0Eh
.db 0B5h ; �
.db 0E2h ; �
.db 0B4h ; �
.db 20h
.db 14h
.db 0F2h ; �
.db 0F3h ; �
.db 0F4h ; �
.db 0F5h ; �
.db 0F6h ; �
.db 0F7h ; �
.db 0F8h ; �
.db 0F9h ; �
.db 0FAh ; �
.db 0FCh ; �
.db 0FDh ; �
.db 0FEh ; �
.db 64h ; d
.db 65h ; e
.db 66h ; f
.db 67h ; g
.db 68h ; h
.db 69h ; i
.db 73h ; s
.db 74h ; t
.db 75h ; u
.db 76h ; v
.db 77h ; w
.db 78h ; x
.db 79h ; y
.db 7Ah ; z
.db 7Bh ; {
.db 7Ch ; |
.db 7Dh ; }
.db 96h ; �
.db 97h ; �
.db 0E9h ;
.db 0EAh ;
.db 0A3h ; �
.db 0E7h ; �
.db 0E8h ; �
.db 5
.db 7Fh ;
.db 80h ; �
.db 81h ; �
p07loc_4102:
.db 7Eh ; ~
.db 0
.db 7Eh ; ~
.db 1
.db 7Eh ; ~
.db 2
.db 7Eh ; ~
.db 3
.db 7Eh ; ~
.db 4
.db 7Eh ; ~
.db 5
.db 7Eh ; ~
.db 6
.db 7Eh ; ~
.db 7
.db 7Eh ; ~
.db 8
.db 7Eh ; ~
.db 9
.db 7Eh ; ~
.db 0Ah
.db 7Eh ; ~
.db 0Bh
.db 7Eh ; ~
.db 0Ch
.db 7Eh ; ~
.db 0Dh
.db 5Dh ; ]
.db 0
.db 5Dh ; ]
.db 1
.db 5Dh ; ]
.db 2
.db 5Dh ; ]
.db 3
.db 5Dh ; ]
.db 4
.db 5Dh ; ]
.db 5
.db 5Ch ; \
.db 0
.db 5Ch ; \
.db 1
.db 5Ch ; \
.db 2
.db 5Ch ; \
.db 3
.db 5Ch ; \
.db 4
.db 63h ; c
.db 0Ah
.db 63h ; c
.db 0Bh
.db 63h ; c
.db 2
.db 63h ; c
.db 0Ch
.db 63h ; c
.db 0Dh
.db 63h ; c
.db 3
.db 63h ; c
.db 0Eh
.db 63h ; c
.db 0Fh
.db 63h ; c
.db 22h ; "
.db 63h ; c
.db 10h
.db 63h ; c
.db 11h
.db 63h ; c
.db 23h ; #
.db 63h ; c
.db 4
.db 63h ; c
.db 5
.db 63h ; c
.db 1Fh
.db 63h ; c
.db 1Dh
.db 63h ; c
.db 27h ; '
.db 63h ; c
.db 26h ; &
.db 63h ; c
.db 12h
.db 63h ; c
.db 13h
.db 63h ; c
.db 0
.db 63h ; c
.db 14h
.db 63h ; c
.db 15h
.db 63h ; c
.db 1
.db 63h ; c
.db 18h
.db 63h ; c
.db 19h
.db 63h ; c
.db 24h ; $
.db 63h ; c
.db 16h
.db 63h ; c
.db 17h
.db 63h ; c
.db 25h ; %
.db 63h ; c
.db 8
.db 63h ; c
.db 9
.db 63h ; c
.db 20h
.db 63h ; c
.db 1Eh
.db 0BBh ; �
.db 57h ; W
.db 0BBh ; �
.db 32h ; 2
.db 0BBh ; �
.db 31h ; 1
.db 60h ; `
.db 0
.db 60h ; `
.db 1
.db 60h ; `
.db 2
.db 0BBh ; �
.db 54h ; T
.db 0BBh ; �
.db 53h ; S
.db 0BBh ; �
.db 4Dh ; M
.db 0BBh ; �
.db 4Eh ; N
.db 0BBh ; �
.db 4Fh ; O
.db 7Eh ; ~
.db 10h
.db 7Eh ; ~
.db 11h
.db 7Eh ; ~
.db 12h
.db 0BBh ; �
.db 4Bh ; K
.db 0BBh ; �
.db 4Ch ; L
.db 0BBh ; �
.db 45h ; E
.db 0BBh ; �
.db 50h ; P
.db 0BBh ; �
.db 51h ; Q
.db 62h ; b
.db 16h
.db 62h ; b
.db 17h
.db 62h ; b
.db 18h
.db 62h ; b
.db 12h
.db 62h ; b
.db 19h
.db 62h ; b
.db 1Ah
.db 62h ; b
.db 1
.db 62h ; b
.db 8
.db 62h ; b
.db 14h
.db 62h ; b
.db 13h
.db 62h ; b
.db 15h
.db 62h ; b
.db 9
.db 62h ; b
.db 1Bh
.db 62h ; b
.db 1Eh
.db 62h ; b
.db 1Ch
.db 62h ; b
.db 1Fh
.db 62h ; b
.db 1Dh
.db 62h ; b
.db 20h
.db 63h ; c
.db 1Ah
.db 63h ; c
.db 21h ; !
.db 0BBh ; �
.db 4Ah ; J
.db 0BBh ; �
.db 52h ; R
.db 0BBh ; �
.db 33h ; 3
.db 0BBh ; �
.db 3Bh ; ;
.db 0BBh ; �
.db 3Ch ; <
.db 0BBh ; �
.db 3Dh ; =
.db 0BBh ; �
.db 46h ; F
.db 0BBh ; �
.db 3Eh ; >
.db 0BBh ; �
.db 3Fh ; ?
.db 0BBh ; �
.db 40h ; @
.db 0BBh ; �
.db 47h ; G
.db 0BBh ; �
.db 41h ; A
.db 0BBh ; �
.db 48h ; H
.db 0BBh ; �
.db 49h ; I
.db 0BBh ; �
.db 42h ; B
.db 0BBh ; �
.db 43h ; C
.db 0BBh ; �
.db 44h ; D
.db 0BBh ; �
.db 10h
.db 0BBh ; �
.db 11h
.db 0BBh ; �
.db 12h
.db 0BBh ; �
.db 13h
.db 0BBh ; �
.db 14h
.db 0BBh ; �
.db 15h
.db 0BBh ; �
.db 16h
.db 0BBh ; �
.db 17h
.db 0BBh ; �
.db 18h
.db 5Eh ; ^
.db 80h ; �
.db 5Eh ; ^
.db 81h ; �
.db 5Eh ; ^
.db 82h ; �
.db 62h ; b
.db 21h ; !
.db 63h ; c
.db 1Bh
.db 63h ; c
.db 1Ch
.db 63h ; c
.db 28h ; (
.db 63h ; c
.db 29h ; )
.db 0BBh ; �
.db 59h ; Y
.db 62h ; b
.db 0Bh
.db 7Eh ; ~
.db 0Eh
.db 7Eh ; ~
.db 0Fh
.db 63h ; c
.db 2Ah ; *
.db 0BBh ; �
.db 19h
.db 0BBh ; �
.db 1Ah
.db 0BBh ; �
.db 35h ; 5
.db 0BBh ; �
.db 36h ; 6
.db 0BBh ; �
.db 37h ; 7
.db 0BBh ; �
.db 38h ; 8
.db 63h ; c
.db 34h ; 4
.db 63h ; c
.db 35h ; 5
.db 0BBh ; �
.db 34h ; 4
.db 0BBh ; �
.db 64h ; d
.db 0BBh ; �
.db 58h ; X
.db 0BBh ; �
.db 65h ; e
p07loc_422C:
.db 61h ; a
.db 0
.db 61h ; a
.db 1
.db 61h ; a
.db 2
.db 5Eh ; ^
.db 10h
.db 5Eh ; ^
.db 11h
.db 5Eh ; ^
.db 12h
.db 5Eh ; ^
.db 13h
.db 5Eh ; ^
.db 14h
.db 5Eh ; ^
.db 15h
.db 5Eh ; ^
.db 16h
.db 5Eh ; ^
.db 17h
.db 5Eh ; ^
.db 18h
.db 5Eh ; ^
.db 19h
.db 5Eh ; ^
.db 20h
.db 5Eh ; ^
.db 21h ; !
.db 5Eh ; ^
.db 22h ; "
.db 5Eh ; ^
.db 23h ; #
.db 5Eh ; ^
.db 24h ; $
.db 5Eh ; ^
.db 25h ; %
.db 5Eh ; ^
.db 26h ; &
.db 5Eh ; ^
.db 27h ; '
.db 5Eh ; ^
.db 28h ; (
.db 5Eh ; ^
.db 29h ; )
.db 5Eh ; ^
.db 2Ah ; *
.db 5Eh ; ^
.db 2Bh ; +
.db 5Eh ; ^
.db 40h ; @
.db 5Eh ; ^
.db 41h ; A
.db 5Eh ; ^
.db 42h ; B
.db 5Eh ; ^
.db 43h ; C
.db 5Eh ; ^
.db 44h ; D
.db 5Eh ; ^
.db 45h ; E
.db 61h ; a
.db 3
.db 61h ; a
.db 4
.db 61h ; a
.db 5
.db 60h ; `
.db 3
.db 60h ; `
.db 4
.db 60h ; `
.db 5
.db 61h ; a
.db 6
.db 61h ; a
.db 7
.db 61h ; a
.db 8
.db 61h ; a
.db 9
.db 60h ; `
.db 6
.db 60h ; `
.db 7
.db 60h ; `
.db 8
.db 60h ; `
.db 9
.db 62h ; b
.db 2
.db 62h ; b
.db 3
.db 0BBh ; �
.db 25h ; %
.db 0BBh ; �
.db 26h ; &
.db 0BBh ; �
.db 28h ; (
.db 0BBh ; �
.db 8
.db 0BBh ; �
.db 9
.db 0BBh ; �
.db 0Ah
.db 0BBh ; �
.db 1Fh
.db 0BBh ; �
.db 30h ; 0
.db 0BBh ; �
.db 2Fh ; /
.db 62h ; b
.db 0Ch
.db 62h ; b
.db 6
.db 62h ; b
.db 7
.db 63h ; c
.db 32h ; 2
.db 5Ch ; \
.db 5
.db 5Ch ; \
.db 6
.db 5Ch ; \
.db 7
.db 5Ch ; \
.db 8
.db 5Ch ; \
.db 9
.db 0
.db 0
.db 62h ; b
.db 0Fh
.db 62h ; b
.db 10h
.db 0BBh ; �
.db 39h ; 9
.db 0BBh ; �
.db 3Ah ; :
.db 0BBh ; �
.db 29h ; )
.db 0BBh ; �
.db 2Ch ; ,
.db 0BBh ; �
.db 0Dh
.db 0BBh ; �
.db 0Eh
.db 0BBh ; �
.db 2Bh ; +
.db 0BBh ; �
.db 55h ; U
.db 0BBh ; �
.db 56h ; V
.db 0BBh ; �
.db 2Ah ; *
.db 0BBh ; �
.db 0Ch
.db 0BBh ; �
.db 0Fh
.db 0AAh ;
.db 0
.db 0AAh ;
.db 1
.db 0AAh ;
.db 2
.db 0AAh ;
.db 3
.db 0AAh ;
.db 4
.db 0AAh ;
.db 5
.db 0AAh ;
.db 6
.db 0AAh ;
.db 7
.db 0AAh ;
.db 8
.db 0AAh ;
.db 9
.db 63h ; c
.db 2Bh ; +
.db 63h ; c
.db 2Ch ; ,
.db 63h ; c
.db 2Dh ; -
.db 63h ; c
.db 2Eh ; .
.db 63h ; c
.db 2Fh ; /
.db 63h ; c
.db 30h ; 0
.db 63h ; c
.db 31h ; 1
.db 0BBh ; �
.db 20h
.db 0BBh ; �
.db 21h ; !
.db 0BBh ; �
.db 22h ; "
.db 0BBh ; �
.db 23h ; #
.db 0BBh ; �
.db 24h ; $
.db 0BBh ; �
.db 0
.db 0BBh ; �
.db 1
.db 0BBh ; �
.db 2
.db 0BBh ; �
.db 3
.db 0BBh ; �
.db 4
.db 62h ; b
.db 4
.db 62h ; b
.db 5
.db 0BBh ; �
.db 5
.db 0BBh ; �
.db 6
.db 0BBh ; �
.db 7
.db 62h ; b
.db 22h ; "
.db 62h ; b
.db 23h ; #
.db 62h ; b
.db 24h ; $
.db 62h ; b
.db 25h ; %
.db 62h ; b
.db 26h ; &
.db 62h ; b
.db 27h ; '
.db 62h ; b
.db 28h ; (
.db 62h ; b
.db 29h ; )
.db 62h ; b
.db 2Ah ; *
.db 62h ; b
.db 2Bh ; +
.db 62h ; b
.db 2Eh ; .
.db 62h ; b
.db 2Ch ; ,
.db 62h ; b
.db 2Fh ; /
.db 62h ; b
.db 31h ; 1
.db 62h ; b
.db 2Dh ; -
.db 62h ; b
.db 30h ; 0
.db 62h ; b
.db 32h ; 2
.db 62h ; b
.db 33h ; 3
.db 63h ; c
.db 33h ; 3
.db 0BBh ; �
.db 27h ; '
.db 62h ; b
.db 0Dh
.db 63h ; c
.db 36h ; 6
.db 62h ; b
.db 34h ; 4
.db 62h ; b
.db 0Eh
.db 62h ; b
.db 11h
.db 63h ; c
.db 37h ; 7
.db 0BBh ; �
.db 5Ah ; Z
.db 0BBh ; �
.db 5Bh ; [
.db 0BBh ; �
.db 1Bh
.db 0BBh ; �
.db 1Ch
.db 0BBh ; �
.db 1Dh
.db 0BBh ; �
.db 1Eh
.db 62h ; b
.db 0Ah
.db 0BBh ; �
.db 0Bh
.db 0BBh ; �
.db 2Dh ; -
.db 0BBh ; �
.db 2Eh ; .
.db 62h ; b
.db 35h ; 5
.db 62h ; b
.db 36h ; 6
.db 0BBh ; �
.db 66h ; f
.db 0BBh ; �
.db 67h ; g
.db 63h ; c
.db 6
.db 63h ; c
.db 7
.db 0BBh ; �
.db 68h ; h
.db 0BBh ; �
.db 69h ; i
.db 0BBh ; �
.db 6Ah ; j
.db 0BBh ; �
.db 6Ch ; l
.db 0BBh ; �
.db 6Bh ; k
.db 0BBh ; �
.db 6Eh ; n
.db 0BBh ; �
.db 6Fh ; o
.db 0BBh ; �
.db 70h ; p
.db 0BBh ; �
.db 71h ; q
.db 0BBh ; �
.db 72h ; r
.db 0BBh ; �
.db 73h ; s
.db 0BBh ; �
.db 74h ; t
.db 0BBh ; �
.db 75h ; u
.db 0BBh ; �
.db 76h ; v
.db 0BBh ; �
.db 77h ; w
.db 0BBh ; �
.db 78h ; x
.db 0BBh ; �
.db 79h ; y
.db 0BBh ; �
.db 7Ah ; z
.db 0BBh ; �
.db 7Bh ; {
.db 0BBh ; �
.db 7Ch ; |
.db 0BBh ; �
.db 7Dh ; }
.db 0BBh ; �
.db 0CDh ;
.db 0BBh ; �
.db 7Fh ;
.db 0BBh ; �
.db 80h ; �
.db 0BBh ; �
.db 81h ; �
.db 0BBh ; �
.db 82h ; �
.db 0BBh ; �
.db 83h ; �
.db 0BBh ; �
.db 84h ; �
.db 0BBh ; �
.db 85h ; �
.db 0BBh ; �
.db 86h ; �
.db 0BBh ; �
.db 87h ; �
.db 0BBh ; �
.db 88h ; �
.db 0BBh ; �
.db 89h ;
.db 0BBh ; �
.db 8Ah ;
.db 0BBh ; �
.db 8Bh ;
.db 0BBh ; �
.db 8Ch ;
.db 0BBh ; �
.db 8Dh ;
.db 0BBh ; �
.db 8Eh ; �
.db 0BBh ; �
.db 8Fh ; �
.db 0BBh ; �
.db 90h ; �
.db 0BBh ; �
.db 91h ; �
.db 0BBh ; �
.db 92h ; �
.db 0BBh ; �
.db 93h ; �
.db 0BBh ; �
.db 94h ; �
.db 0BBh ; �
.db 95h ; �
.db 0BBh ; �
.db 96h ; �
.db 0BBh ; �
.db 97h ; �
.db 0BBh ; �
.db 98h ; �
.db 0BBh ; �
.db 99h ; �
.db 0BBh ; �
.db 9Ah ; �
.db 0BBh ; �
.db 9Bh ; �
.db 0BBh ; �
.db 9Ch ; �
.db 0BBh ; �
.db 9Dh ; �
.db 0BBh ; �
.db 9Eh ; �
.db 0BBh ; �
.db 9Fh ; �
.db 0BBh ; �
.db 0A0h ; �
.db 0BBh ; �
.db 0A1h ; �
.db 0BBh ; �
.db 0A2h ; �
.db 0BBh ; �
.db 0A3h ; �
.db 0BBh ; �
.db 0A4h ; �
.db 0BBh ; �
.db 0A5h ; �
.db 0BBh ; �
.db 0A6h ; �
.db 0BBh ; �
.db 0A7h ; �
.db 0BBh ; �
.db 0A8h ; �
.db 0BBh ; �
.db 0A9h ;
.db 0BBh ; �
.db 0CBh ;
.db 0BBh ; �
.db 0CCh ;
.db 0BBh ; �
.db 0ABh ;
.db 0BBh ; �
.db 0ACh ;
.db 0BBh ; �
.db 0ADh ;
.db 0BBh ; �
.db 0AEh ; �
.db 0BBh ; �
.db 0AFh ; �
.db 0BBh ; �
.db 0B0h ; �
.db 0BBh ; �
.db 0B1h ; �
.db 0BBh ; �
.db 0B2h ; �
.db 0BBh ; �
.db 0B3h ; �
.db 0BBh ; �
.db 0B4h ; �
.db 0BBh ; �
.db 0B5h ; �
.db 0BBh ; �
.db 0B6h ; �
.db 0BBh ; �
.db 0B7h ; �
.db 0BBh ; �
.db 0B8h ; �
.db 0BBh ; �
.db 0B9h ; �
.db 0BBh ; �
.db 0BAh ; �
.db 0BBh ; �
.db 0BCh ; �
.db 0BBh ; �
.db 0BDh ; �
.db 0BBh ; �
.db 0BEh ; �
.db 0BBh ; �
.db 0BFh ; �
.db 0BBh ; �
.db 0C0h ; �
.db 0BBh ; �
.db 0C1h ; �
.db 0BBh ; �
.db 0C2h ; �
.db 0BBh ; �
.db 0C3h ; �
.db 0BBh ; �
.db 0C4h ; �
.db 0BBh ; �
.db 0C5h ; �
.db 0BBh ; �
.db 0C6h ; �
.db 0BBh ; �
.db 0C7h ; �
.db 0BBh ; �
.db 0C8h ; �
.db 0BBh ; �
.db 0C9h ;
.db 0BBh ; �
.db 0CAh ;
.db 0BBh ; �
.db 0CEh ; �
p07loc_4426:
.db 5Eh ; ^
.db 82h ; �
.db 0BBh ; �
.db 0D0h ; �
.db 0BBh ; �
.db 0D1h ; �
.db 0BBh ; �
.db 0D2h ; �
.db 0BBh ; �
.db 0D3h ; �
.db 0BBh ; �
.db 0D4h ; �
.db 0BBh ; �
.db 0D5h ; �
.db 0BBh ; �
.db 0D6h ; �
.db 0BBh ; �
.db 0D7h ; �
.db 0BBh ; �
.db 0D8h ; �
.db 0BBh ; �
.db 0D9h ; �
.db 0BBh ; �
.db 0CFh ; �
.db 0BBh ; �
.db 0DAh ; �
.db 0BBh ; �
.db 0DBh ; �
.db 0BBh ; �
.db 0DCh ; �
.db 0BBh ; �
.db 0DDh ; �
.db 0BBh ; �
.db 0DEh ; �
.db 0BBh ; �
.db 0DFh ; �
.db 0BBh ; �
.db 0E0h ; �
.db 0BBh ; �
.db 0E1h ; �
.db 0BBh ; �
.db 0E2h ; �
.db 0BBh ; �
.db 0E3h ; �
.db 0BBh ; �
.db 0E4h ; �
.db 0BBh ; �
.db 0E5h ; �
.db 0BBh ; �
.db 0E6h ; �
.db 0BBh ; �
.db 0E7h ; �
.db 0BBh ; �
.db 0E8h ; �
.db 0BBh ; �
.db 0E9h ;
.db 0BBh ; �
.db 0EAh ;
.db 0BBh ; �
.db 0EBh ;
.db 0BBh ; �
.db 0ECh ;
.db 0BBh ; �
.db 0EDh ;
.db 0BBh ; �
.db 0EEh ; �
.db 0BBh ; �
.db 0F0h ; �
.db 0BBh ; �
.db 0F1h ; �
.db 0BBh ; �
.db 0F2h ; �
.db 0BBh ; �
.db 0F3h ; �
.db 0BBh ; �
.db 0F4h ; �
.db 0BBh ; �
.db 0F5h
; =============== S U B R O U T I N E =======================================
p07loc_4474:
ConvKeyToTok:
cp 0FEh ; '�'
jr z, p07loc_44B4
cp 0FCh ; '�'
jr z, p07loc_44AC
cp 0FBh ; '�'
jr z, p07loc_449E
cp 5
jr nz, p07loc_4489
ld e, 3Fh ; '?'
ld d, 0
ret
; ---------------------------------------------------------------------------
p07loc_4489:
sub 5Ah ; 'Z'
ld hl, p07loc_4000
p07loc_448E:
ld e, a
ld d, 0
add hl, de
ld e, (hl)
ret
; ---------------------------------------------------------------------------
Page07_3BB5:
dec h
jr z, ConvFEKeyToTok
cp 0FCh ; '�'
ld a, e
jr z, ConvFCKeyToTok
jr p07loc_44A1
; ---------------------------------------------------------------------------
p07loc_449E:
ld a, (keyExtend)
p07loc_44A1:
cp 8Ch ; '�'
jr c, p07loc_44A7
sub 7Fh ; ''
p07loc_44A7:
ld de, p07loc_4426
jr p07loc_44C5
; ---------------------------------------------------------------------------
p07loc_44AC:
ld a, (keyExtend)
ConvFCKeyToTok:
ld de, p07loc_422C
jr p07loc_44C5
; ---------------------------------------------------------------------------
p07loc_44B4:
ld a, (keyExtend)
ConvFEKeyToTok:
cp 69h ; 'i'
jr nc, p07loc_44C0
ld hl, p07loc_4099
jr p07loc_448E
; ---------------------------------------------------------------------------
p07loc_44C0:
sub 69h ; 'i'
ld de, p07loc_4102
p07loc_44C5:
; ConvKeyToTok+3Ej
ld l, a
ld h, 0
add hl, hl
add hl, de
ld e, (hl)
ld d, e
inc hl
ld e, (hl)
ret
; End of function ConvKeyToTok
; ---------------------------------------------------------------------------
TokToKey:
push de
call j_GetKeyPress
pop bc
ld e, a
ld a, b
or a
jr nz, p07loc_44E6
ld hl, p07loc_4099
ld a, c
ld bc, 69h ; 'i'
cpir
jr z, p07loc_4517
ld a, e
ret
; ---------------------------------------------------------------------------
p07loc_44E6:
ld a, e
ld (keyExtend), a
ld d, c
ld e, b
ld hl, p07loc_422C
p07loc_44EF:
push hl
call ldHLind
call CpHLDE
pop hl
jr z, p07loc_4507
inc hl
inc hl
push de
ld de, p07loc_4474
call CpHLDE
pop de
jr nc, p07loc_451B
jr p07loc_44EF
; ---------------------------------------------------------------------------
p07loc_4507:
push de
ld de, p07loc_4426
call CpHLDE
pop de
jr nc, p07loc_4514
ld a, 0FCh ; '�'
ret
; ---------------------------------------------------------------------------
p07loc_4514:
ld a, 0FBh ; '�'
ret
; ---------------------------------------------------------------------------
p07loc_4517:
ld a, e
ld (keyExtend), a
p07loc_451B:
ld a, 0FEh ; '�'
ret
; ---------------------------------------------------------------------------
Page07_3BC7:
bit fontHookActive, (iy+hookflags3)
jr z, p07loc_452C
ld b, a
ld a, 1
call j_FontHook
ld a, b
ret z
p07loc_452C:
bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_453A
ld b, a
ld a, 76h ; 'v'
call j_call_character_hook
ld a, b
ret z
p07loc_453A:
ld de, p07loc_4584-7
add hl, de
ld de, lFont_record
call Mov8B
ld hl, lFont_record
ret
; ---------------------------------------------------------------------------
Page07_3C03:
bit fontHookActive, (iy+hookflags3)
jr z, p07loc_4555
ld a, 3
call j_FontHook
jr z, p07loc_4566
p07loc_4555:
bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_4562
ld a, 78h ; 'x'
call j_call_character_hook
jr z, p07loc_4566
p07loc_4562:
ld de, p07loc_4584-7
add hl, de
p07loc_4566:
ld de, lFont_record
push de
ld a, 6
ld (de), a
inc de
jr p07loc_4573
; ---------------------------------------------------------------------------
p07loc_4570:
ld (de), a
pop hl
ret
; ---------------------------------------------------------------------------
p07loc_4573:
call p07sub_4579
xor a
jr p07loc_4570
; =============== S U B R O U T I N E =======================================
p07sub_4579:
ld b, 7
p07loc_457B:
ld a, (hl)
sla a
ld (de), a
inc hl
inc de
djnz p07loc_457B
ret
; End of function p07sub_4579
p07loc_4584:
.db 5
.db 0
.db 0
.db 16h
.db 9
.db 9
.db 12h
.db 12h
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 11h
.db 13h
.db 0Dh
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 0Ah
.db 0Ah
.db 4
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 15h
.db 15h
.db 0Ah
.db 5
.db 0
.db 8
.db 0Ch
.db 0Eh
.db 0Ch
.db 8
.db 0
.db 5
.db 4
.db 0Eh
.db 1Fh
.db 0Eh
.db 0Eh
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0Eh
.db 0Eh
.db 1Fh
.db 0Eh
.db 4
.db 5
.db 2
.db 5
.db 4
.db 4
.db 4
.db 14h
.db 8
.db 5
.db 0
.db 11h
.db 0Ah
.db 4
.db 0Ah
.db 11h
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0Eh
.db 0Ah
.db 0Eh
.db 0
.db 5
.db 0
.db 0
.db 0
.db 4
.db 0Eh
.db 4
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 4
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 1Ch
.db 8
.db 8
.db 8
.db 5
.db 0Ch
.db 2
.db 0Ch
.db 2
.db 0Ch
.db 0
.db 0
.db 5
.db 1Fh
.db 18h
.db 18h
.db 1Eh
.db 18h
.db 18h
.db 18h
.db 5
.db 7
.db 4
.db 4
.db 4
.db 14h
.db 0Ch
.db 4
.db 5
.db 3
.db 1
.db 19h
.db 1
.db 1
.db 0
.db 0
.db 5
.db 0Ch
.db 2
.db 4
.db 8
.db 0Eh
.db 0
.db 0
.db 5
.db 0
.db 0
.db 1
.db 2
.db 4
.db 8
.db 1Fh
.db 5
.db 0Ch
.db 12h
.db 12h
.db 0Ch
.db 0
.db 0
.db 0
.db 5
.db 16h
.db 18h
.db 10h
.db 10h
.db 0
.db 0
.db 0
.db 5
.db 0Eh
.db 4
.db 4
.db 4
.db 4
.db 0
.db 0
.db 5
.db 1
.db 6
.db 18h
.db 6
.db 1
.db 0
.db 1Fh
.db 5
.db 2
.db 2
.db 1Fh
.db 4
.db 1Fh
.db 8
.db 8
.db 5
.db 10h
.db 0Ch
.db 3
.db 0Ch
.db 10h
.db 0
.db 1Fh
.db 5
.db 0
.db 0
.db 7
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0Fh
.db 8
.db 0Eh
.db 8
.db 0Fh
.db 5
.db 0
.db 4
.db 2
.db 1Fh
.db 2
.db 4
.db 0
.db 5
.db 0
.db 0
.db 17h
.db 15h
.db 15h
.db 15h
.db 17h
.db 5
.db 4
.db 0Eh
.db 15h
.db 4
.db 4
.db 4
.db 4
.db 5
.db 4
.db 4
.db 4
.db 4
.db 15h
.db 0Eh
.db 4
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 4
.db 4
.db 4
.db 4
.db 0
.db 4
.db 4
.db 5
.db 0Ah
.db 0Ah
.db 0Ah
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0Ah
.db 0Ah
.db 1Fh
.db 0Ah
.db 1Fh
.db 0Ah
.db 0Ah
.db 5
.db 8
.db 0Ah
.db 0Eh
.db 2
.db 2
.db 0
.db 0
.db 5
.db 18h
.db 19h
.db 2
.db 4
.db 8
.db 13h
.db 3
.db 5
.db 8
.db 14h
.db 14h
.db 8
.db 15h
.db 12h
.db 0Dh
.db 5
.db 4
.db 4
.db 4
.db 0
.db 0
.db 0
.db 0
.db 5
.db 2
.db 4
.db 8
.db 8
.db 8
.db 4
.db 2
.db 5
.db 8
.db 4
.db 2
.db 2
.db 2
.db 4
.db 8
.db 5
.db 0
.db 4
.db 15h
.db 0Eh
.db 15h
.db 4
.db 0
.db 5
.db 0
.db 4
.db 4
.db 1Fh
.db 4
.db 4
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0Ch
.db 4
.db 8
.db 5
.db 0
.db 0
.db 0
.db 1Fh
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0Ch
.db 0Ch
.db 5
.db 0
.db 1
.db 2
.db 4
.db 8
.db 10h
.db 0
.db 5
.db 0Eh
.db 11h
.db 13h
.db 15h
.db 19h
.db 11h
.db 0Eh
.db 5
.db 4
.db 0Ch
.db 4
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 0Eh
.db 11h
.db 1
.db 2
.db 4
.db 8
.db 1Fh
.db 5
.db 1Fh
.db 2
.db 4
.db 2
.db 1
.db 11h
.db 0Eh
.db 5
.db 2
.db 6
.db 0Ah
.db 12h
.db 1Fh
.db 2
.db 2
.db 5
.db 1Fh
.db 10h
.db 1Eh
.db 1
.db 1
.db 11h
.db 0Eh
.db 5
.db 6
.db 8
.db 10h
.db 1Eh
.db 11h
.db 11h
.db 0Eh
.db 5
.db 1Fh
.db 1
.db 2
.db 4
.db 8
.db 8
.db 8
.db 5
.db 0Eh
.db 11h
.db 11h
.db 0Eh
.db 11h
.db 11h
.db 0Eh
.db 5
.db 0Eh
.db 11h
.db 11h
.db 0Fh
.db 1
.db 2
.db 0Ch
.db 5
.db 0
.db 0Ch
.db 0Ch
.db 0
.db 0Ch
.db 0Ch
.db 0
.db 5
.db 0
.db 0Ch
.db 0Ch
.db 0
.db 0Ch
.db 4
.db 8
.db 5
.db 2
.db 4
.db 8
.db 10h
.db 8
.db 4
.db 2
.db 5
.db 0
.db 0
.db 1Fh
.db 0
.db 1Fh
.db 0
.db 0
.db 5
.db 8
.db 4
.db 2
.db 1
.db 2
.db 4
.db 8
.db 5
.db 0Eh
.db 11h
.db 1
.db 2
.db 4
.db 0
.db 4
.db 5
.db 0Eh
.db 11h
.db 15h
.db 17h
.db 14h
.db 10h
.db 0Fh
.db 5
.db 0Eh
.db 11h
.db 11h
.db 1Fh
.db 11h
.db 11h
.db 11h
.db 5
.db 1Eh
.db 11h
.db 11h
.db 1Eh
.db 11h
.db 11h
.db 1Eh
.db 5
.db 0Eh
.db 11h
.db 10h
.db 10h
.db 10h
.db 11h
.db 0Eh
.db 5
.db 1Eh
.db 11h
.db 11h
.db 11h
.db 11h
.db 11h
.db 1Eh
.db 5
.db 1Fh
.db 10h
.db 10h
.db 1Eh
.db 10h
.db 10h
.db 1Fh
.db 5
.db 1Fh
.db 10h
.db 10h
.db 1Eh
.db 10h
.db 10h
.db 10h
.db 5
.db 0Eh
.db 11h
.db 10h
.db 17h
.db 11h
.db 11h
.db 0Fh
.db 5
.db 11h
.db 11h
.db 11h
.db 1Fh
.db 11h
.db 11h
.db 11h
.db 5
.db 0Eh
.db 4
.db 4
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 7
.db 2
.db 2
.db 2
.db 2
.db 12h
.db 0Ch
.db 5
.db 11h
.db 12h
.db 14h
.db 18h
.db 14h
.db 12h
.db 11h
.db 5
.db 10h
.db 10h
.db 10h
.db 10h
.db 10h
.db 10h
.db 1Fh
.db 5
.db 11h
.db 1Bh
.db 15h
.db 15h
.db 11h
.db 11h
.db 11h
.db 5
.db 11h
.db 11h
.db 19h
.db 15h
.db 13h
.db 11h
.db 11h
.db 5
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 1Eh
.db 11h
.db 11h
.db 1Eh
.db 10h
.db 10h
.db 10h
.db 5
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 15h
.db 12h
.db 0Dh
.db 5
.db 1Eh
.db 11h
.db 11h
.db 1Eh
.db 14h
.db 12h
.db 11h
.db 5
.db 0Fh
.db 10h
.db 10h
.db 0Eh
.db 1
.db 1
.db 1Eh
.db 5
.db 1Fh
.db 4
.db 4
.db 4
.db 4
.db 4
.db 4
.db 5
.db 11h
.db 11h
.db 11h
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 11h
.db 11h
.db 11h
.db 11h
.db 0Ah
.db 0Ah
.db 4
.db 5
.db 11h
.db 11h
.db 11h
.db 15h
.db 15h
.db 15h
.db 0Ah
.db 5
.db 11h
.db 11h
.db 0Ah
.db 4
.db 0Ah
.db 11h
.db 11h
.db 5
.db 11h
.db 11h
.db 11h
.db 0Ah
.db 4
.db 4
.db 4
.db 5
.db 1Fh
.db 1
.db 2
.db 4
.db 8
.db 10h
.db 1Fh
.db 5
.db 6
.db 9
.db 11h
.db 1Fh
.db 11h
.db 12h
.db 0Ch
.db 5
.db 0
.db 10h
.db 8
.db 4
.db 2
.db 1
.db 0
.db 5
.db 0Ch
.db 4
.db 4
.db 4
.db 4
.db 4
.db 0Ch
.db 5
.db 4
.db 0Ah
.db 11h
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 1Fh
.db 5
.db 4
.db 4
.db 2
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0Eh
.db 1
.db 0Fh
.db 11h
.db 0Fh
.db 5
.db 10h
.db 10h
.db 16h
.db 19h
.db 11h
.db 11h
.db 1Eh
.db 5
.db 0
.db 0
.db 0Eh
.db 10h
.db 10h
.db 11h
.db 0Eh
.db 5
.db 1
.db 1
.db 0Dh
.db 13h
.db 11h
.db 11h
.db 0Fh
.db 5
.db 0
.db 0
.db 0Eh
.db 11h
.db 1Fh
.db 10h
.db 0Eh
.db 5
.db 6
.db 9
.db 8
.db 1Ch
.db 8
.db 8
.db 8
.db 5
.db 0
.db 0Fh
.db 11h
.db 11h
.db 0Fh
.db 1
.db 0Eh
.db 5
.db 10h
.db 10h
.db 16h
.db 19h
.db 11h
.db 11h
.db 11h
.db 5
.db 4
.db 0
.db 0Ch
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 2
.db 0
.db 6
.db 2
.db 2
.db 12h
.db 0Ch
.db 5
.db 8
.db 8
.db 9
.db 0Ah
.db 0Ch
.db 0Ah
.db 9
.db 5
.db 0Ch
.db 4
.db 4
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 0
.db 0
.db 1Ah
.db 15h
.db 15h
.db 11h
.db 11h
.db 5
.db 0
.db 0
.db 16h
.db 19h
.db 11h
.db 11h
.db 11h
.db 5
.db 0
.db 0
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 0
.db 0
.db 1Eh
.db 11h
.db 1Eh
.db 10h
.db 10h
.db 5
.db 0
.db 0
.db 0Dh
.db 13h
.db 0Fh
.db 1
.db 1
.db 5
.db 0
.db 0
.db 16h
.db 19h
.db 10h
.db 10h
.db 10h
.db 5
.db 0
.db 0
.db 0Eh
.db 10h
.db 0Eh
.db 1
.db 1Eh
.db 5
.db 8
.db 8
.db 1Ch
.db 8
.db 8
.db 9
.db 6
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 11h
.db 13h
.db 0Dh
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 11h
.db 0Ah
.db 4
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 15h
.db 15h
.db 0Ah
.db 5
.db 0
.db 0
.db 11h
.db 0Ah
.db 4
.db 0Ah
.db 11h
.db 5
.db 0
.db 0
.db 11h
.db 11h
.db 0Fh
.db 1
.db 0Eh
.db 5
.db 0
.db 0
.db 1Fh
.db 2
.db 4
.db 8
.db 1Fh
.db 5
.db 3
.db 4
.db 4
.db 8
.db 4
.db 4
.db 3
.db 5
.db 4
.db 4
.db 4
.db 4
.db 4
.db 4
.db 4
.db 5
.db 18h
.db 4
.db 4
.db 2
.db 4
.db 4
.db 18h
.db 5
.db 0
.db 8
.db 15h
.db 2
.db 0
.db 0
.db 0
.db 5
.db 1Fh
.db 1Fh
.db 11h
.db 1Fh
.db 11h
.db 1Fh
.db 1Fh
.db 5
.db 0
.db 0
.db 0Eh
.db 0Ah
.db 0Ah
.db 0Ah
.db 0Eh
.db 5
.db 0
.db 0
.db 4
.db 0Ch
.db 4
.db 4
.db 4
.db 5
.db 0
.db 0
.db 0Ch
.db 2
.db 4
.db 8
.db 0Eh
.db 5
.db 0
.db 0
.db 0Ch
.db 2
.db 4
.db 2
.db 0Ch
.db 5
.db 0
.db 0
.db 8
.db 0Ah
.db 0Eh
.db 2
.db 2
.db 5
.db 0
.db 0
.db 0Eh
.db 8
.db 0Ch
.db 2
.db 0Ch
.db 5
.db 0
.db 0
.db 6
.db 8
.db 0Eh
.db 0Ah
.db 0Eh
.db 5
.db 0
.db 0
.db 0Eh
.db 2
.db 4
.db 8
.db 8
.db 5
.db 0
.db 0
.db 0Eh
.db 0Ah
.db 0Eh
.db 0Ah
.db 0Eh
.db 5
.db 0
.db 0
.db 0Eh
.db 0Ah
.db 0Eh
.db 2
.db 0Ch
.db 5
.db 2
.db 4
.db 0Eh
.db 11h
.db 11h
.db 1Fh
.db 11h
.db 5
.db 8
.db 4
.db 0Eh
.db 11h
.db 11h
.db 1Fh
.db 11h
.db 5
.db 4
.db 0Ah
.db 0
.db 0Eh
.db 11h
.db 1Fh
.db 11h
.db 5
.db 0Ah
.db 0
.db 0Eh
.db 11h
.db 11h
.db 1Fh
.db 11h
.db 5
.db 2
.db 4
.db 0Eh
.db 1
.db 0Fh
.db 11h
.db 0Fh
.db 5
.db 8
.db 4
.db 0Eh
.db 1
.db 0Fh
.db 11h
.db 0Fh
.db 5
.db 4
.db 0Ah
.db 0Eh
.db 1
.db 0Fh
.db 11h
.db 0Fh
.db 5
.db 0Ah
.db 0
.db 0Eh
.db 1
.db 0Fh
.db 11h
.db 0Fh
.db 5
.db 2
.db 4
.db 1Fh
.db 10h
.db 1Eh
.db 10h
.db 1Fh
.db 5
.db 8
.db 4
.db 1Fh
.db 10h
.db 1Eh
.db 10h
.db 1Fh
.db 5
.db 4
.db 0Ah
.db 1Fh
.db 10h
.db 1Eh
.db 10h
.db 1Fh
.db 5
.db 0Ah
.db 0
.db 1Fh
.db 10h
.db 1Eh
.db 10h
.db 1Fh
.db 5
.db 2
.db 4
.db 0Eh
.db 11h
.db 1Fh
.db 10h
.db 0Eh
.db 5
.db 8
.db 4
.db 0Eh
.db 11h
.db 1Fh
.db 10h
.db 0Eh
.db 5
.db 4
.db 0Ah
.db 0Eh
.db 11h
.db 1Fh
.db 10h
.db 0Eh
.db 5
.db 0Ah
.db 0
.db 0Eh
.db 11h
.db 1Fh
.db 10h
.db 0Eh
.db 5
.db 2
.db 4
.db 0Eh
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 8
.db 4
.db 0Eh
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 4
.db 0Ah
.db 0Eh
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 0Ah
.db 0
.db 0Eh
.db 4
.db 4
.db 4
.db 0Eh
.db 5
.db 2
.db 4
.db 0
.db 0Ch
.db 4
.db 4
.db 0Eh
.db 5
.db 8
.db 4
.db 0
.db 0Ch
.db 4
.db 4
.db 0Eh
.db 5
.db 4
.db 0Ah
.db 0
.db 0Ch
.db 4
.db 4
.db 0Eh
.db 5
.db 0Ah
.db 0
.db 0
.db 0Ch
.db 4
.db 4
.db 0Eh
.db 5
.db 2
.db 4
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 8
.db 4
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 4
.db 0Ah
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 0Ah
.db 0
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 2
.db 4
.db 0
.db 0Eh
.db 11h
.db 11h
.db 0Eh
.db 5
.db 8
.db 4
.db 0
.db 0Eh
.db 11h
.db 11h
.db 0Eh
.db 5
.db 4
.db 0Ah
.db 0
.db 0Eh
.db 11h
.db 11h
.db 0Eh
.db 5
.db 0Ah
.db 0
.db 0
.db 0Eh
.db 11h
.db 11h
.db 0Eh
.db 5
.db 2
.db 4
.db 11h
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 8
.db 4
.db 11h
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 4
.db 0Ah
.db 0
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 0Ah
.db 0
.db 11h
.db 11h
.db 11h
.db 11h
.db 0Eh
.db 5
.db 2
.db 4
.db 11h
.db 11h
.db 11h
.db 13h
.db 0Dh
.db 5
.db 8
.db 4
.db 11h
.db 11h
.db 11h
.db 13h
.db 0Dh
.db 5
.db 4
.db 0Ah
.db 0
.db 11h
.db 11h
.db 13h
.db 0Dh
.db 5
.db 0Ah
.db 0
.db 11h
.db 11h
.db 11h
.db 13h
.db 0Dh
.db 5
.db 0Eh
.db 11h
.db 10h
.db 11h
.db 0Eh
.db 4
.db 1Ch
.db 5
.db 0
.db 0
.db 0Eh
.db 10h
.db 11h
.db 0Eh
.db 1Ch
.db 5
.db 5
.db 0Ah
.db 11h
.db 19h
.db 15h
.db 13h
.db 11h
.db 5
.db 5
.db 0Ah
.db 0
.db 16h
.db 19h
.db 11h
.db 11h
.db 5
.db 1
.db 2
.db 4
.db 0
.db 0
.db 0
.db 0
.db 5
.db 10h
.db 8
.db 4
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0Ah
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 4
.db 0
.db 4
.db 8
.db 10h
.db 11h
.db 0Eh
.db 5
.db 4
.db 4
.db 0
.db 4
.db 4
.db 4
.db 4
.db 5
.db 0
.db 0
.db 0Dh
.db 12h
.db 12h
.db 12h
.db 0Dh
.db 5
.db 6
.db 9
.db 9
.db 0Eh
.db 9
.db 9
.db 16h
.db 5
.db 0
.db 0
.db 9
.db 15h
.db 2
.db 2
.db 2
.db 5
.db 0
.db 0
.db 0
.db 4
.db 0Ah
.db 11h
.db 1Fh
.db 5
.db 6
.db 8
.db 4
.db 2
.db 0Fh
.db 11h
.db 0Eh
.db 5
.db 0
.db 0
.db 0Eh
.db 10h
.db 1Eh
.db 10h
.db 0Eh
.db 5
.db 6
.db 4
.db 4
.db 4
.db 4
.db 4
.db 6
.db 5
.db 0
.db 8
.db 4
.db 2
.db 6
.db 9
.db 11h
.db 5
.db 0
.db 0
.db 12h
.db 12h
.db 12h
.db 1Dh
.db 10h
.db 5
.db 0
.db 0
.db 1Fh
.db 0Ah
.db 0Ah
.db 0Ah
.db 13h
.db 5
.db 0
.db 6
.db 9
.db 9
.db 0Eh
.db 8
.db 10h
.db 5
.db 1Fh
.db 8
.db 4
.db 2
.db 4
.db 8
.db 1Fh
.db 5
.db 0
.db 0
.db 0Fh
.db 12h
.db 12h
.db 12h
.db 0Ch
.db 5
.db 0
.db 0
.db 0Fh
.db 14h
.db 4
.db 5
.db 2
.db 5
.db 4
.db 4
.db 0Eh
.db 15h
.db 0Eh
.db 4
.db 4
.db 5
.db 0Eh
.db 11h
.db 11h
.db 11h
.db 0Ah
.db 0Ah
.db 1Bh
.db 5
.db 1Fh
.db 0
.db 11h
.db 0Ah
.db 4
.db 0Ah
.db 11h
.db 5
.db 1Fh
.db 0
.db 11h
.db 11h
.db 0Fh
.db 1
.db 0Eh
.db 5
.db 5
.db 2
.db 5
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 15h
.db 5
.db 0
.db 2
.db 6
.db 0Eh
.db 6
.db 2
.db 0
.db 5
.db 0
.db 0
.db 1Ch
.db 1Ch
.db 1Ch
.db 0
.db 0
.db 5
.db 2
.db 2
.db 2
.db 4
.db 8
.db 8
.db 8
.db 5
.db 0
.db 0
.db 0
.db 0Eh
.db 0
.db 0
.db 0
.db 5
.db 0Eh
.db 2
.db 0Eh
.db 8
.db 0Eh
.db 0
.db 0
.db 5
.db 0Eh
.db 0Ah
.db 0Eh
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0Ch
.db 2
.db 4
.db 2
.db 0Ch
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 8
.db 0
.db 18h
.db 8
.db 8
.db 0Ah
.db 4
.db 5
.db 4
.db 0Ah
.db 1Eh
.db 11h
.db 1Eh
.db 10h
.db 10h
.db 5
.db 10h
.db 9
.db 0Ah
.db 4
.db 0Ah
.db 12h
.db 1
.db 5
.db 1Fh
.db 11h
.db 14h
.db 1Ch
.db 14h
.db 10h
.db 10h
.db 5
.db 0
.db 0
.db 0Eh
.db 11h
.db 1Eh
.db 10h
.db 0Ch
.db 5
.db 0
.db 0
.db 4
.db 4
.db 4
.db 4
.db 7
.db 5
.db 11h
.db 19h
.db 1Dh
.db 1Fh
.db 17h
.db 13h
.db 11h
.db 5
.db 14h
.db 0Ah
.db 5
.db 5
.db 5
.db 0Ah
.db 14h
.db 5
.db 0
.db 8
.db 1Ch
.db 1Eh
.db 1Ch
.db 8
.db 0
.db 5
.db 1Fh
.db 1Fh
.db 1Fh
.db 1Fh
.db 1Fh
.db 1Fh
.db 1Fh
.db 5
.db 1Fh
.db 1Bh
.db 11h
.db 0Ah
.db 1Bh
.db 1Bh
.db 1Bh
.db 5
.db 1Fh
.db 1Bh
.db 15h
.db 11h
.db 15h
.db 15h
.db 1Fh
.db 5
.db 1Fh
.db 1Bh
.db 1Dh
.db 19h
.db 15h
.db 19h
.db 1Fh
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 1Fh
.db 5
.db 4
.db 0Eh
.db 15h
.db 4
.db 4
.db 0
.db 1Fh
.db 5
.db 4
.db 0Ah
.db 0Eh
.db 0Ah
.db 0Ah
.db 0
.db 1Fh
.db 5
.db 4
.db 2
.db 6
.db 0Ah
.db 6
.db 0
.db 1Fh
.db 5
.db 0
.db 0
.db 8
.db 4
.db 2
.db 1
.db 0
.db 5
.db 18h
.db 1Ch
.db 0Eh
.db 7
.db 3
.db 1
.db 0
.db 5
.db 1Fh
.db 0Fh
.db 7
.db 3
.db 1
.db 0
.db 0
.db 5
.db 0
.db 0
.db 10h
.db 18h
.db 1Ch
.db 1Eh
.db 1Fh
.db 5
.db 0
.db 2
.db 5
.db 1Dh
.db 5
.db 2
.db 0
.db 5
.db 0
.db 4
.db 0Ah
.db 0Ah
.db 0Ah
.db 4
.db 0
.db 5
.db 0
.db 10h
.db 0
.db 4
.db 0
.db 1
.db 0
.db 5
.db 4
.db 0Eh
.db 1Fh
.db 0Eh
.db 0Eh
.db 0Eh
.db 0
.db 5
.db 0
.db 0Eh
.db 0Eh
.db 0Eh
.db 1Fh
.db 0Eh
.db 4
.db 5
.db 15h
.db 0Ah
.db 15h
.db 0Ah
.db 15h
.db 0Ah
.db 15h
.db 5
.db 4
.db 0Fh
.db 14h
.db 0Eh
.db 5
.db 1Eh
.db 4
.db 5
.db 4
.db 0Eh
.db 1Fh
.db 0Eh
.db 0Eh
.db 0
.db 0
.db 5
.db 0Ch
.db 12h
.db 12h
.db 16h
.db 11h
.db 11h
.db 16h
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 5
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
.db 0
; ---------------------------------------------------------------------------
ConvLcToLr:
call FIND_E_UNDEF
push hl
ex de, hl
ld e, (hl)
inc hl
ld d, (hl)
inc hl
push hl
ex de, hl
ld a, h
or l
jr nz, p07loc_4D8E
pop hl
jr p07loc_4DAF
; ---------------------------------------------------------------------------
p07loc_4D8E:
call HLTimes9
pop de
push hl
ld h, d
ld l, e
push bc
p07loc_4D96:
res 3, (hl)
res 2, (hl)
call mov9B2
pop bc
dec bc
ld a, b
or c
jr z, p07loc_4DAA
push bc
ld bc, 9
add hl, bc
jr p07loc_4D96
; ---------------------------------------------------------------------------
p07loc_4DAA:
ex de, hl
pop de
call DelMem
p07loc_4DAF:
pop hl
ld a, (hl)
sub 0Ch
ld (hl), a
ld (OP1), a
ret
; ---------------------------------------------------------------------------
RedimMat:
call page0_1847
push hl
call HTimesL
push hl
call FIND_E_UNDEF
ld (iMathPtr1), de
ex de, hl
ld e, (hl)
inc hl
ld d, (hl)
ld (OP3), de
ex de, hl
call HTimesL
pop de
ex de, hl
or a
sbc hl, de
jr z, p07loc_4DE2
jr c, p07loc_4DE2
call p07sub_4EF9
call ErrNotEnoughMem
p07loc_4DE2:
pop hl
ld bc, (OP3)
ld a, b
sub h
jr c, p07loc_4E32
ld b, a
call p07sub_4EEF
ld c, a
push bc
jr c, p07loc_4E49
push hl
call p07sub_4ED2
pop bc
inc c
pop hl
ld b, l
; =============== S U B R O U T I N E =======================================
p07sub_4DFB:
push bc
call p07sub_4F07
jr nz, p07loc_4E03
pop bc
ret
; ---------------------------------------------------------------------------
p07loc_4E03:
ld b, a
ld hl, (FPS)
push hl
p07loc_4E08:
push bc
push de
ld de, (iMathPtr1)
call j_AdrMEle
pop de
push de
call DELMEMA
pop de
pop bc
call DeallocFPS1
djnz p07loc_4E08
pop hl
ld (FPS), hl
ld bc, (freeRAM)
ld de, (iMathPtr1)
call DELVAR3D
ld hl, (iMathPtr1)
jp p07loc_4EEA
; End of function p07sub_4DFB
; ---------------------------------------------------------------------------
p07loc_4E32:
ld a, h
sub b
ld b, a
call p07sub_4EEF
ld c, a
push bc
jr c, p07loc_4E9E
ld b, c
ld c, l
inc c
call p07sub_4DFB
pop bc
ld a, (OP3+1)
ld c, a
jr p07loc_4EAB
; ---------------------------------------------------------------------------
p07loc_4E49:
call p07sub_4ED2
pop bc
ld b, c
ld a, (OP3)
ld c, a
; =============== S U B R O U T I N E =======================================
p07sub_4E52:
push bc
call p07sub_4F07
jr nz, p07loc_4E5A
pop bc
ret
; ---------------------------------------------------------------------------
p07loc_4E5A:
ld b, a
inc c
push bc
push de
call ErrNotEnoughMem
pop de
pop bc
ld hl, (FPS)
push hl
p07loc_4E67:
push bc
push de
ld de, (iMathPtr1)
call j_AdrMEle
ex de, hl
pop hl
push hl
call INSERTMEMA
pop hl
push hl
ld bc, (FPS)
add hl, bc
ld (FPS), hl
sbc hl, bc
or a
call p07sub_4F2F
pop de
pop bc
djnz p07loc_4E67
pop hl
ld (FPS), hl
ld bc, (freeRAM)
ld de, (iMathPtr1)
call DELVAR3DC
ld hl, (iMathPtr1)
jr p07loc_4ECE
; ---------------------------------------------------------------------------
p07loc_4E9E:
ld b, c
ld a, (OP3)
ld c, a
call p07sub_4E52
pop bc
ld a, (OP3+1)
ld c, a
p07loc_4EAB:
call p07sub_4F16
ret z
push bc
push hl
ld b, c
inc b
push bc
call ErrNotEnoughMem
pop bc
ld de, (iMathPtr1)
call j_AdrMRow
ex de, hl
pop hl
push hl
call InsertMem
pop hl
or a
call p07sub_4F2F
ld hl, (iMathPtr1)
inc hl
p07loc_4ECE:
pop af
add a, (hl)
ld (hl), a
ret
; End of function p07sub_4E52
; =============== S U B R O U T I N E =======================================
p07sub_4ED2:
ld c, h
inc c
call p07sub_4F16
ret z
push bc
push hl
ld b, c
ld de, (iMathPtr1)
call j_AdrMRow
pop de
call DelMem
ld hl, (iMathPtr1)
inc hl
p07loc_4EEA:
pop bc
ld a, (hl)
sub b
ld (hl), a
ret
; End of function p07sub_4ED2
; =============== S U B R O U T I N E =======================================
p07sub_4EEF:
ld a, c
sub l
ret nc
ld a, l
sub c
scf
ret
; End of function p07sub_4EEF
; =============== S U B R O U T I N E =======================================
p07sub_4EF6:
ld l, b
ld h, 0
; End of function p07sub_4EF6
; =============== S U B R O U T I N E =======================================
p07sub_4EF9:
call HLTimes9
p07loc_4EFC:
jp c, ErrMemory
call page0_184C
ret z
add hl, hl
jr c, p07loc_4EFC
ret
; End of function p07sub_4EF9
; =============== S U B R O U T I N E =======================================
p07sub_4F07:
ld a, b
or a
ret z
push bc
call p07sub_4EF6
ex de, hl
ld hl, (iMathPtr1)
inc hl
ld a, (hl)
jr p07loc_4F22
; End of function p07sub_4F07
; =============== S U B R O U T I N E =======================================
p07sub_4F16:
; p07sub_4ED2+2p
ld a, b
or a
ret z
push bc
ld hl, (iMathPtr1)
ld b, (hl)
call p07sub_4EF6
ex de, hl
p07loc_4F22:
ld b, a
ld hl, 0
p07loc_4F26:
add hl, de
djnz p07loc_4F26
ld (freeRAM), hl
dec b
pop bc
ret
; End of function p07sub_4F16
; =============== S U B R O U T I N E =======================================
p07sub_4F2F:
call page0_1847
p07loc_4F32:
push af
add hl, de
pop af
push hl
push af
call page0_184C
jr nz, p07loc_4F51
p07loc_4F3C:
pop af
jr nc, p07loc_4F44
call page0_1020
jr p07loc_4F47
; ---------------------------------------------------------------------------
p07loc_4F44:
call OPSet0DE
p07loc_4F47:
pop hl
push hl
push af
xor a
sbc hl, de
jr z, p07loc_4F68
jr p07loc_4F3C
; ---------------------------------------------------------------------------
p07loc_4F51:
pop af
ld hl, page0_FF6
jr nc, p07loc_4F5A
ld hl, page0_FED
p07loc_4F5A:
call mov9B2
call mov9B2
pop hl
push hl
push af
xor a
sbc hl, de
jr nz, p07loc_4F51
p07loc_4F68:
pop hl
pop hl
ret
; End of function p07sub_4F2F
; ---------------------------------------------------------------------------
IncLstSize:
ex de, hl
ld c, (hl)
inc hl
ld b, (hl)
dec hl
ex de, hl
ld hl, 3E7h
or a
sbc hl, bc
jp z, ErrDimension
ld hl, 1
or a
InsertList:
ld (insDelPtr), de
push hl
push af
push bc
call page0_1847
and 8
call nz, page0_1842
call p07sub_4EF9
call ErrNotEnoughMem
pop hl
push de
inc hl
ld de, (insDelPtr)
call j_AdrLEle
ex de, hl
pop hl
push hl
call InsertMem
pop hl
pop af
call p07loc_4F32
pop de
ld hl, (insDelPtr)
ld c, (hl)
inc hl
ld b, (hl)
ld a, b
or c
jr nz, p07loc_4FB3
p07loc_4FB3:
ex de, hl
add hl, bc
call p07sub_4FDD
ex de, hl
ret
; ---------------------------------------------------------------------------
dellistel:
and 1Fh
ld (insDelPtr), de
push hl
push bc
cp 0Dh
jr nz, p07loc_4FC7
add hl, hl
p07loc_4FC7:
call HLTimes9
ex (sp), hl
call j_AdrLEle
pop de
call DelMem
ld hl, (insDelPtr)
pop bc
ld e, (hl)
inc hl
ld d, (hl)
ex de, hl
or a
sbc hl, bc
; =============== S U B R O U T I N E =======================================
p07sub_4FDD:
ex de, hl
ld (hl), d
dec hl
ld (hl), e
ret
; End of function p07sub_4FDD
; ---------------------------------------------------------------------------
EditProg:
ex de, hl
ld (iMathPtr1), hl
ld e, (hl)
inc hl
ld d, (hl)
add hl, de
inc hl
ld (iMathPtr2), hl
ex de, hl
ld hl, (FPS)
or a
sbc hl, de
ld (iMathPtr4), hl
jr nz, p07loc_5002
add hl, de
dec hl
push hl
ld hl, (OPS)
jr p07loc_500E
; ---------------------------------------------------------------------------
p07loc_5002:
ld b, h
ld c, l
add hl, de
dec hl
ld de, (OPS)
lddr
ex de, hl
push de
p07loc_500E:
inc hl
ld (iMathPtr3), hl
ld de, (iMathPtr2)
or a
sbc hl, de
ld a, l
cpl
ld c, a
ld a, h
cpl
ld b, a
inc bc
pop de
call ADJM7
jp DELVAR3C
; ---------------------------------------------------------------------------
CloseProg:
ld bc, (iMathPtr4)
ld hl, (iMathPtr2)
ld a, b
or c
jr z, p07loc_5038
ex de, hl
ld hl, (iMathPtr3)
ldir
p07loc_5038:
ld hl, (iMathPtr3)
ld de, (iMathPtr2)
or a
sbc hl, de
ld b, h
ld c, l
dec de
call ADJM7
jp DELVAR3C
; ---------------------------------------------------------------------------
ClrGraphRef:
ld hl, symTable
ld bc, (OPBase)
inc bc
or a
p07loc_5054:
sbc hl, bc
ret c
add hl, bc
res 6, (hl)
call MoveToNextSym
jr p07loc_5054
; =============== S U B R O U T I N E =======================================
FixTempCnt:
ld a, d
or e
jp z, CleanAll
ld (pTempCnt), de
ld hl, (unk_982E)
p07loc_506B:
push hl
call Page0Call_2406
or a
ld bc, (OPBase)
sbc hl, bc
jr nc, p07loc_507A
pop hl
ret
; ---------------------------------------------------------------------------
p07loc_507A:
add hl, bc
ld e, (hl)
dec hl
ld d, (hl)
dec hl
pop bc
push hl
ld hl, (pTempCnt)
or a
sbc hl, de
jr c, p07loc_508B
jr nz, p07loc_508F
p07loc_508B:
ld h, b
ld l, c
set 7, (hl)
p07loc_508F:
pop hl
jr p07loc_506B
; End of function FixTempCnt
; =============== S U B R O U T I N E =======================================
SAVEDATA:
rst 18h
call Page0Call_241E
jr nc, p07loc_50A3
call CreateReal
call OPSet0DE
call OP1Set0
jr p07loc_50B2
; ---------------------------------------------------------------------------
p07loc_50A3:
ld a, (OP1)
and 1Fh
jr nz, p07loc_50AF
call j_RclVarSym
jr p07loc_50B2
; ---------------------------------------------------------------------------
p07loc_50AF:
call OP1Set0
p07loc_50B2:
call PushOP1
ld a, (unk_9814)
push af
ld h, a
inc a
ld (unk_9814), a
xor a
ld l, a
ld (OP1+1), hl
ld (OP1+3), a
call j_StoOther
pop af
ld h, a
xor a
ld l, a
ld (OP1+1), hl
ld (OP1+3), a
rst 10h
push de
push hl
call PopRealO1
call FIND_E_UNDEF
; End of function SAVEDATA
; START OF FUNCTION CHUNK FOR p07sub_5119
p07loc_50DC:
ex (sp), hl
call p07sub_50EC
inc hl
inc hl
inc hl
inc hl
pop de
ld a, (de)
ld b, (hl)
ld (hl), a
ld a, b
ld (de), a
ex de, hl
pop de
; END OF FUNCTION CHUNK FOR p07sub_5119
; =============== S U B R O U T I N E =======================================
p07sub_50EC:
dec hl
dec hl
dec hl
ld (hl), e
dec hl
ld (hl), d
ret
; End of function p07sub_50EC
; =============== S U B R O U T I N E =======================================
RESTOREDATA:
call Page0Call_241E
p07loc_50F6:
ld a, (unk_9814)
sub 1
ret c
ld (unk_9814), a
ld b, a
xor a
ld c, a
ld (OP1+1), bc
ld (OP1+3), a
push de
push hl
call Page0Call_241E
pop hl
pop de
jr c, p07loc_50F6
call p07sub_5119
rst 10h
jp DelVar
; End of function RESTOREDATA
; =============== S U B R O U T I N E =======================================
p07sub_5119:
push de
push hl
call Page0Call_241E
bit drawingGraph, (iy+graphFlags)
jr z, p07loc_50DC
set 6, (hl)
jr p07loc_50DC
; End of function p07sub_5119
; =============== S U B R O U T I N E =======================================
FindAlphaUp:
scf
jr p07loc_512D
; ---------------------------------------------------------------------------
FindAlphaDn:
scf
ccf
p07loc_512D:
push hl
ld a, 0
push af
call OP1ToOP3
call CkOP1Real
call IS_A_LSTorCLST
jr nz, p07loc_5142
ld a, (OP1+1)
inc a
jr z, p07loc_5149
p07loc_5142:
call ISO1NONTLSTorPROG
ld a, 5
jr nz, p07loc_515B
p07loc_5149:
call CMPPRGNAMLEN
ld hl, (progPtr)
ld de, (unk_982E)
ld b, a
ld a, 8
sub b
jr z, p07loc_516D
jr p07loc_5162
; ---------------------------------------------------------------------------
p07loc_515B:
ld de, (progPtr)
ld hl, symTable
p07loc_5162:
push hl
ld hl, 8481h
ld b, a
p07loc_5167:
dec hl
ld (hl), 0
djnz p07loc_5167
pop hl
p07loc_516D:
pop af
pop bc
jr p07loc_5174
; ---------------------------------------------------------------------------
p07loc_5171:
; FindAlphaUp:p07loc_520Bj
pop af
pop bc
pop de
p07loc_5174:
push de
push bc
push af
call CkOP1Real
cp 0Dh
jr nz, p07loc_5182
ld a, 1
jr p07loc_5187
; ---------------------------------------------------------------------------
p07loc_5182:
cp 6
jr nz, p07loc_5187
dec a
p07loc_5187:
; FindAlphaUp+5Cj
cp 0Bh
jr nz, p07loc_518D
ld a, 3
p07loc_518D:
ld b, a
or a
inc de
sbc hl, de
jp c, p07loc_5221
add hl, de
ld (upDownPtr), hl
ld a, (hl)
and 1Fh
cp 0Dh
jr nz, p07loc_51A4
ld a, 1
jr p07loc_51A9
; ---------------------------------------------------------------------------
p07loc_51A4:
cp 6
jr nz, p07loc_51A9
dec a
p07loc_51A9:
; FindAlphaUp+7Ej
cp 0Bh
jr nz, p07loc_51AF
ld a, 3
p07loc_51AF:
cp b
jr z, p07loc_51DF
ld de, 9
call page0_17B3
jr z, p07loc_51C7
call IS_A_LSTorCLST
jr z, p07loc_51C7
cp 9
jr nz, p07loc_51D9
cp 0Ah
jr z, p07loc_51D9
p07loc_51C7:
; FindAlphaUp+95j
call Page0Call_2407
ld a, (hl)
cp 72h ; 'r'
jr nz, p07loc_51D3
p07loc_51CF:
ld e, 3
jr p07loc_51D9
; ---------------------------------------------------------------------------
p07loc_51D3:
cp 3Ah ; ':'
jr z, p07loc_51CF
ld e, (hl)
inc e
p07loc_51D9:
; FindAlphaUp+9Dj ...
or a
sbc hl, de
p07loc_51DC:
; FindAlphaUp+CFj ...
jp p07loc_5171
; ---------------------------------------------------------------------------
p07loc_51DF:
call Page07_2F9D
jr c, p07loc_51DC
ld a, (OP1M)
cp 0FFh
jr z, p07loc_520E
push hl
ld de, 8480h
call p07sub_522C
pop hl
jr c, p07loc_520E
bit 3, c
jr nz, p07loc_51DC
pop af
push af
jr c, p07loc_51DC
bit 1, a
jr z, p07loc_523E
push hl
ld de, 8496h
call p07sub_522C
jr c, p07loc_5243
p07loc_520A:
pop hl
p07loc_520B:
; FindAlphaUp+127j
jp p07loc_5171
; ---------------------------------------------------------------------------
p07loc_520E:
; FindAlphaUp+CBj
pop af
push af
jr nc, p07loc_520B
bit 1, a
jr z, p07loc_523E
push hl
ld de, 8496h
call p07sub_522C
jr c, p07loc_520A
jr p07loc_5243
; ---------------------------------------------------------------------------
p07loc_5221:
call OP3ToOP1
pop af
pop hl
pop de
res 0, a
sub 2
ret
; End of function FindAlphaUp
; =============== S U B R O U T I N E =======================================
p07sub_522C:
; FindAlphaUp+DDp ...
ld hl, 848Bh
ld b, 8
CmpSyms:
xor a
ld c, 0
p07loc_5234:
ld a, (de)
sbc a, (hl)
jr nz, p07loc_5239
inc c
p07loc_5239:
dec de
dec hl
djnz p07loc_5234
ret
; End of function p07sub_522C
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR FindAlphaUp
p07loc_523E:
; FindAlphaUp+ECj
pop af
set 1, a
push af
push hl
p07loc_5243:
; FindAlphaUp+F7j
call OP2ToOP3
pop hl
pop af
pop de
ld de, (upDownPtr)
push de
push af
jr p07loc_520B
; END OF FUNCTION CHUNK FOR FindAlphaUp
; =============== S U B R O U T I N E =======================================
Page07_2F9D:
ld a, (hl)
and 1Fh
dec hl
dec hl
dec hl
dec hl
dec hl
ld b, (hl)
push bc
ld b, 3
call IS_A_LSTorCLST
jr z, p07loc_5267
call page0_17B3
jr nz, p07loc_527E
p07loc_5267:
dec hl
push af
ld a, (hl)
cp 72h ; 'r'
jr nz, p07loc_5272
p07loc_526E:
pop af
inc hl
jr p07loc_527E
; ---------------------------------------------------------------------------
p07loc_5272:
cp 3Ah ; ':'
jr z, p07loc_526E
pop af
ld b, (hl)
call IS_A_LSTorCLST
jr nz, p07loc_527E
dec b
p07loc_527E:
; Page07_2F9D+1Fj ...
push af
push hl
call ZeroOP2
pop hl
pop af
push af
ld de, OP2
ld (de), a
p07loc_528A:
dec hl
inc de
ld a, (hl)
ld (de), a
djnz p07loc_528A
dec hl
pop af
pop bc
call IS_A_LSTorCLST
jr nz, p07loc_52C6
ld a, (OP2+1)
cp 72h ; 'r'
jr z, p07loc_52D5
cp 3Ah ; ':'
jr z, p07loc_52D5
cp 5Dh ; ']'
jr nz, p07loc_52C1
ld a, (OP2M)
cp 40h ; '@'
jr nz, p07loc_52C1
dec hl
call IsInMenu
jr nz, p07loc_52BF
bit inGroup, (iy+groupFlags)
jr nz, p07loc_52BF
bit inDelete, (iy+ioDelFlag)
ret nz
p07loc_52BF:
; Page07_2F9D+67j
scf
ret
; ---------------------------------------------------------------------------
p07loc_52C1:
; Page07_2F9D+5Bj
ld a, (hl)
ld (OP2EXT), a
dec hl
p07loc_52C6:
bit inGroup, (iy+groupFlags)
jr z, p07loc_52D0
ld a, b
or a
jr nz, p07loc_52D5
p07loc_52D0:
ld a, (OP2+1)
cp 72h ; 'r'
p07loc_52D5:
; Page07_2F9D+50j ...
scf
ret z
cp 41h ; 'A'
ret
; End of function Page07_2F9D
; ---------------------------------------------------------------------------
CREATETEMP:
push hl
push af
ld hl, (pTempCnt)
ld (OP1M), hl
inc hl
ld a, h
or l
jp z, ErrMemory
ld (pTempCnt), hl
ld a, 24h ; '$'
ld (OP1+1), a
rst 10h
jr nc, p07loc_52F7
pop af
pop hl
or a
ret
; ---------------------------------------------------------------------------
p07loc_52F7:
res 7, (hl)
ex de, hl
call DataSize
ld (insDelPtr), hl
pop af
pop bc
push af
push bc
push de
call DataSizeA
pop hl
sbc hl, de
jr nc, p07loc_533F
add hl, de
ex de, hl
or a
sbc hl, de
call ErrNotEnoughMem
ex de, hl
ld de, (insDelPtr)
inc de
call InsertMem
p07loc_531E:
pop de
ld hl, (insDelPtr)
ld (hl), e
inc hl
ld (hl), d
ld a, d
or e
jr z, p07loc_5334
pop af
push af
inc hl
cp 0Dh
ld a, 0Ch
jr z, p07loc_5333
xor a
p07loc_5333:
ld (hl), a
p07loc_5334:
call OP1ToOP4
rst 10h
pop af
ld (hl), a
ld (OP4), a
scf
ret
; ---------------------------------------------------------------------------
p07loc_533F:
jr z, p07loc_531E
ex de, hl
ld hl, (insDelPtr)
inc hl
call DelMem
jr p07loc_531E
; =============== S U B R O U T I N E =======================================
CleanAll:
xor a
ld h, 0
ld l, 0
ld (pTempCnt), hl
ld (cleanTmp), hl
ld hl, (fpBase)
ld de, (tempMem)
sbc hl, de
ret z
ret c
push hl
ld hl, (FPS)
ld de, (fpBase)
sbc hl, de
jr z, p07loc_538B
ld b, h
ld c, l
ex de, hl
ld de, (tempMem)
p07loc_5374:
ldi
ldi
ldi
ldi
ldi
ldi
ldi
ldi
ldi
ld a, b
or c
jp nz, p07loc_5374
p07loc_538B:
ld hl, (FPS)
pop bc
sbc hl, bc
ld (FPS), hl
ld de, (tempMem)
ld (fpBase), de
dec de
call ADJMATH
ld hl, (OPBase)
ld de, (OPS)
or a
sbc hl, de
jr z, p07loc_53BE
ld b, h
ld c, l
add hl, de
ld de, (unk_982E)
ld (OPBase), de
lddr
ld (OPS), de
ret
; ---------------------------------------------------------------------------
p07loc_53BE:
ld hl, (unk_982E)
ld (OPBase), hl
ld (OPS), hl
ret
; End of function CleanAll
; =============== S U B R O U T I N E =======================================
MoveToNextSym:
call IsFixedName
jr z, p07loc_53D1
cp 9
jr nz, p07loc_53DD
p07loc_53D1:
dec hl
dec hl
dec hl
dec hl
dec hl
dec hl
ld e, (hl)
inc e
ld d, 0
jr p07loc_53E0
; ---------------------------------------------------------------------------
p07loc_53DD:
ld de, 9
p07loc_53E0:
or a
sbc hl, de
ret
; End of function MoveToNextSym
; ---------------------------------------------------------------------------
ConvLrToLc:
ld a, (de)
or a
jr nz, p07loc_53EE
inc de
ld a, (de)
dec de
or a
jr z, p07loc_544B
p07loc_53EE:
ld (insDelPtr), de
ex de, hl
ld a, 1
call DataSize
dec de
dec de
ex de, hl
call ErrNotEnoughMem
ld hl, (insDelPtr)
inc hl
inc hl
add hl, de
ex de, hl
call InsertMem
ex de, hl
push hl
add hl, hl
ld de, (insDelPtr)
inc de
inc de
or a
sbc hl, de
p07loc_5414:
pop de
push hl
ld hl, 0FFF7h
add hl, de
pop bc
push hl
ld de, (insDelPtr)
or a
sbc hl, de
jr c, p07loc_5446
ld h, b
ld l, c
ld de, 0FFF7h
add hl, de
push hl
ex de, hl
ld hl, page0_FF6
call mov9B2
pop hl
ld de, 0FFF7h
add hl, de
pop de
push de
push hl
ex de, hl
call mov9B2
pop hl
set 3, (hl)
set 2, (hl)
jr p07loc_5414
; ---------------------------------------------------------------------------
p07loc_5446:
pop hl
ld de, (insDelPtr)
p07loc_544B:
push de
call CpyTo1FPST
rst 10h
add a, 0Ch
ld (hl), a
ld (OP1), a
call CpyO1ToFPST
pop de
ret
; ---------------------------------------------------------------------------
TblScreenDn:
ld b, 6
ld d, 0AFh ; '�'
call CheckSplitFlag
jr z, p07loc_5468
ld b, 1
ld d, 0B1h ; '�'
p07loc_5468:
ld c, 0FAh ; '�'
jr p07loc_547B
; ---------------------------------------------------------------------------
TblScreenUp:
ld b, 6
ld d, 8Bh ; '�'
call CheckSplitFlag
jr z, p07loc_5479
ld b, 1
ld d, 0ABh ; '�'
p07loc_5479:
ld c, 6
p07loc_547B:
ld l, 0
call Bit_VertSplit
jr z, p07loc_548B
ld a, (mcxCurApp)
cp 43h ; 'C'
jr z, p07loc_548B
ld l, 6
p07loc_548B:
ld h, 5
push bc
ld a, d
jr p07loc_54CF
; ---------------------------------------------------------------------------
SCREENUP:
ld a, (ix+1)
sub (ix+0)
dec a
ld b, a
ld c, 8
ld a, (ix+0)
jr nz, ScreenUpDown
call p07sub_54A5
ld e, a
ret
; =============== S U B R O U T I N E =======================================
p07sub_54A5:
add a, a
add a, a
add a, a
add a, 80h ; '�'
ret
; End of function p07sub_54A5
; ---------------------------------------------------------------------------
AppScreenUpDown:
push bc
push af
ld a, (OP1)
sub 20h ; ' '
ld l, a
pop af
ld d, a
set 2, (iy+2Ah)
pop bc
AppScreenUpDown1:
push bc
jr p07loc_54CF
; ---------------------------------------------------------------------------
ScreenUpDown:
push bc
call p07sub_54A5
ld d, a
ld h, 7
ld a, (mcxCurApp)
cp 56h ; 'V'
ld a, d
jr nz, p07loc_54CD
inc h
p07loc_54CD:
ld l, 0
p07loc_54CF:
add a, c
ld e, a
di
p07loc_54D2:
push hl
ld a, 20h ; ' '
add a, l
set 3, (iy+2Ah)
res 4, (iy+2Ah)
p07loc_54DE:
ld c, a
call lcd_busy
out (10h), a
ld a, e
call SetYUp
call lcd_busy
out (10h), a
call SetXUp
call lcd_busy
in a, (11h)
pop hl
push hl
ld b, h
ld hl, curXRow
p07loc_54FB:
call lcd_busy
in a, (11h)
inc hl
ld (hl), a
djnz p07loc_54FB
ld a, d
call SetYUp
call lcd_busy
out (10h), a
call SetXUp
pop hl
push hl
ld b, h
ld hl, curXRow
p07loc_5516:
inc hl
bit 2, (iy+2Ah)
jr z, p07loc_5553
bit 3, (iy+2Ah)
jr z, p07loc_5528
ld a, (OP1M)
jr p07loc_5531
; ---------------------------------------------------------------------------
p07loc_5528:
bit 4, (iy+2Ah)
jr z, p07loc_5553
ld a, (OP1+3)
p07loc_5531:
push bc
ld b, a
and (hl)
ld (hl), a
call SetYUp
call lcd_busy
in a, (11h)
call lcd_busy
in a, (11h)
or b
xor b
or (hl)
ld (hl), a
call SetXUp
ld a, c
call lcd_busy
out (10h), a
ld a, (hl)
pop bc
jr p07loc_5554
; ---------------------------------------------------------------------------
p07loc_5553:
ld a, (hl)
p07loc_5554:
call lcd_busy
out (11h), a
djnz p07loc_5516
res 3, (iy+2Ah)
res 4, (iy+2Ah)
ld a, c
bit 2, (iy+2Ah)
jr z, p07loc_557B
ld hl, 8479h
cp (hl)
jr z, p07loc_5580
inc a
cp (hl)
jr nz, p07loc_5578
set 4, (iy+2Ah)
p07loc_5578:
jp p07loc_54DE
; ---------------------------------------------------------------------------
p07loc_557B:
inc a
cp 2Ch ; ','
jr nz, p07loc_5578
p07loc_5580:
pop hl
pop bc
dec b
jr z, p07loc_558F
push bc
ld a, d
add a, c
ld d, a
ld a, e
add a, c
ld e, a
jp p07loc_54D2
; ---------------------------------------------------------------------------
p07loc_558F:
ei
res 2, (iy+2Ah)
ret
; ---------------------------------------------------------------------------
DeleteTempPrograms:
bit noTempDelete, (iy+hookflags1)
res noTempDelete, (iy+hookflags1)
ret nz
call OP1ToOP4
call ZeroOP1
ld hl, p07loc_55C2
call pushErrorHandleR
p07loc_55AA:
ld a, 16h
ld (OP1), a
xor a
call FindAlphaUp
jr c, p07loc_55BF
call ChkFindSym
jr c, p07loc_55AA
call DelVarArc
jr p07loc_55AA
; ---------------------------------------------------------------------------
p07loc_55BF:
call popErrorHandleR
p07loc_55C2:
call OP4ToOP1
ret
; ---------------------------------------------------------------------------
Page07_2FB5:
ld a, 1
ld (unk_970E), a
sub a
ld (unk_970F), a
ld (unk_9710), a
ld de, listName1
push de
call ZeroOP1
ld a, 5Dh ; ']'
ld (OP1+1), a
p07loc_55DE:
ld hl, p07loc_5627
call pushErrorHandleR
call PushOP1
rst 10h
jr c, p07loc_55F4
call IsBZero
jr z, p07loc_55FD
call UnarchiveVar
jr p07loc_55FA
; ---------------------------------------------------------------------------
p07loc_55F4:
ld hl, 0
call CreateRList
p07loc_55FA:
call CpyTo1FPST
p07loc_55FD:
call popErrorHandleR
ld a, (OP1M)
push af
call ZeroOP1
pop af
ld (OP1), a
pop de
ld hl, OP1
call page0_118B
push de
ld hl, 970Eh
inc (hl)
call popOP1
ld hl, OP1M
inc (hl)
ld a, (hl)
cp 6
jr c, p07loc_55DE
pop hl
ld (hl), 71h ; 'q'
ret
p07loc_5627:
pop hl
ld (hl), 71h ; 'q'
ld a, (unk_970E)
ld de, 5
p07loc_5630:
cp 3
jr nc, p07loc_563A
add hl, de
ld (hl), 71h ; 'q'
inc a
jr p07loc_5630
; ---------------------------------------------------------------------------
p07loc_563A:
jp JErrorNo
; ---------------------------------------------------------------------------
p07loc_563D:
ld a, 1
push af
call CMPPRGNAMLEN
inc a
jr p07loc_564A
; ---------------------------------------------------------------------------
Page07_3E13:
push af
call CMPPRGNAMLEN
p07loc_564A:
ld de, (unk_982E)
ld hl, (progPtr)
pop bc
ld c, a
push bc
inc de
xor a
ld b, a
p07loc_5657:
ld a, (hl)
call Page0Call_2407
and 1Fh
sbc hl, de
jr c, p07loc_56AF
add hl, de
pop bc
push bc
cp 15h
jr nz, p07loc_566D
cp b
jr nz, p07loc_56A7
jr p07loc_567F
; ---------------------------------------------------------------------------
p07loc_566D:
cp 17h
jr nz, p07loc_5676
cp b
jr nz, p07loc_56A7
jr p07loc_567F
; ---------------------------------------------------------------------------
p07loc_5676:
ld a, b
cp 15h
jr z, p07loc_56A7
cp 17h
jr z, p07loc_56A7
p07loc_567F:
ld a, c
ld c, (hl)
inc c
cp (hl)
jr nz, p07loc_56A9
ld b, a
call ISO1NONTEMPLST
jr nz, p07loc_568C
dec b
p07loc_568C:
push de
push hl
ld de, OP1
p07loc_5691:
dec hl
inc de
ld a, (de)
cp (hl)
jr nz, p07loc_56A3
djnz p07loc_5691
dec hl
ld a, (hl)
ld (OP1+9), a
pop hl
pop de
pop bc
jr p07loc_56F8
; ---------------------------------------------------------------------------
p07loc_56A3:
pop hl
pop de
jr p07loc_56A9
; ---------------------------------------------------------------------------
p07loc_56A7:
ld c, (hl)
inc c
p07loc_56A9:
xor a
ld b, a
sbc hl, bc
jr p07loc_5657
; ---------------------------------------------------------------------------
p07loc_56AF:
pop de
ret
; ---------------------------------------------------------------------------
Page07_3E19:
call ISO1NONTEMPLST
jp z, p07loc_563D
ld de, (progPtr)
ld a, (OP1+1)
cp 24h ; '$'
jr nz, p07loc_56CB
ld hl, (unk_982E)
ld de, (OPBase)
jr p07loc_56CE
; ---------------------------------------------------------------------------
p07loc_56CB:
ld hl, symTable
p07loc_56CE:
inc de
xor a
ld b, a
p07loc_56D1:
ld a, (hl)
call Page0Call_2407
and 1Fh
sbc hl, de
ret c
add hl, de
ld a, (OP1+1)
cp (hl)
jr z, p07loc_56E8
p07loc_56E1:
ld c, 3
or a
sbc hl, bc
jr p07loc_56D1
; ---------------------------------------------------------------------------
p07loc_56E8:
push hl
dec hl
ld a, (OP1M)
cp (hl)
jr nz, p07loc_5706
dec hl
ld a, (OP1+3)
cp (hl)
jr nz, p07loc_5706
pop hl
p07loc_56F8:
inc hl
ld b, (hl)
inc hl
ld d, (hl)
inc hl
ld e, (hl)
inc hl
inc hl
inc hl
ld a, (hl)
ld (OP1), a
ret
; ---------------------------------------------------------------------------
p07loc_5706:
pop hl
ld a, (OP1+1)
jr p07loc_56E1
; ---------------------------------------------------------------------------
AsmComp:
call j_ParsePrgmName
call j_COMMAERR
call PushRealO1
call j_INCFETCH
call j_ParsePrgmName
call j_CKENDLIN
jr z, p07loc_572E
ld (nextParseByte), bc
cp 11h
jr nz, p07loc_572B
call j_CKENDLIN
p07loc_572B:
jp nz, ErrSyntax
p07loc_572E:
call PushRealO1
call CpyTo1FPS1
call GetAsmSize
inc de
inc de
ld (OP2M), de
call CpyTo1FPST
call FINDPROGSYM
jr nc, p07loc_5766
ld hl, (OP2M)
call CreateProtProg
call Page0Call_240B
ld (hl), 1
ex de, hl
inc hl
inc hl
ld (hl), 0BBh ; '�'
inc hl
ld (hl), 6Dh ; 'm'
inc hl
ex de, hl
push de
call CpyTo1FPS1
pop de
call SquishPrgm
call FPOPCPLX
ret
; ---------------------------------------------------------------------------
p07loc_5766:
jp Page0Call_24B9
; =============== S U B R O U T I N E =======================================
GetAsmSize:
call ChkFindSymAsm
ld de, 0
p07loc_576F:
; GetAsmSize+1Aj
ld a, b
or c
ret z
dec bc
ld a, (hl)
inc hl
cp 3Fh ; '?'
jr z, p07loc_576F
call p07sub_586D
ld a, (hl)
inc hl
call p07sub_586D
inc de
dec bc
jp p07loc_576F
; End of function GetAsmSize
; =============== S U B R O U T I N E =======================================
SquishPrgm:
push de
call ChkFindSymAsm
pop de
p07loc_578B:
; SquishPrgm+21j
ld a, b
or c
ret z
dec bc
ld a, (hl)
inc hl
cp 3Fh ; '?'
jr z, p07loc_578B
push de
call p07sub_586D
ld d, a
ld a, (hl)
inc hl
call p07sub_586D
ld e, a
call p07sub_5865
pop de
ld (de), a
inc de
dec bc
jp p07loc_578B
; End of function SquishPrgm
; ---------------------------------------------------------------------------
ExecutePrgm:
call Page0Call_240E
ex de, hl
ld c, (hl)
inc hl
ld b, (hl)
inc hl
ld a, (hl)
cp 0BBh ; '�'
jp nz, ErrInvalid
inc hl
ld a, (hl)
cp 6Dh ; 'm'
jr nz, p07loc_581C
inc hl
push hl
push bc
pop de
push de
ld hl, 2000h
or a
sbc hl, de
jp c, ErrInvalid
ex de, hl
call ErrNotEnoughMem
pop hl
push hl
ld de, userMem
call InsertMem
pop hl
ld (asm_prgm_size), hl
pop hl
ld de, userMem
ld bc, (asm_prgm_size)
add hl, bc
ldir
p07loc_57E7:
call NZIf83Plus
jr nz, p07loc_57F6
in a, (20h)
push af
bit 5, (iy+24h)
call SetSpeed_NZForFast
p07loc_57F6:
ld hl, p07loc_5848
call pushErrorHandleR
call p07sub_5845
call popErrorHandleR
call NZIf83Plus
jr nz, p07loc_580C
pop af
and 1
out (20h), a
p07loc_580C:
ld de, (asm_prgm_size)
ld hl, 0
ld (asm_prgm_size), hl
ld hl, userMem
jp DelMem
; ---------------------------------------------------------------------------
p07loc_581C:
rst 18h
call GetAsmSize
ld hl, 2000h
or a
sbc hl, de
jp c, ErrInvalid
ex de, hl
push hl
call ErrNotEnoughMem
pop hl
push hl
ld de, userMem
call InsertMem
pop hl
ld (asm_prgm_size), hl
call PopRealO1
ld de, userMem
call SquishPrgm
jr p07loc_57E7
; =============== S U B R O U T I N E =======================================
; Attributes: thunk
p07sub_5845:
jp userMem
; End of function p07sub_5845
p07loc_5848:
call NZIf83Plus
jr nz, p07loc_5852
pop af
and 1
out (20h), a
p07loc_5852:
ld de, (asm_prgm_size)
ld hl, 0
ld (asm_prgm_size), hl
ld hl, userMem
call DelMem
jp JErrorNo
; =============== S U B R O U T I N E =======================================
p07sub_5865:
push hl
ld a, d
call ShLAcc
add a, e
pop hl
ret
; End of function p07sub_5865
; =============== S U B R O U T I N E =======================================
p07sub_586D:
; GetAsmSize+15p ...
cp 30h ; '0'
jp c, ErrSyntax
cp 3Ah ; ':'
jr nc, p07loc_5879
sub 30h ; '0'
ret
; ---------------------------------------------------------------------------
p07loc_5879:
cp 41h ; 'A'
jp c, ErrSyntax
cp 47h ; 'G'
jp nc, ErrSyntax
sub 37h ; '7'
ret
; End of function p07sub_586D
; =============== S U B R O U T I N E =======================================
ChkFindSymAsm:
call Page0Call_240E
ex de, hl
ld c, (hl)
inc hl
ld b, (hl)
dec bc
dec bc
inc hl
ld a, (hl)
cp 0BBh ; '�'
p07loc_5893:
jp nz, ErrInvalid
inc hl
ld a, (hl)
cp 6Ch ; 'l'
jr nz, p07loc_5893
inc hl
ret
; End of function ChkFindSymAsm
; ---------------------------------------------------------------------------
Page07_2FC7:
push af
push hl
push af
push hl
call Page0Call_2F85
ld hl, 6
add hl, de
push hl
pop bc
pop hl
pop af
inc hl
inc hl
inc hl
call Page0Call_23FC
jr nc, p07loc_58B6
inc a
p07loc_58B6:
ld de, OP1
push bc
call j_FlashToRam
bit 4, (iy+26h)
jr z, p07loc_5939
call OP1ToOP3
call OP2ToOP4
call Page0Call_2F91
call CMPPRGNAMLEN
ld c, a
ld a, (OP1)
cp 2
jr z, p07loc_58E7
call IS_A_LSTorCLST
jr nz, p07loc_58E8
ld a, (OP1M)
cp 6
jr nc, p07loc_58E7
ld c, 3
jr p07loc_58E8
; ---------------------------------------------------------------------------
p07loc_58E7:
inc c
p07loc_58E8:
ld hl, OP2
ld hl, OP3
ld a, (hl)
ld b, 6
p07loc_58F1:
inc hl
djnz p07loc_58F1
ld a, (OP1)
call Page0Call_2495
jr nz, p07loc_58FF
ld a, c
ld (hl), a
inc hl
p07loc_58FF:
ld de, 8479h
ld b, c
p07loc_5903:
ld a, (de)
ld (hl), a
inc hl
inc de
dec b
ld a, b
or a
jr nz, p07loc_5903
push hl
p07loc_590D:
ld a, b
or a
jr z, p07loc_5918
ld a, 0
ld (hl), a
inc hl
dec b
jr p07loc_590D
; ---------------------------------------------------------------------------
p07loc_5918:
pop hl
pop bc
ld bc, OP3
or a
sbc hl, bc
push hl
call OP3ToOP1
call OP4ToOP2
pop bc
ld a, (varType)
call Page0Call_2495
jr z, p07loc_5933
ld bc, 9
p07loc_5933:
ld (unk_83F5), bc
jr p07loc_596A
; ---------------------------------------------------------------------------
p07loc_5939:
call OP1ToOP3
call OP2ToOP4
call CkOP1Real
ld bc, 3
ld hl, 847Eh
call Page0Call_2495
jr nz, p07loc_594F
ld c, (hl)
inc hl
p07loc_594F:
ld de, 8479h
ldir
xor a
ld b, 7
p07loc_5957:
ld (de), a
inc de
djnz p07loc_5957
call ChkFindSym
jr c, p07loc_5963
call DelVarArc
p07loc_5963:
call OP3ToOP1
call OP4ToOP2
pop bc
p07loc_596A:
ld a, (OP1+5)
or a
jr nz, p07loc_5976
ld hl, (newDataPtr)
ld (OP1+3), hl
p07loc_5976:
call page0_19F8
push hl
pop de
pop hl
pop af
ret
; ---------------------------------------------------------------------------
GetAppBasePage:
ld hl, baseAppBrTab
ld d, 0
ld e, a
cp 20h ; ' '
jr c, p07loc_598B
ld hl, baseAppBrTab2
p07loc_598B:
add hl, de
ld a, (hl)
ret
; =============== S U B R O U T I N E =======================================
ZifRclHandler:
ld hl, (mcxMain)
ld de, p07loc_5ADE
or a
sbc hl, de
ret
; End of function ZifRclHandler
; ---------------------------------------------------------------------------
zifrclkapp:
ld b, a
call ZifRclHandler
ret nz
cp 40h ; '@'
jr c, p07loc_59B1
cp 5Ah ; 'Z'
jr nc, p07loc_59B1
ld a, (mcxCurApp)
cp b
ld a, b
ret nz
cp 40h ; '@'
jr z, p07loc_59B1
cp a
ret
; ---------------------------------------------------------------------------
p07loc_59B1:
or 1
ld a, b
ret
; ---------------------------------------------------------------------------
p07loc_59B5:
call p07sub_59BB
jp Page0Call_2F49
; =============== S U B R O U T I N E =======================================
p07sub_59BB:
ld hl, aName
ld a, 10h
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ex de, hl
res curLock, (iy+curFlags)
scf
p07loc_59CD:
pop hl
push af
push de
call p07sub_59FE
call p07sub_5A3B
ld hl, p07loc_5AC5
call AppInit
call p07sub_5ABB
pop hl
call j_PutS
call j_EraseEOL
call CanAlphIns
pop af
call c, SetAlphaLock
res 1, (iy+13h)
res curLock, (iy+curFlags)
p07loc_59F5:
ret
p07loc_59F6:
bit appRunning, (iy+APIFlg)
jp nz, call_cxPrevRedisp
ret
; =============== S U B R O U T I N E =======================================
p07sub_59FE:
ld (promptRet), hl
ld hl, menuActive
inc (hl)
or a
call cxSizeWind
ld hl, menuActive
dec (hl)
ld hl, (curRow)
ld (promptRow), hl
ld a, (unk_89F5)
and 10h
ld (promptIns), a
ld a, (unk_8A02)
and 70h ; 'p'
ld (promptShift), a
ld hl, mcxMain
ld de, mcxPrev
ld bc, 0Eh
ldir
ld a, (appFlagsAddr)
ld (de), a
ld hl, editTop
ld de, promptTop
jp Mov8B
; End of function p07sub_59FE
; =============== S U B R O U T I N E =======================================
p07sub_5A3B:
ld hl, nameBuff
ld (editTop), hl
ld (editCursor), hl
call ZeroOP
ld hl, 84D0h
ld (editTail), hl
ld (editBtm), hl
ret
; End of function p07sub_5A3B
; =============== S U B R O U T I N E =======================================
RclExit:
; RCLREGEQ_CALL:p07loc_5C2Ej ...
bit 1, (iy+13h)
res 1, (iy+11h)
res 5, (iy+1Eh)
res curLock, (iy+curFlags)
push af
push hl
call p07sub_5ABB
call j_EraseEOL
ld hl, 89F5h
ld a, (promptIns)
res 4, (hl)
or (hl)
ld (hl), a
ld a, (unk_8A02)
and 8Fh ; '�'
ld hl, promptShift
or (hl)
ld (unk_8A02), a
ld hl, (promptRow)
ld (curRow), hl
ld hl, promptTop
ld de, editTop
call Mov8B
ld hl, mcxPrev
ld de, mcxMain
ld bc, 0Eh
ldir
ld a, (hl)
ld (appFlagsAddr), a
ld hl, OP1
ld b, 0Bh
p07loc_5AA2:
ld e, (hl)
inc hl
ld d, (hl)
inc hl
push de
djnz p07loc_5AA2
push hl
scf
call cxSizeWind
pop hl
ld b, 0Bh
p07loc_5AB1:
pop de
dec hl
ld (hl), d
dec hl
ld (hl), e
djnz p07loc_5AB1
pop hl
pop af
ret
; End of function RclExit
; =============== S U B R O U T I N E =======================================
p07sub_5ABB:
ld hl, (winBtm)
dec l
ld h, 0
ld (curRow), hl
ret
; End of function p07sub_5ABB
p07loc_5AC5:
.dw p07loc_5ADE
.dw p07loc_5AD2
.dw p07loc_59F5
.dw p07loc_59F6
.dw p07loc_59F5
.dw p07loc_5BC5
.db 0Ah
p07loc_5AD2:
call RclExit
jp cxPPutAway2
; =============== S U B R O U T I N E =======================================
p07sub_5AD8:
pop hl
ld (promptRet), hl
jr p07loc_5B0B
; ---------------------------------------------------------------------------
p07loc_5ADE:
cp 5
jr nz, p07loc_5B06
call j_CursorDown
ld hl, (editCursor)
sub a
ld (hl), a
ld hl, nameBuff
ld de, 8479h
call Mov11B
ld hl, (editCursor)
ld de, nameBuff
sbc hl, de
jr z, p07loc_5B02
ld a, l
ld (OP1), a
scf
p07loc_5B02:
ld hl, (promptRet)
jp (hl)
; ---------------------------------------------------------------------------
p07loc_5B06:
cp 9
jp nz, p07loc_5B47
p07loc_5B0B:
res 1, (iy+13h)
res curLock, (iy+curFlags)
ld hl, (editTop)
ld de, (editCursor)
call CpHLDE
jr nz, p07loc_5B33
ld hl, (editBtm)
ld de, (editTail)
call CpHLDE
jr nz, p07loc_5B36
ld a, 5
ld (kbdKey), a
or a
jr p07loc_5B02
; ---------------------------------------------------------------------------
p07loc_5B33:
call j_DispHead
p07loc_5B36:
call j_EraseEOL
call j_BufClear
ld hl, nameBuff
call ZeroOP
res textInsMode, (iy+textFlags)
ret
; End of function p07sub_5AD8
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR p07sub_5AD8
p07loc_5B47:
bit 5, (iy+1Eh)
jp nz, j_jpromptcursor
bit 1, (iy+11h)
jp nz, j_jpromptcursor
bit 1, (iy+13h)
ret nz
push af
call ConvKeyToTok
pop bc
ld a, d
or a
jr nz, p07loc_5B64
ld a, e
p07loc_5B64:
cp 0EBh ; '�'
jr z, p07loc_5B97
cp 72h ; 'r'
jr z, p07loc_5B86
cp 0AAh ; '�'
jr z, p07loc_5B97
cp 5Fh ; '_'
jr z, p07loc_5B97
cp 41h ; 'A'
ret c
cp 5Ch ; '\'
jr c, p07loc_5B86
cp 64h ; 'd'
ret nc
cp 62h ; 'b'
jr nz, p07loc_5B86
ld a, e
cp 1
ret z
p07loc_5B86:
set 1, (iy+13h)
set curLock, (iy+curFlags)
call CanAlphIns
ld a, b
p07loc_5B92:
call j_InsDisp2
or a
ret
; ---------------------------------------------------------------------------
p07loc_5B97:
ld hl, p07loc_5B9F
ld (mcxMain), hl
jr p07loc_5B86
p07loc_5B9F:
bit recallingPrgmName, (iy+rclFlag2)
jr nz, p07loc_5BBA
bit recallingListName, (iy+rclFlag3)
jr nz, p07loc_5BB4
ld hl, p07loc_5ADE
ld (mcxMain), hl
jp p07loc_5ADE
; ---------------------------------------------------------------------------
p07loc_5BB4:
cp 7Fh ; ''
jr nz, p07loc_5B92
jr p07loc_5BBE
; ---------------------------------------------------------------------------
p07loc_5BBA:
cp 0DAh ; '�'
jr nz, p07loc_5B92
p07loc_5BBE:
ld hl, p07loc_5ADE
ld (mcxMain), hl
ret
p07loc_5BC5:
ret
; ---------------------------------------------------------------------------
ld hl, winTop
ld c, (hl)
ld a, (curRow)
ld (hl), a
call j_scrollDown
ld (hl), c
ld hl, curRow
inc (hl)
ret
; ---------------------------------------------------------------------------
rclkeyRtn:
call RCLREGEQ_CALL
ret
; =============== S U B R O U T I N E =======================================
RCLREGEQ_CALL:
ld hl, aRcl
push af
ld a, 0Eh
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
pop af
ex de, hl
or a
call p07loc_59CD
jr nc, p07loc_5BFA
p07loc_5BF0:
call p07sub_5C8A
jr nc, p07loc_5C31
call p07sub_5AD8
jr c, p07loc_5BF0
p07loc_5BFA:
ld hl, (editSym)
bit prgmEdit, (iy+prgmFlags)
jr z, p07loc_5C05
ld (hl), 5
p07loc_5C05:
ld a, (mcxCurApp)
cp 49h ; 'I'
jr z, p07loc_5C20
cp 54h ; 'T'
jr nz, p07loc_5C16
bit 0, (iy+19h)
jr z, p07loc_5C20
p07loc_5C16:
cp 4Ah ; 'J'
jr nz, p07loc_5C2E
bit 7, (iy+15h)
jr z, p07loc_5C2E
p07loc_5C20:
; RCLREGEQ_CALL+39j
res 7, (iy+15h)
ld a, (hl)
and 0E0h ; '�'
ex de, hl
ld hl, equ_edit_save
or (hl)
ex de, hl
ld (hl), a
p07loc_5C2E:
; RCLREGEQ_CALL+43j
jp RclExit
; ---------------------------------------------------------------------------
p07loc_5C31:
call RclExit
push af
push hl
ld hl, (editSym)
bit prgmEdit, (iy+prgmFlags)
jr z, p07loc_5C41
ld (hl), 5
p07loc_5C41:
ld a, (mcxCurApp)
cp 49h ; 'I'
jr z, p07loc_5C5C
cp 54h ; 'T'
jr nz, p07loc_5C52
bit 0, (iy+19h)
jr z, p07loc_5C5C
p07loc_5C52:
cp 4Ah ; 'J'
jr nz, p07loc_5C6A
bit 7, (iy+15h)
jr z, p07loc_5C6A
p07loc_5C5C:
; RCLREGEQ_CALL+75j
res 7, (iy+15h)
ld a, (hl)
and 0E0h ; '�'
ex de, hl
ld hl, equ_edit_save
or (hl)
ex de, hl
ld (hl), a
p07loc_5C6A:
; RCLREGEQ_CALL+7Fj
pop hl
pop af
p07loc_5C6C:
call j_rclToQueue
set textInsMode, (iy+textFlags)
set enableQueue, (iy+rclFlag)
set 5, (iy+5)
res 6, (iy+5)
ret
; End of function RCLREGEQ_CALL
; ---------------------------------------------------------------------------
initNamePrompt:
call REGEQNAME
rst 10h
ret c
ex de, hl
ld a, 3
jr p07loc_5C6C
; =============== S U B R O U T I N E =======================================
p07sub_5C8A:
ld a, (OP1+1)
cp 5Fh ; '_'
jr nz, p07loc_5CB6
ld a, (OP1M)
or a
jr z, p07loc_5D11
ld a, (mcxCurApp)
cp 46h ; 'F'
jr nz, p07loc_5D11
ld hl, 8479h
rst 20h
call FINDPROGSYM
jr c, p07loc_5CDA
call IsBZero
ld a, (hl)
jr nz, p07loc_5CDA
and 1Fh
cp 6
jr z, p07loc_5D11
ex de, hl
jr p07loc_5D00
; ---------------------------------------------------------------------------
p07loc_5CB6:
cp 0EBh ; '�'
jr nz, p07loc_5CC5
ld a, (OP1M)
or a
jr z, p07loc_5D11
ld a, 5Dh ; ']'
ld (OP1+1), a
p07loc_5CC5:
cp 72h ; 'r'
jr z, p07loc_5CD1
cp 0AAh ; '�'
jr z, p07loc_5CD1
cp 62h ; 'b'
jr nc, p07loc_5CDC
p07loc_5CD1:
rst 10h
jr c, p07loc_5CDA
call IsBZero
ld a, (hl)
jr z, p07loc_5D02
p07loc_5CDA:
scf
ret
; ---------------------------------------------------------------------------
p07loc_5CDC:
ld a, (OP1M)
jr nz, p07loc_5CF3
cp 21h ; '!'
jr z, p07loc_5CD1
ld hl, p07loc_5CDA
call pushErrorHandleR
call j_GETSTATPTR
call popErrorHandleR
xor a
ret
; ---------------------------------------------------------------------------
p07loc_5CF3:
call j_VARSYSADR
cp 1
jr z, p07loc_5D00
ld a, (hl)
cp 0Eh
jr z, p07loc_5CDA
xor a
p07loc_5D00:
or a
ret
; ---------------------------------------------------------------------------
p07loc_5D02:
ex de, hl
ld a, (de)
and 1Fh
cp 5
jr c, p07loc_5D0F
cp 0Bh
ret c
cp 0Eh
p07loc_5D0F:
ccf
ret nc
p07loc_5D11:
scf
ret
; End of function p07sub_5C8A
; ---------------------------------------------------------------------------
NamePrompt2:
call p07sub_5D21
CATALOGCHK:
call p07sub_5A3B
call SetAlphaLock
set promptEdit, (iy+promptFlags)
ret
; =============== S U B R O U T I N E =======================================
p07sub_5D21:
ld hl, aName_0
ld a, 0Fh
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, 1
ld (curRow), a
sub a
ld (curRow+1), a
call j_PutS
call p07sub_5D40
call j_setNumWindow
ret
; End of function p07sub_5D21
; =============== S U B R O U T I N E =======================================
p07sub_5D40:
ld a, 3Dh ; '='
call j_PutC
ret
; End of function p07sub_5D40
p07loc_5D46:
aCatalog07: .asc 'CATALOG',0
; ---------------------------------------------------------------------------
clrTR:
cp 3Eh ; '>'
jr z, p07loc_5D5C
call Page0Call_2EFB
jp z, p07sub_5E53
call j_MenuCatCommon
ret
; ---------------------------------------------------------------------------
p07loc_5D5C:
res 4, (iy+29h)
call Page0Call_2F07
jp z, p07loc_5DE5
ld a, (mcxCurApp)
cp 4Ch ; 'L'
jr z, p07loc_5D76
cp 4Dh ; 'M'
jr z, p07loc_5D76
cp 41h ; 'A'
ld a, b
jr nz, p07loc_5D7A
p07loc_5D76:
ld a, b
jp p07loc_5DE5
; ---------------------------------------------------------------------------
p07loc_5D7A:
push af
call j_ZIfMatrixMenu
jr c, p07loc_5D96
res saIndic, (iy+newIndicFlags)
call j_SaveSavedFlags
call POPCX
pop af
call p07sub_6005
call j_BackUpGraphSettings
call j_notalphnum
jr p07loc_5DB5
; ---------------------------------------------------------------------------
p07loc_5D96:
ld a, (MenuCurrent)
cp 0
jr nz, p07loc_5DB1
call ZifRclHandler
jr z, p07loc_5DA8
call IsExternalApp
call z, cxPPutAway2
p07loc_5DA8:
call j_saveShadow2
call j_BackUpGraphSettings
call j_notalphnum
p07loc_5DB1:
pop af
call p07sub_6005
p07loc_5DB5:
ld a, 7
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5DC8
call j_RunCatalog2Hook
ret z
p07loc_5DC8:
set NEED_BUFCPY, (iy+VERTFLAG2)
set NEED_RETABLE, (iy+VERTFLAG2)
call j_ZIfCatalog
sub a
ld (winTop), a
res saIndic, (iy+newIndicFlags)
call p07sub_5DE7
set curLock, (iy+curFlags)
call SetAlphaLock
p07loc_5DE5:
scf
ret
; =============== S U B R O U T I N E =======================================
p07sub_5DE7:
ld hl, 0
res 5, (iy+16h)
ld (unk_85DF), hl
call p07sub_5E0D
ld a, 1
ld de, 0
ld (winTop), a
ld (curRow), de
set curLock, (iy+curFlags)
p07loc_5E04:
call p07sub_5FA1
call p07sub_6005
jp p07loc_60C0
; End of function p07sub_5DE7
; =============== S U B R O U T I N E =======================================
p07sub_5E0D:
ld (curRow), hl
ld hl, p07loc_5D46
ld a, 33h ; '3'
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
call Mov8B
ld hl, OP3
call j_PutS
call j_EraseEOL
ret
; End of function p07sub_5E0D
; =============== S U B R O U T I N E =======================================
GetCatalogItem:
ld hl, (CatalogCurrent)
ld a, 1
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_5E4B
bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5E4B
ld a, 1
ld (curRow+1), a
call j_RunCatalog2Hook
p07loc_5E4B:
; GetCatalogItem+12j
inc hl
ld a, (hl)
ld b, a
dec hl
or (hl)
ld a, (hl)
ld c, a
ret
; End of function GetCatalogItem
; =============== S U B R O U T I N E =======================================
p07sub_5E53:
ld b, a
ld a, 0
bit 4, (iy+36h)
call nz, Page0Call_3123
ret nz
bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5E6A
ld a, 8
call j_RunCatalog2Hook
ret z
p07loc_5E6A:
ld a, b
cp 6
jr z, p07loc_5E73
cp 5
jr nz, p07loc_5E99
p07loc_5E73:
call GetCatalogItem
ret z
cp 0FFh
jr nz, p07loc_5E80
ld a, b
ld b, 0FFh
jr p07loc_5E90
; ---------------------------------------------------------------------------
p07loc_5E80:
cp 0FEh ; '�'
jr nz, p07loc_5E89
ld a, b
ld b, 0FEh ; '�'
jr p07loc_5E90
; ---------------------------------------------------------------------------
p07loc_5E89:
cp 0FCh ; '�'
jr nz, p07loc_5E90
ld a, b
ld b, 0FCh ; '�'
p07loc_5E90:
ld (keyExtend), a
ld a, b
or a
call j_MenuSwitchContext
ret
; ---------------------------------------------------------------------------
p07loc_5E99:
cp 3
jr nz, p07loc_5EDD
p07loc_5E9D:
call p07sub_6088
jr c, p07loc_5ECE
res 4, (iy+29h)
ld hl, p07loc_639E
ld a, 2
bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5EB4
call j_RunCatalog2Hook
p07loc_5EB4:
ld (CatalogCurrent), hl
call p07sub_5FA4
ld hl, p07loc_63AA
ld a, 3
bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5EC8
call j_RunCatalog2Hook
p07loc_5EC8:
ld (CatalogCurrent), hl
jp p07loc_60B3
; ---------------------------------------------------------------------------
p07loc_5ECE:
call p07sub_6068
call p07sub_60CB
call j_moveUp
call c, p07sub_5F74
jp p07sub_60C3
; ---------------------------------------------------------------------------
p07loc_5EDD:
cp 4
jr nz, p07loc_5EFC
p07loc_5EE1:
call p07sub_604D
jr z, p07loc_5EF6
call p07sub_601E
ret nc
call p07sub_60CB
call j_moveDown
call nc, p07sub_5F74
jp p07sub_60C3
; ---------------------------------------------------------------------------
p07loc_5EF6:
call p07sub_60CB
jp p07loc_5E04
; ---------------------------------------------------------------------------
p07loc_5EFC:
cp 7
jr z, p07loc_5E9D
cp 8
jr z, p07loc_5EE1
cp 27h ; '''
jp z, p07loc_5E04
jr p07loc_5F10
; ---------------------------------------------------------------------------
ld e, a
ld d, 0
add hl, de
ret
; ---------------------------------------------------------------------------
p07loc_5F10:
cp 9
jr nz, p07loc_5F18
call j_MenCatRet
ret
; ---------------------------------------------------------------------------
p07loc_5F18:
cp 0CCh ; '�'
jr nz, p07loc_5F20
ld a, 0B4h ; '�'
jr p07loc_5F28
; ---------------------------------------------------------------------------
p07loc_5F20:
cp 9Ah ; '�'
jr c, p07loc_5F54
cp 0B4h ; '�'
jr nc, p07loc_5F54
p07loc_5F28:
sub 9Ah ; '�'
add a, a
ld hl, p07loc_60F0
ld e, a
ld d, 0
add hl, de
ld a, 4
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_5F4B
bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5F48
call j_RunCatalog2Hook
jr z, p07loc_5F4B
p07loc_5F48:
call ldHLind
p07loc_5F4B:
ld (CatalogCurrent), hl
call p07sub_5FA4
jp p07loc_60C0
; ---------------------------------------------------------------------------
p07loc_5F54:
call j_MenuEdKey
ret
; End of function p07sub_5E53
; ---------------------------------------------------------------------------
jr c, p07loc_5F5E
call j_shrinkWindow2
ret
; ---------------------------------------------------------------------------
p07loc_5F5E:
res appLockMenus, (iy+appFlags)
set appMenus, (iy+appFlags)
ld hl, (curRow)
push hl
call p07loc_5FAA
pop hl
ld (curRow), hl
jp p07sub_60C3
; =============== S U B R O U T I N E =======================================
p07sub_5F74:
sub a
ld (curRow+1), a
ld a, 20h ; ' '
call j_PutC
ld hl, (CatalogCurrent)
ld a, 9
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
ret nz
ld a, 1
bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
ret nz
ld d, (hl)
inc hl
ld e, (hl)
call j_KeyToString
call j_putpsb
call j_EraseEOL
ret
; End of function p07sub_5F74
; =============== S U B R O U T I N E =======================================
p07sub_5FA1:
call p07sub_6005
; End of function p07sub_5FA1
; =============== S U B R O U T I N E =======================================
p07sub_5FA4:
ld hl, 1
ld (curRow), hl
p07loc_5FAA:
ld hl, (CatalogCurrent)
push hl
ld a, (unk_8A19)
push af
p07loc_5FB2:
call p07sub_5F74
ld a, (curRow)
cp 7
jr z, p07loc_5FC7
call j_newline
call p07sub_601E
jr c, p07loc_5FB2
call j_EraseEOW2
p07loc_5FC7:
pop af
pop hl
res 4, (iy+29h)
bit 4, a
jr z, p07loc_5FD5
set 4, (iy+29h)
p07loc_5FD5:
ld (CatalogCurrent), hl
ret
; End of function p07sub_5FA4
; ---------------------------------------------------------------------------
DispCatalogEnd:
ld hl, (CatalogCurrent)
push hl
ld a, (unk_8A19)
push af
ld hl, (curRow)
push hl
p07loc_5FE5:
ld a, (curRow)
cp 1
jr z, p07loc_5FF3
ld a, 3
call p07sub_5E53
jr p07loc_5FE5
; ---------------------------------------------------------------------------
p07loc_5FF3:
ld hl, 0
call p07sub_5E0D
call p07sub_5FA4
pop hl
ld (curRow), hl
call p07sub_60C3
jr p07loc_5FC7
; =============== S U B R O U T I N E =======================================
p07sub_6005:
ld hl, p07loc_6126
ld a, 5
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_601A
bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
p07loc_601A:
ld (CatalogCurrent), hl
ret
; End of function p07sub_6005
; =============== S U B R O U T I N E =======================================
p07sub_601E:
call p07sub_604D
ret nc
bit 3, (iy+36h)
jr z, p07loc_6046
bit 4, (iy+29h)
jr z, p07loc_6046
ld a, 0Ch
call j_RunCatalog1Hook
jr nz, p07loc_6046
res 3, (iy+36h)
call p07sub_6005
set 3, (iy+36h)
res 4, (iy+29h)
jr p07loc_604B
; ---------------------------------------------------------------------------
p07loc_6046:
inc hl
inc hl
ld (CatalogCurrent), hl
p07loc_604B:
scf
ret
; End of function p07sub_601E
; =============== S U B R O U T I N E =======================================
p07sub_604D:
; p07sub_601Ep
ld hl, (CatalogCurrent)
ld de, p07loc_63AA
ld a, 6
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_6065
bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
p07loc_6065:
jp CpHLDE
; End of function p07sub_604D
; =============== S U B R O U T I N E =======================================
p07sub_6068:
; p07sub_6088p ...
ld de, (CatalogCurrent)
ld hl, p07loc_6126
ld a, 0Ah
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_6083
ld a, 5
bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
p07loc_6083:
call CpHLDE
ex de, hl
ret
; End of function p07sub_6068
; =============== S U B R O U T I N E =======================================
p07sub_6088:
call p07sub_6068
ret nc
bit 3, (iy+36h)
jr z, p07loc_60AC
bit 4, (iy+29h)
jr nz, p07loc_60AC
res 3, (iy+36h)
call p07sub_6068
set 3, (iy+36h)
jr c, p07loc_60AC
ld a, 0Bh
call j_RunCatalog1Hook
jr p07loc_60AE
; ---------------------------------------------------------------------------
p07loc_60AC:
dec hl
dec hl
p07loc_60AE:
ld (CatalogCurrent), hl
scf
ret
; End of function p07sub_6088
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR p07sub_5E53
p07loc_60B3:
push hl
ld hl, (winBtm)
dec l
ld h, 0
ld (curRow), hl
pop hl
jr p07sub_60C3
; END OF FUNCTION CHUNK FOR p07sub_5E53
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR p07sub_5DE7
p07loc_60C0:
call j_HomeUp
; END OF FUNCTION CHUNK FOR p07sub_5DE7
; =============== S U B R O U T I N E =======================================
p07sub_60C3:
sub a
ld (curRow+1), a
ld a, 5
jr p07loc_60D1
; End of function p07sub_60C3
; =============== S U B R O U T I N E =======================================
p07sub_60CB:
sub a
ld (curRow+1), a
ld a, 20h ; ' '
p07loc_60D1:
call j_PutMap
scf
ret
; End of function p07sub_60CB
; ---------------------------------------------------------------------------
QUAD:
res indicInUse, (iy+indicFlags)
call CanAlphIns
res saIndic, (iy+newIndicFlags)
xor a
ld (curRow), a
ld a, 0Fh
ld (curRow+1), a
ld a, 20h ; ' '
call j_PutC
ret
p07loc_60F0:
.dw p07loc_6126
.dw p07loc_6140
.dw p07loc_6148
.dw p07loc_6170
.dw p07loc_6194
.dw p07loc_61AC
.dw p07loc_61CA
.dw p07loc_61E2
.dw p07loc_61E8
.dw p07loc_6204
.dw p07loc_6204
.dw p07loc_6204
.dw p07loc_6224
.dw p07loc_6234
.dw p07loc_624A
.dw p07loc_624E
.dw p07loc_628E
.dw p07loc_6292
.dw p07loc_62C2
.dw p07loc_6306
.dw p07loc_632A
.dw p07loc_6330
.dw p07loc_633A
.dw p07loc_633E
.dw p07loc_6342
.dw p07loc_6342
.dw p07loc_6360
p07loc_6126:
.db 0FEh ; �
.db 9
.db 0FEh ; �
.db 10h
.db 0FCh ; �
.db 31h ; 1
.db 0FFh
.db 0EDh ;
.db 0
.db 0C5h ; �
.db 0FCh ; �
.db 9Ah ; �
.db 0FCh ; �
.db 9Ch ; �
.db 0FCh ; �
.db 9Eh ; �
.db 0FCh ; �
.db 9Dh ; �
.db 0FEh ; �
.db 40h ; @
.db 0FFh
.db 72h ; r
.db 0FFh
.db 71h ; q
.db 0FFh
.db 0AEh ; �
p07loc_6140:
.db 0FCh ; �
.db 68h ; h
.db 0FEh ; �
.db 0E2h ; �
.db 0FEh ; �
.db 0E1h ; �
.db 0FFh
.db 65h ; e
p07loc_6148:
.db 0FEh ; �
.db 0DFh ; �
.db 0FCh ; �
.db 8Eh ; �
.db 0FFh
.db 0D4h ; �
.db 0FDh ; �
.db 6Ah ; j
.db 0FFh
.db 0A4h ; �
.db 0FFh
.db 0CCh ;
.db 0FDh ; �
.db 6Bh ; k
.db 0FDh ; �
.db 0E4h ; �
.db 0FFh
.db 49h ; I
.db 0FDh ; �
.db 0C4h ; �
.db 0FCh ; �
.db 2Fh ; /
.db 0FFh
.db 6Fh ; o
.db 0FFh
.db 6Eh ; n
.db 0FFh
.db 6Dh ; m
.db 0
.db 0B9h ; �
.db 0
.db 0BAh ; �
.db 0
.db 0E7h ; �
.db 0
.db 0EAh ;
.db 0FFh
.db 19h
.db 0FCh ; �
.db 46h ; F
p07loc_6170:
.db 0FCh ; �
.db 6Fh ; o
.db 0FEh ; �
.db 18h
.db 0FFh
.db 4Eh ; N
.db 0FFh
.db 0AAh ;
.db 0FFh
.db 5Dh ; ]
.db 0FFh
.db 5Ch ; \
.db 0FEh ; �
.db 3Ah ; :
.db 0FCh ; �
.db 97h ; �
.db 0FCh ; �
.db 96h ; �
.db 0FEh ; �
.db 3Ch ; <
.db 0FDh ; �
.db 0DFh ; �
.db 0FDh ; �
.db 0E0h ; �
.db 0FDh ; �
.db 0E1h ; �
.db 0FEh ; �
.db 28h ; (
.db 0FFh
.db 70h ; p
.db 0FFh
.db 1
.db 0FFh
.db 0
.db 0FDh ; �
.db 0D8h ; �
p07loc_6194:
.db 0FEh ; �
.db 0A6h ; �
.db 0
.db 0C0h ; �
.db 0
.db 98h ; �
.db 0FCh ; �
.db 6Eh ; n
.db 0FDh ; �
.db 0CFh ; �
.db 0FDh ; �
.db 0D3h ; �
.db 0FFh
.db 51h ; Q
.db 0FCh ; �
.db 4Bh ; K
.db 0FCh ; �
.db 4Dh ; M
.db 0FFh
.db 44h ; D
.db 0FFh
.db 0B6h ; �
.db 0FFh
.db 0B5h ; �
p07loc_61AC:
.db 0FEh ; �
.db 0E0h ; �
.db 0FFh
.db 3Dh ; =
.db 0FFh
.db 53h ; S
.db 0FFh
.db 52h ; R
.db 0
.db 0F2h ; �
.db 0
.db 0F1h ; �
.db 0
.db 0C8h ; �
.db 0FFh
.db 5Fh ; _
.db 0FFh
.db 5Eh ; ^
.db 0FDh ; �
.db 0D0h ; �
.db 0FEh ; �
.db 1Fh
.db 0FCh ; �
.db 8Fh ; �
.db 0
.db 0C3h ; �
.db 0FFh
.db 55h ; U
.db 0FFh
.db 56h ; V
p07loc_61CA:
.db 0FCh ; �
.db 0FCh ; �
.db 0FCh ; �
.db 33h ; 3
.db 0FEh ; �
.db 0F3h ; �
.db 0FEh ; �
.db 0F2h ; �
.db 0FFh
.db 64h ; d
.db 0FFh
.db 0ABh ;
.db 0FDh ; �
.db 0E3h ; �
.db 0FDh ; �
.db 0D6h ; �
.db 0FFh
.db 0B4h ; �
.db 0FFh
.db 74h ; t
.db 0FFh
.db 73h ; s
.db 0FFh
.db 0FBh ; �
p07loc_61E2:
.db 0FFh
.db 4Ah ; J
.db 0FFh
.db 54h ; T
.db 0FDh ; �
.db 72h ; r
p07loc_61E8:
.db 0
.db 0EEh ; �
.db 0FEh ; �
.db 3Eh ; >
.db 0FDh ; �
.db 0CDh ;
.db 0FCh ; �
.db 83h ; �
.db 0FFh
.db 5Bh ; [
.db 0FFh
.db 5Ah ; Z
.db 0FDh ; �
.db 0DDh ; �
.db 0FCh ; �
.db 4Fh ; O
.db 0FEh ; �
.db 20h
.db 0FCh ; �
.db 6Ah ; j
.db 0FEh ; �
.db 0DDh ; �
.db 0FEh ; �
.db 1Eh
.db 0FCh ; �
.db 67h ; g
.db 0FDh ; �
.db 0D7h ; �
p07loc_6204:
.db 0
.db 7Fh ;
.db 0FFh
.db 76h ; v
.db 0FFh
.db 75h ; u
.db 0FDh ; �
.db 0D5h ; �
.db 0FCh ; �
.db 32h ; 2
.db 0FCh ; �
.db 4Ah ; J
.db 0FDh ; �
.db 6Ch ; l
.db 0FFh
.db 43h ; C
.db 0FFh
.db 14h
.db 0FFh
.db 0FAh ; �
.db 0FCh ; �
.db 47h ; G
.db 0FCh ; �
.db 45h ; E
.db 0
.db 0BFh ; �
.db 0FFh
.db 45h ; E
.db 0
.db 0C1h ; �
.db 0FFh
.db 0CDh ;
p07loc_6224:
.db 0FCh ; �
.db 44h ; D
.db 0FEh ; �
.db 35h ; 5
.db 0FEh ; �
.db 36h ; 6
.db 0FEh ; �
.db 37h ; 7
.db 0FFh
.db 47h ; G
.db 0FDh ; �
.db 0D9h ; �
.db 0FEh ; �
.db 34h ; 4
.db 0FCh ; �
.db 8Ah ;
p07loc_6234:
.db 0FEh ; �
.db 0E8h ; �
.db 0FEh ; �
.db 23h ; #
.db 0
.db 0C7h ; �
.db 0FCh ; �
.db 6Dh ; m
.db 0FFh
.db 4Fh ; O
.db 0FEh ; �
.db 0DCh ; �
.db 0FCh ; �
.db 8Ch ;
.db 0FCh ; �
.db 8Bh ;
.db 0FEh ; �
.db 13h
.db 0FEh ; �
.db 22h ; "
.db 0FCh ; �
.db 66h ; f
p07loc_624A:
.db 0FEh ; �
.db 11h
.db 0FDh ; �
.db 0E2h ; �
p07loc_624E:
.db 0FFh
.db 57h ; W
.db 0FDh ; �
.db 0D4h ; �
.db 0FFh
.db 1Bh
.db 0FFh
.db 1Ch
.db 0FDh ; �
.db 0F0h ; �
.db 0FFh
.db 61h ; a
.db 0FFh
.db 60h ; `
.db 0FFh
.db 0B3h ; �
.db 0FFh
.db 0B2h ; �
.db 0FEh ; �
.db 0E4h ; �
.db 0FEh ; �
.db 0E3h ; �
.db 0FFh
.db 58h ; X
.db 0FCh ; �
.db 36h ; 6
.db 0FFh
.db 6Bh ; k
.db 0FDh ; �
.db 0DAh ; �
.db 0FCh ; �
.db 69h ; i
.db 0FEh ; �
.db 39h ; 9
.db 0FDh ; �
.db 0DEh ; �
.db 0FFh
.db 0DAh ; �
.db 0FFh
.db 0DBh ; �
.db 0FFh
.db 0D2h ; �
.db 0FFh
.db 0D3h ; �
.db 0FDh ; �
.db 6Eh ; n
.db 0FDh ; �
.db 6Fh ; o
.db 0FDh ; �
.db 70h ; p
.db 0FFh
.db 46h ; F
.db 0FFh
.db 62h ; b
.db 0FFh
.db 3
.db 0FFh
.db 2
.db 0FFh
.db 4
.db 0FEh ; �
.db 2Bh ; +
.db 0FEh ; �
.db 2Ch ; ,
p07loc_628E:
.db 0FFh
.db 48h ; H
.db 0FFh
.db 1Ah
p07loc_6292:
.db 0FFh
.db 4Dh ; M
.db 0FEh ; �
.db 21h ; !
.db 0FCh ; �
.db 91h ; �
.db 0FCh ; �
.db 34h ; 4
.db 0FEh ; �
.db 3Fh ; ?
.db 0FCh ; �
.db 35h ; 5
.db 0FFh
.db 0ADh ;
.db 0FFh
.db 0ACh ;
.db 0FCh ; �
.db 30h ; 0
.db 0FFh
.db 5
.db 0FFh
.db 6
.db 0FCh ; �
.db 37h ; 7
.db 0FFh
.db 6Ch ; l
.db 0FCh ; �
.db 92h ; �
.db 0FDh ; �
.db 0D2h ; �
.db 0FDh ; �
.db 0DBh ; �
.db 0FEh ; �
.db 1Dh
.db 0FEh ; �
.db 2Fh ; /
.db 0FEh ; �
.db 2Eh ; .
.db 0FEh ; �
.db 30h ; 0
.db 0FEh ; �
.db 2Dh ; -
.db 0FCh ; �
.db 93h ; �
.db 0FEh ; �
.db 2Ah ; *
.db 0FEh ; �
.db 29h ; )
p07loc_62C2:
.db 0FFh
.db 0D5h ; �
.db 0FFh
.db 0D8h ; �
.db 0FFh
.db 0D1h ; �
.db 0FFh
.db 0D9h ; �
.db 0FFh
.db 0D0h ; �
.db 0FFh
.db 4Ch ; L
.db 0FFh
.db 50h ; P
.db 0FDh ; �
.db 69h ; i
.db 0FFh
.db 63h ; c
.db 0FEh ; �
.db 33h ; 3
.db 0FFh
.db 59h ; Y
.db 0FFh
.db 69h ; i
.db 0FFh
.db 0CBh ;
.db 0FDh ; �
.db 89h ;
.db 0FFh
.db 0F6h ; �
.db 0FFh
.db 0F7h ; �
.db 0FFh
.db 0F4h ; �
.db 0FFh
.db 0F5h ; �
.db 0FFh
.db 6Ah ; j
.db 0
.db 0B7h ; �
.db 0
.db 0B8h ; �
.db 0
.db 0E6h ; �
.db 0
.db 0E9h ;
.db 0FFh
.db 0A5h ; �
.db 0
.db 0C9h ;
.db 0FFh
.db 31h ; 1
.db 0FFh
.db 32h ; 2
.db 0FCh ; �
.db 48h ; H
.db 0FDh ; �
.db 0DCh ; �
.db 0FFh
.db 7
.db 0FFh
.db 8
.db 0FCh ; �
.db 4Ch ; L
.db 0FCh ; �
.db 4Eh ; N
.db 0FEh ; �
.db 38h ; 8
p07loc_6306:
.db 0
.db 0BBh ; �
.db 0
.db 0BCh ; �
.db 0FDh ; �
.db 74h ; t
.db 0
.db 0E8h ; �
.db 0
.db 0EBh ;
.db 0FEh ; �
.db 0DEh ; �
.db 0FDh ; �
.db 73h ; s
.db 0FDh ; �
.db 0CEh ; �
.db 0FFh
.db 0F0h ; �
.db 0FFh
.db 0D7h ; �
.db 0FCh ; �
.db 8Dh ;
.db 0
.db 5Ah ; Z
.db 0FFh
.db 0CFh ; �
.db 0FCh ; �
.db 65h ; e
.db 0FCh ; �
.db 62h ; b
.db 0FCh ; �
.db 64h ; d
.db 0FCh ; �
.db 61h ; a
.db 0FCh ; �
.db 63h ; c
p07loc_632A:
.db 0FCh ; �
.db 9Bh ; �
.db 0FFh
.db 0AFh ; �
.db 0FFh
.db 0B1h ; �
p07loc_6330:
.db 0FFh
.db 41h ; A
.db 0FFh
.db 42h ; B
.db 0FCh ; �
.db 49h ; I
.db 0FDh ; �
.db 71h ; q
.db 0FFh
.db 0B0h ; �
p07loc_633A:
.db 0FFh
.db 0EFh ; �
.db 0FDh ; �
.db 0D1h ; �
p07loc_633E:
.db 0FEh ; �
.db 12h
.db 0FFh
.db 4Bh ; K
p07loc_6342:
.db 0
.db 5Fh ; _
.db 0
.db 60h ; `
.db 0
.db 67h ; g
.db 0FFh
.db 0D6h ; �
.db 0
.db 5Ch ; \
.db 0
.db 5Dh ; ]
.db 0
.db 5Bh ; [
.db 0
.db 65h ; e
.db 0
.db 68h ; h
.db 0
.db 66h ; f
.db 0
.db 5Eh ; ^
.db 0
.db 62h ; b
.db 0
.db 63h ; c
.db 0FFh
.db 0CEh ; �
.db 0
.db 64h ; d
p07loc_6360:
.db 0FEh ; �
.db 24h ; $
.db 0FEh ; �
.db 26h ; &
.db 0FEh ; �
.db 25h ; %
.db 0FEh ; �
.db 3Bh ; ;
.db 0FEh ; �
.db 15h
.db 0FEh ; �
.db 16h
.db 0FEh ; �
.db 17h
.db 0FEh ; �
.db 0Ah
.db 0FEh ; �
.db 0Bh
.db 0FEh ; �
.db 0Eh
.db 0FEh ; �
.db 0Ch
.db 0FEh ; �
.db 0Fh
.db 0FEh ; �
.db 0Dh
.db 0FFh
.db 66h ; f
.db 0FFh
.db 67h ; g
.db 0FFh
.db 68h ; h
.db 0
.db 0B6h ; �
.db 0
.db 0BDh ; �
.db 0
.db 84h ; �
.db 0
.db 8Ch ;
.db 0
.db 0C2h ; �
.db 0
.db 0BEh ; �
.db 0
.db 82h ; �
.db 0
.db 83h ; �
.db 0
.db 80h ; �
.db 0
.db 81h ; �
.db 0
.db 0ECh ;
.db 0
.db 87h ; �
.db 0
.db 85h ; �
.db 0
.db 0EDh ;
.db 0
.db 88h ; �
p07loc_639E:
.db 0
.db 86h ; �
.db 0
.db 8Bh ;
.db 0FEh ; �
.db 27h ; '
.db 0
.db 0CBh ;
.db 0
.db 0C6h ; �
.db 0
.db 0B5h ; �
p07loc_63AA:
.db 0
.db 0CAh ; �
; ---------------------------------------------------------------------------
p07loc_63AC:
call p07sub_643A
InitMemMgmtContext:
set appTextSave, (iy+appFlags)
set curLock, (iy+curFlags)
set inDelete, (iy+ioDelFlag)
set grfSplitOverride, (iy+sGrFlags)
call RESETWINTOP
ld hl, p07loc_6428
call AppInit
ld a, (keyExtend)
cp 0Ah
jr nz, p07loc_63D5
call Page0Call_2E53
jp JForceCmdNoChar
; ---------------------------------------------------------------------------
p07loc_63D5:
ld a, 20h ; ' '
call j_LoadMenuNum
set 5, (iy+16h)
ret
p07loc_63DF:
cp 27h ; '''
jr z, p07loc_63D5
cp 9
jp z, JForceCmdNoChar
cp 4Dh ; 'M'
ret z
cp 1Fh
jr z, p07loc_63F6
cp 5Ah ; 'Z'
jr c, p07loc_63D5
jp JForceCmd
; ---------------------------------------------------------------------------
p07loc_63F6:
ld hl, p07loc_6457
ld (mcxMain), hl
ld hl, p07loc_6545
ld a, (keyExtend)
ld e, a
ld d, 0
add hl, de
ld a, (hl)
ld (varClass), a
ld a, 0FFh
ld (varCurrent), a
call j_ClrScrn
call j_HomeUp
xor a
ld (ioFlag), a
call p07sub_6553
ld a, 2
call Page0Call_2E5F
ret
; ---------------------------------------------------------------------------
call Page0Call_2E53
jp JForceCmdNoChar
p07loc_6428:
.dw p07loc_63DF
.dw p07loc_6456
.dw p07loc_643A
.dw p07loc_6456
.dw p07loc_6435
.dw p07loc_6456
.db 12h
p07loc_6435:
set curLock, (iy+curFlags)
ret
; =============== S U B R O U T I N E =======================================
p07loc_643A:
p07sub_643A:
res curLock, (iy+curFlags)
xor a
ld (MenuCurrent), a
ld (unk_984B), a
bit 3, (iy+25h)
jr z, p07loc_6452
call Page0Call_2E65
res 3, (iy+25h)
p07loc_6452:
res grfSplitOverride, (iy+sGrFlags)
p07loc_6456:
ret
p07loc_6457:
cp 27h ; '''
jp z, p07loc_63AC
ld b, a
ld a, 6
bit 4, (iy+36h)
call nz, Page0Call_3123
ld a, b
cp 3
jp z, Page0Call_2E6B
cp 4
jp z, Page0Call_2E71
cp 9
jp z, JForceCmdNoChar
cp 1Dh
jr nz, p07loc_649D
call Page0Call_2F91
call page0_17BB
jp z, p07loc_6494
cp 14h
jr nz, p07loc_6494
call j_FindApp
call nc, j_DeleteApp
set 3, (iy+25h)
jp p07loc_651D
; ---------------------------------------------------------------------------
p07loc_6494:
call ChkFindSym
call DelVarArc
jp p07loc_6515
; ---------------------------------------------------------------------------
p07loc_649D:
cp 5
jr nz, p07loc_64B5
call Page0Call_2E83
ret z
call Page0Call_2F91
call Arc_Unarc
ret z
jp p07loc_65A1
; ---------------------------------------------------------------------------
p07loc_64AF:
cp 5Ah ; 'Z'
ret c
jp JForceCmd
; ---------------------------------------------------------------------------
p07loc_64B5:
cp 0Ah
jr nz, p07loc_64AF
call Page0Call_2E83
ret z
call Page0Call_2F91
call page0_17BB
jr z, p07loc_653F
cp 14h
jr nz, p07loc_64D7
bit 3, (iy+25h)
jr nz, p07loc_653F
call Chk_Batt_Low
call z, Page0Call_2E89
jr p07loc_653F
; ---------------------------------------------------------------------------
p07loc_64D7:
ld a, (OP1+1)
cp 5Eh ; '^'
jr nz, p07loc_6504
rst 10h
bit 5, (hl)
call nz, SetTblGraphDraw
call DelVar
call Page0Call_2F91
ld hl, 0
call CreateEqu
ld a, (OP4M)
bit 5, a
jr z, p07loc_6502
xor 1
ld (OP4M), a
call OP4ToOP1
rst 10h
res 5, (hl)
p07loc_6502:
jr p07loc_651D
; ---------------------------------------------------------------------------
p07loc_6504:
call page0_17E9
call ChkFindSym
jp c, ErrUndefined
call IsBZero
jr nz, p07loc_653F
call DelVar
p07loc_6515:
ld a, (OP1+1)
cp 5Dh ; ']'
call z, Page0Call_321F
p07loc_651D:
ld hl, (curRow)
push hl
call p07sub_6553
call Page0Call_2E8F
pop hl
ld (curRow), hl
call Page0Call_2E83
jp z, p07loc_6535
call Page0Call_2E95
ret
; ---------------------------------------------------------------------------
p07loc_6535:
xor a
ld (curRow+1), a
call j_EraseEOW2
jp Page0Call_2E9B
; ---------------------------------------------------------------------------
p07loc_653F:
ld a, 1
call j_LoadMenuNum
ret
p07loc_6545:
.db 9
.db 0
.db 0Ch
.db 1
.db 2
.db 3
.db 5
.db 7
.db 8
.db 4
.db 1
.db 14h
.db 15h
.db 17h
; =============== S U B R O U T I N E =======================================
p07sub_6553:
call j_RunIndicOn
ld hl, (curRow)
push hl
ld hl, 0
ld (curRow), hl
ld hl, aRamFree
ld a, 3
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_putsm
ld a, 0Bh
ld (curRow+1), a
call MemChk
call j_DispHL
ld hl, 1
ld (curRow), hl
ld hl, aArcFree
ld a, 4
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_putsm
ld a, 0Ah
ld (curRow+1), a
call j_ArcChk
ld a, 7
call Page0Call_3C75
pop hl
ld (curRow), hl
ret
; End of function p07sub_6553
; ---------------------------------------------------------------------------
p07loc_65A1:
ld b, 20h ; ' '
or a
jr z, p07loc_65A8
ld b, 2Ah ; '*'
p07loc_65A8:
ld a, 1
ld (curRow+1), a
ld a, b
call j_PutC
ld a, (curRow)
push af
call p07sub_6553
pop af
ld (curRow), a
ret
; =============== S U B R O U T I N E =======================================
ArchiveVar:
call Page07_2EA7
di
call p07sub_6602
call Page0Call_2EAD
ld hl, (unk_83F3)
ld de, (unk_83F7)
call DelMem
ret
; End of function ArchiveVar
; ---------------------------------------------------------------------------
Page07_2ECB:
res 2, (iy+25h)
res checkBatteryLevelFirst, (iy+arcFlag)
call p07sub_662E
jp c, Page0Call_2559
jr p07loc_6624
; ---------------------------------------------------------------------------
Page07_2ED1:
res 2, (iy+25h)
res checkBatteryLevelFirst, (iy+arcFlag)
ld (unk_83F3), de
ld (unk_83F1), hl
call page0_1B6B
ld (unk_83F5), bc
call p07sub_662E
ld d, 0
call c, p07loc_667C
jr p07loc_6624
; =============== S U B R O U T I N E =======================================
p07sub_6602:
ld (unk_83F3), de
ld (unk_83F1), hl
call page0_1B6B
ld (unk_83F5), bc
ld hl, (unk_83F1)
ld a, (hl)
ld hl, (unk_83F3)
call DataSize
ld (unk_83F7), de
call p07sub_662E
call c, Page07_2ED7
p07loc_6624:
ld (arcInfo), a
ld (unk_83EF), hl
ld hl, (unk_83F1)
ret
; End of function p07sub_6602
; =============== S U B R O U T I N E =======================================
p07sub_662E:
push af
ld hl, (unk_83F1)
ld a, (hl)
bit 6, a
call nz, SetTblGraphDraw
and 1Fh
ld (hl), a
pop af
ld hl, (unk_83F7)
or a
ld bc, (unk_83F5)
adc hl, bc
jp c, ErrInvalid
ld (unk_83F9), hl
ld bc, 3
or a
adc hl, bc
jp c, ErrInvalid
push hl
call j_ArcChk
pop bc
ld hl, (unk_839F)
ld a, h
or l
jr nz, p07loc_6676
ld hl, (unk_83A1)
ld a, h
ld h, l
ld l, a
ld de, (unk_83F9)
or a
sbc hl, de
jr nc, p07loc_6676
call Page0Call_2EB3
jp Page0Call_2559
; ---------------------------------------------------------------------------
p07loc_6676:
call Page0Call_2EB3
ret
; End of function p07sub_662E
; =============== S U B R O U T I N E =======================================
Page07_2ED7:
ld d, 1
p07loc_667C:
push bc
push de
call p07sub_669E
bit checkBatteryLevelFirst, (iy+arcFlag)
jr z, p07loc_668D
call Chk_Batt_Low
call z, Page0Call_2E89
p07loc_668D:
ld a, 0
pop bc
call Page0Call_2EB9
call p07sub_66AA
pop bc
call Page0Call_2EB3
jp c, Page0Call_2559
ret
; End of function Page07_2ED7
; =============== S U B R O U T I N E =======================================
p07sub_669E:
ld hl, 83F1h
ld de, savedArcInfo
ld bc, 0Ch
ldir
ret
; End of function p07sub_669E
; =============== S U B R O U T I N E =======================================
p07sub_66AA:
ld hl, savedArcInfo
ld de, 83F1h
ld bc, 0Ch
ldir
ret
; End of function p07sub_66AA
; =============== S U B R O U T I N E =======================================
UnarchiveVar:
; Arc_Unarc+22p
ld (unk_83F1), hl
ld (unk_83EF), de
ld (arcInfo), a
call page0_1B6B
ld (unk_83F5), bc
ld a, (arcInfo)
ld hl, (unk_83EF)
call Page0Call_3267
ld (unk_83F7), bc
ld de, (unk_83F7)
ld hl, (unk_83F1)
ld a, (hl)
call Page0Call_20F8
ld (unk_83F9), de
ld (unk_83F7), de
ex de, hl
call EnoughMem
jp c, ErrMemory
ld bc, (unk_83F9)
or 1
call page0_1A99
ld (unk_83F3), de
call Page0Call_2EBF
ret
; End of function UnarchiveVar
; ---------------------------------------------------------------------------
Page07_2EDD:
dec hl
dec hl
dec hl
ld a, (unk_83EF)
ld (hl), a
dec hl
ld a, (unk_83EF+1)
ld (hl), a
dec hl
ld a, (arcInfo)
ld (hl), a
ret
; =============== S U B R O U T I N E =======================================
Arc_Unarc:
set checkBatteryLevelFirst, (iy+arcFlag)
Arc_Unarc2:
call Page07_2EE9
jp z, Page0Call_24B5
call OP1ToOP3
call ChkFindSym
jp c, ErrUndefined
di
ld (chkDelPtr3), hl
ld a, b
or a
jr z, p07loc_673B
ld a, (hl)
cp 17h
jp z, Page0Call_24B5
ld a, b
call UnarchiveVar
or 1
ld a, 0
ret
; ---------------------------------------------------------------------------
p07loc_673B:
call ArchiveVar
call OP3ToOP1
ld a, (OP1+1)
cp 5Dh ; ']'
jr nz, p07loc_674E
call Page0Call_321F
call Page0Call_2EC5
p07loc_674E:
ld a, (arcInfo)
or a
ei
ret
; End of function Arc_Unarc
; =============== S U B R O U T I N E =======================================
Page07_2EE9:
call CkOP1Real
jr nz, p07loc_6771
p07loc_6759:
ld a, (OP1+1)
cp 58h ; 'X'
ret z
cp 59h ; 'Y'
ret z
cp 54h ; 'T'
ret z
cp 5Bh ; '['
ret z
cp 52h ; 'R'
ret z
cp 72h ; 'r'
ret z
cp 0FCh ; '�'
ret
; ---------------------------------------------------------------------------
p07loc_6771:
cp 0Ch
jr z, p07loc_6759
cp 1
jr nz, p07loc_6783
p07loc_6779:
call Page07_2EF5
ret z
ld a, (OP1M)
cp 40h ; '@'
ret
; ---------------------------------------------------------------------------
p07loc_6783:
cp 14h
ret z
cp 9
ret z
cp 18h
jr nc, p07loc_67A0
cp 0Dh
jr z, p07loc_6779
cp 17h
ret z
cp 0Eh
ret z
cp 0Bh
ret z
cp 0Ah
ret z
cp 3
ret
; ---------------------------------------------------------------------------
p07loc_67A0:
xor a
ret
; End of function Page07_2EE9
; ---------------------------------------------------------------------------
Page07_2EEF:
ld hl, symTable
p07loc_67A5:
ld bc, (unk_982E)
or a
sbc hl, bc
ret c
ret z
add hl, bc
ld b, 0
ld a, (hl)
and 1Fh
push hl
call HLMinus5
ld c, 9
ld e, (hl)
dec hl
call page0_17B3
jr z, p07loc_67C8
dec hl
ld a, (hl)
inc hl
cp 5Dh ; ']'
jr nz, p07loc_67CC
p07loc_67C8:
ld a, (hl)
add a, 7
ld c, a
p07loc_67CC:
pop hl
ld a, e
or a
jr z, p07loc_67D8
push hl
call page0_1F06
pop hl
jr p07loc_67A5
; ---------------------------------------------------------------------------
p07loc_67D8:
sbc hl, bc
jr p07loc_67A5
; =============== S U B R O U T I N E =======================================
Page07_2EF5:
push hl
push de
push bc
ld hl, OP1
ld de, p07loc_67F3-1
ld b, 7
p07loc_67E7:
inc hl
inc de
ld a, (de)
cp (hl)
jr nz, p07loc_67EF
djnz p07loc_67E7
p07loc_67EF:
pop bc
pop de
pop hl
ret
; End of function Page07_2EF5
p07loc_67F3:
.db 5Dh ; ]
aResid: .asc 'RESID',0
; =============== S U B R O U T I N E =======================================
GRAPHQUAD:
bit 1, (iy+7)
jp nz, Page0Call_2501
rst 18h
call CpyTo2FPS2
ld a, (OP2)
and 0Fh
jp nz, ErrDataType
call CpyTo1FPS1
call EOP1NotReal
call OP1ToOP4
call AbsO1O2Cp
push af
call OP4ToOP1
call CpyTo2FPS2
pop af
ld a, (OP2+1)
jr c, p07loc_6829
ld a, (OP1+1)
p07loc_6829:
push af
call FPSub
call j_SAVEPARSE
call CpyO1ToFPS2
call OP1Set0
ld b, 0Ch
p07loc_6838:
push bc
rst 18h
pop bc
djnz p07loc_6838
ld (ES), de
ld (unk_9311), de
call CPYTO1ES14
call TimesPt5
call CPYO1TOES7
call OP1Set1
call CPYO1TOES9
call ZeroOP1
pop af
ld (OP1+7), a
ld hl, 1
ld (OP1), hl
call CPYO1TOES1
call OP1ToOP6
call CPYTO1ES16
call SAVEDATA
set 1, (iy+7)
ld hl, p07loc_6B03
call pushErrorHandleR
call OP1Set0
rst 18h
rst 18h
rst 18h
call p07sub_6C30
call OP3ToOP1
call CpyO1ToFPS1
call CPYTO1ES2
call p07sub_6C0C
p07loc_688C:
call CPYTO1ES3
call p07sub_6BD0
call CPYO1TOEST
call CPYTO2ES2
call AbsO1O2Cp
jp nc, p07loc_69F5
ld a, (OP6)
or a
jp nz, p07loc_68AF
ld a, (OP6+8)
or a
jp nz, ErrMemory
jp ErrTolTooSmall
; ---------------------------------------------------------------------------
p07loc_68AF:
ld b, a
ld a, (OP6M)
or a
jr nz, p07loc_68F1
ld a, b
ld (OP6M), a
call CPYTO1ES9
call Times2
call CPYO1TOES9
ld a, (OP1M)
cp 35h ; '5'
call z, p07sub_6BCA
call Times2
rst 8
call CPYTO1ES14
call fpdiv
call CPYO1TOES7
ld a, (OP6+4)
or a
jr nz, p07loc_68F1
call CkOP1FP0
jr z, p07loc_68EE
ld hl, 8479h
ld a, (OP6+7)
sub (hl)
jr c, p07loc_68F1
sub 0Ch
p07loc_68EE:
call nc, p07sub_6BCA
p07loc_68F1:
; GRAPHQUAD+E2j ...
call CPYTO1ES2
call CPYTO2ES11
call FPSub
call ClrOP1S
rst 8
call CPYTO1EST
call FPSub
call OP1ToOP3
ld hl, (OP6M)
call j_SetXXXXOP2
call OP2ToOP1
ld hl, (OP6)
call j_SetXXXXOP2
rst 30h
rst 8
call OP3ToOP1
call fpdiv
call OP1ToOP5
call CPYTO1EST
call CPYTO2ES9
call fpdiv
call OP5ToOP2
call Max
call CPYO1TOEST
call CpyTo1FPS2
call InvOP1S
call p07sub_6BE8
call CpyTo1FPS1
call InvOP1S
call OP1ToOP3
call p07sub_6AD4
call OP3ToOP1
call p07sub_6C0C
ld a, (OP6)
dec a
ld (OP6), a
cp 7Fh ; ''
call z, p07sub_6BCA
ld hl, OP6M
dec (hl)
call CpyTo1FPST
call Times2
call CPYO1TOES10
call p07sub_6C30
call CPYTO1ES10
call Plus1
call p07sub_6A1D
call OP3ToOP5
ld a, (OP6+4)
or a
jp nz, p07loc_6997
call OP3ToOP5
call CpyTo2FPS1
call CPYTO1EST
call AbsO1O2Cp
jr c, p07loc_699F
call CPYTO1EST
call OP5ToOP2
call AbsO1O2Cp
jp c, p07loc_69CC
p07loc_6997:
ld de, 1Bh
call DeallocFPS1
jr p07loc_69E0
; ---------------------------------------------------------------------------
p07loc_699F:
call CpyTo1FPS2
call CpyTo2FPS1
call p07sub_6BF0
call Page0Call_2948
call CPYTO1EST
call OP5ToOP2
call AbsO1O2Cp
jr nc, p07loc_69E0
ld hl, 1Bh
call EnoughMem
jr nc, p07loc_69C8
call p07sub_6BCA
ld a, 1
ld (OP6+8), a
jr p07loc_69E0
; ---------------------------------------------------------------------------
p07loc_69C8:
ex de, hl
call AllocFPS1
p07loc_69CC:
call CPYTO1ES4
call OP5ToOP2
call p07sub_6BF0
push de
call CPYTO1ES10
call Plus1
pop de
call MovFrOP1
p07loc_69E0:
; GRAPHQUAD+1BAj ...
ld hl, (OP6)
add hl, hl
ld bc, (OP6+5)
add hl, bc
ld de, 0FFh
xor a
sbc hl, de
call nc, p07sub_6BCA
jp p07loc_688C
; ---------------------------------------------------------------------------
p07loc_69F5:
call popErrorHandleR
call CPYTO1ES16
call RESTOREDATA
ld hl, (ES)
ld (FPS), hl
call CPYTO1ES12
call j_GETPARSE
call CPYTO1ES17
call markTableDirty
call CPYTO1ES3
res 1, (iy+7)
ld de, 0A2h ; '�'
jp DeallocFPS1
; End of function GRAPHQUAD
; =============== S U B R O U T I N E =======================================
p07sub_6A1D:
call CPYO6TOES1
call Times2
call Plus1
call CPYTO2ES7
call FPMult
rst 8
call CPYTO1ES15
rst 30h
call CPYO1TOES5
call p07sub_6ADC
call OP1ToOP4
ld hl, p07loc_6B16
call page0_D19
call CPYO1TOES6
call OP4ToOP1
ld hl, p07loc_6B9D
call page0_D19
call CPYO1TOES4
xor a
p07loc_6A50:
inc a
push af
call CPYTO1ES7
call p07sub_6C40
call CPYO1TOES8
call CPYTO2ES5
rst 30h
call p07sub_6ADC
call CPYTO2ES8
call CPYO1TOES8
call CPYTO1ES5
call FPSub
call p07sub_6ADC
call CPYTO2ES8
rst 30h
call CPYO1TOES8
call p07sub_6C51
call CPYTO2ES6
rst 30h
call CPYO1TOES6
call CPYTO1ES8
pop af
push af
srl a
jr c, p07loc_6A98
ld de, p07loc_6B9D
call p07sub_6C47
call CPYTO2ES4
rst 30h
call CPYO1TOES4
p07loc_6A98:
pop af
cp 7
jr nz, p07loc_6A50
call CPYTO1ES6
call CPYO1TOES8
call CPYTO2ES7
call FPMult
call CPYO1TOES6
call CPYTO1ES4
call FPMult
call CPYTO2ES6
call CPYO2TOES4
call FPSub
call CPYO1TOES6
call CPYTO6ES1
call CPYTO1ES4
call p07sub_6BE8
call CPYTO1ES6
call OP1ToOP3
ld hl, (OP6+5)
inc hl
ld (OP6+5), hl
; End of function p07sub_6A1D
; =============== S U B R O U T I N E =======================================
p07sub_6AD4:
call CPYTO2ES2
rst 30h
call CPYO1TOES2
ret
; End of function p07sub_6AD4
; =============== S U B R O U T I N E =======================================
p07sub_6ADC:
rst 8
call CPYTO1ES16
call FIND_E_UNDEF
ld hl, OP2
call mov9B2
call CPYTO1ES17
ld hl, (pTempCnt)
push hl
call j_PARSEOFF
pop hl
ld (pTempCnt), hl
call page0_1717
ld hl, (unk_9311)
ld (ES), hl
jp EOP1NotReal
; End of function p07sub_6ADC
p07loc_6B03:
res 1, (iy+7)
ld hl, (unk_9311)
ld (ES), hl
call CPYTO1ES16
call RESTOREDATA
jp JErrorNo
p07loc_6B16:
.db 0
.db 7Fh ;
.db 20h
.db 94h ; �
.db 82h ; �
.db 14h
.db 10h
.db 84h ; �
.db 73h ; s
.db 0
.db 7Fh ;
.db 20h
.db 44h ; D
.db 32h ; 2
.db 94h ; �
.db 0
.db 75h ; u
.db 30h ; 0
.db 0
.db 7Fh ;
.db 19h
.db 3
.db 50h ; P
.db 57h ; W
.db 80h ; �
.db 64h ; d
.db 79h ; y
.db 0
.db 7Fh ;
.db 16h
.db 90h ; �
.db 4
.db 72h ; r
.db 66h ; f
.db 39h ; 9
.db 27h ; '
.db 0
.db 7Fh ;
.db 14h
.db 6
.db 53h ; S
.db 25h ; %
.db 97h ; �
.db 15h
.db 53h ; S
.db 0
.db 7Fh ;
.db 10h
.db 47h ; G
.db 90h ; �
.db 1
.db 3
.db 22h ; "
.db 25h ; %
.db 0
.db 7Eh ; ~
.db 63h ; c
.db 9
.db 20h
.db 92h ; �
.db 62h ; b
.db 99h ; �
.db 79h ; y
p07loc_6B55:
.db 0
.db 7Eh ; ~
.db 22h ; "
.db 93h ; �
.db 53h ; S
.db 22h ; "
.db 1
.db 5
.db 29h ; )
.db 0
.db 7Fh ;
.db 20h
.db 77h ; w
.db 84h ; �
.db 95h ; �
.db 50h ; P
.db 7
.db 90h ; �
.db 0
.db 7Fh ;
.db 40h ; @
.db 58h ; X
.db 45h ; E
.db 15h
.db 13h
.db 77h ; w
.db 40h ; @
.db 0
.db 7Fh ;
.db 58h ; X
.db 60h ; `
.db 87h ; �
.db 23h ; #
.db 54h ; T
.db 67h ; g
.db 69h ; i
.db 0
.db 7Fh ;
.db 74h ; t
.db 15h
.db 31h ; 1
.db 18h
.db 55h ; U
.db 99h ; �
.db 39h ; 9
.db 0
.db 7Fh ;
.db 86h ; �
.db 48h ; H
.db 64h ; d
.db 42h ; B
.db 33h ; 3
.db 59h ; Y
.db 77h ; w
.db 0
.db 7Fh ;
.db 94h ; �
.db 91h ; �
.db 7
.db 91h ; �
.db 23h ; #
.db 42h ; B
.db 76h ; v
.db 0
.db 7Fh ;
.db 99h ; �
.db 14h
.db 55h ; U
.db 37h ; 7
.db 11h
.db 20h
.db 81h ; �
p07loc_6B9D:
.db 0
.db 7Fh ;
.db 41h ; A
.db 79h ; y
.db 59h ; Y
.db 18h
.db 36h ; 6
.db 73h ; s
.db 47h ; G
.db 0
.db 7Fh ;
.db 38h ; 8
.db 18h
.db 30h ; 0
.db 5
.db 5
.db 5
.db 12h
.db 0
.db 7Fh ;
.db 27h ; '
.db 97h ; �
.db 5
.db 39h ; 9
.db 14h
.db 89h ;
.db 28h ; (
.db 0
.db 7Fh ;
.db 12h
.db 94h ; �
.db 84h ; �
.db 96h ; �
.db 61h ; a
.db 68h ; h
.db 87h ; �
.db 0
.db 82h ; �
.db 25h ; %
.db 60h ; `
.db 0
.db 0
.db 0
.db 0
.db 0
; =============== S U B R O U T I N E =======================================
p07sub_6BCA:
; GRAPHQUAD:p07loc_68EEp ...
ld hl, 84B3h
set 0, (hl)
ret
; End of function p07sub_6BCA
; =============== S U B R O U T I N E =======================================
p07sub_6BD0:
call ClrOP1S
ld a, 74h ; 't'
ld hl, OP2
call page0_FE3
call FPMult
call OP1ToOP2
call CPYTO1ES13
call Max
ret
; End of function p07sub_6BD0
; =============== S U B R O U T I N E =======================================
p07sub_6BE8:
; p07sub_6A1D+A7p
call CPYTO2ES3
rst 30h
call CPYO1TOES3
ret
; End of function p07sub_6BE8
; =============== S U B R O U T I N E =======================================
p07sub_6BF0:
; GRAPHQUAD+1D8p
ld hl, OP6
inc (hl)
call p07sub_6C14
ld de, (ES)
call MovFrOP1
inc hl
inc hl
call mov9B2
push de
call OP2ToOP1
call p07sub_6C0C
pop de
ret
; End of function p07sub_6BF0
; =============== S U B R O U T I N E =======================================
p07sub_6C0C:
; GRAPHQUAD+151p ...
call CPYTO2ES11
rst 30h
call CPYO1TOES11
ret
; End of function p07sub_6C0C
; =============== S U B R O U T I N E =======================================
p07sub_6C14:
ld hl, (FPS)
ld de, 1Bh
or a
sbc hl, de
ld de, (ES)
sbc hl, de
ret z
ld b, h
ld c, l
add hl, de
dec hl
ld de, (FPS)
dec de
lddr
ret
; End of function p07sub_6C14
; =============== S U B R O U T I N E =======================================
p07sub_6C30:
; GRAPHQUAD+16Dp
call p07sub_6A1D
call OP3ToOP1
call CpyO1ToFPS1
call CPYTO1ES4
call CpyO1ToFPS2
ret
; End of function p07sub_6C30
; =============== S U B R O U T I N E =======================================
p07sub_6C40:
ld de, p07loc_6B55
p07loc_6C43:
pop hl
pop af
push af
push hl
; End of function p07sub_6C40
; =============== S U B R O U T I N E =======================================
p07sub_6C47:
ld l, a
ld h, 0
call HLTimes9
add hl, de
jp page0_D19
; End of function p07sub_6C47
; =============== S U B R O U T I N E =======================================
p07sub_6C51:
ld de, p07loc_6B16
jr p07loc_6C43
; End of function p07sub_6C51
; ---------------------------------------------------------------------------
BC2NOREAL:
rst 18h
call j_RclX
rst 18h
rst 8
call CpyTo1FPS1
rst 18h
call XName
rst 18h
call CpyTo1FPS4
rst 18h
call PushRealO2
call cpop1op2
push af
call OP1Set1
ld a, 7Dh ; '}'
ld (OP1+1), a
call GRAPHQUAD
rst 18h
pop af
jr c, p07loc_6C8D
call CpyTo2FPS3
call CpyTo1FPS1
call CpyO1ToFPS3
call OP2ToOP1
call CpyO1ToFPS1
p07loc_6C8D:
call CpyTo1FPS1
call j_XPIXSET
push af
call CpyTo1FPS3
call j_XPIXSET
push af
p07loc_6C9B:
ld hl, OP2
pop af
push af
call j_Xitof
call CpyO1ToFPS3
call j_StoX
call CpyTo1FPS2
ld hl, p07loc_6CDA
call pushErrorHandleR
call j_PARSEOFF
call popErrorHandleR
call OP1ToOP4
call CpyTo1FPS3
call OP1ToOP3
call OP2Set0
call j_CLine
p07loc_6CC7:
pop af
pop bc
cp b
jr z, p07loc_6CD1
push bc
inc a
push af
jr p07loc_6C9B
; ---------------------------------------------------------------------------
p07loc_6CD1:
call PopRealO1
ld de, 1Bh
jp DeallocFPS1
p07loc_6CDA:
and 7Fh ; ''
cp 8
jp nc, JErrorNo
jr p07loc_6CC7
; ---------------------------------------------------------------------------
InitErrorContext:
set NEED_BUFCPY, (iy+VERTFLAG2)
set NEED_RETABLE, (iy+VERTFLAG2)
res useFastCirc, (iy+plotFlag3)
ld hl, p07loc_6D9B
call AppInit
set monAbandon, (iy+monFlags)
call MemChk
ld de, 100
call CpHLDE
jr c, p07loc_6D27
ld a, (errNo)
rla
jr nc, p07loc_6D27
call p07sub_6E8F
jr nz, p07loc_6D1A
ld hl, (cxPrevErrorEP)
ld de, noErrorEntry
call CpHLDE
jr z, p07loc_6D27
p07loc_6D1A:
ld a, (basic_prog)
and 0Fh
cp 6
jr z, p07loc_6D27
ld a, 3Eh ; '>'
jr p07loc_6D29
p07loc_6D27:
ld a, 3Dh ; '='
p07loc_6D29:
push af
call j_RSTGFLAGS
pop af
call j_LoadMenuNum
ld a, 5
bit 4, (iy+36h)
call nz, Page0Call_3123
ld a, (cxPrevApp)
cp 50h ; 'P'
jr nz, p07loc_6D49
ld de, (cleanTmp)
call FixTempCnt
ret
p07loc_6D49:
res cmdExec, (iy+cmdFlags)
call CleanAll
ld a, (errNo)
cp 31h ; '1'
ret nz
ld hl, (curRow)
push hl
ld a, 7Ah ; 'z'
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr nz, p07loc_6D8F
ld hl, 4
ld (curRow), hl
ld hl, aLargestSingle
call j_PutS
ld hl, 105h
ld (curRow), hl
ld hl, aVariable
call j_PutS
ld hl, (freeArcBlock)
call j_DispHL
ld hl, 106h
ld (curRow), hl
ld hl, aApp_0
call j_PutS
p07loc_6D8F:
call Page0Call_2E41
ld a, b
call p07sub_77D2
pop hl
ld (curRow), hl
ret
p07loc_6D9B:
.dw p07loc_6DA8
.dw p07loc_6F3B
.dw p07loc_6F3B
.dw p07loc_6F3B
.dw p07loc_6F3B
.dw p07loc_6F3B
.db 90h
p07loc_6DA8:
cp 40h ; '@'
jr z, p07loc_6DB0
cp 9
jr nz, p07loc_6DB5
p07loc_6DB0:
ld a, 40h ; '@'
jp JForceCmd
; ---------------------------------------------------------------------------
p07loc_6DB5:
cp 0D6h ; '�'
ret nz
res curLock, (iy+curFlags)
call IsBasicProgZero
jp z, p07loc_6E65
call OP1ToOP3
ld hl, basic_prog
rst 20h
call ChkFindSym
jr c, p07loc_6DD5
call IsBZero
ld a, (hl)
jr z, p07loc_6DD5
scf
p07loc_6DD5:
call OP3ToOP1
jp c, p07loc_6E65
and 1Fh
ld b, a
ld a, (basic_prog+1)
cp 3Fh ; '?'
jr z, p07loc_6E00
cp 41h ; 'A'
ld a, b
jr c, p07loc_6E65
cp 5
jr nz, p07loc_6E00
res monAbandon, (iy+monFlags)
ld hl, 9653h
ld de, progToEdit
call Mov8B
ld a, 46h ; 'F'
jp newContext
; ---------------------------------------------------------------------------
p07loc_6E00:
ld a, b
call equ_or_newequ
jr nz, p07loc_6E65
call POPCX
ld a, (basic_prog+1)
push af
call call_cxPutAway
pop af
ld (basic_prog+1), a
ld sp, (onSP)
call j_resetStacks
set 7, (iy+0Ch)
res cmdExec, (iy+cmdFlags)
ld a, (basic_prog+1)
cp 3Fh ; '?'
jr z, p07loc_6E5A
cp 5Eh ; '^'
jr nz, p07loc_6E5A
ld a, 10h
call IsFuncMode
jr nz, p07loc_6E42
add a, a
call IsParametricMode
jr nz, p07loc_6E42
add a, a
call IsFunctionMode
jr nz, p07loc_6E42
add a, a
p07loc_6E42:
ld b, a
ld a, (unk_9654)
and 0F0h ; '�'
cp b
jr nz, p07loc_6E5A
ld a, 49h ; 'I'
ld (mcxCurApp), a
res monAbandon, (iy+monFlags)
call Page0Call_2FE5
jp Mon
; ---------------------------------------------------------------------------
p07loc_6E5A:
ld a, 40h ; '@'
ld (mcxCurApp), a
call Page0Call_2E47
jp Mon
; ---------------------------------------------------------------------------
p07loc_6E65:
ld b, a
ld a, (basic_prog+1)
cp 3Eh ; '>'
ld a, b
jr nz, p07loc_6E72
set 7, (iy+0Ch)
p07loc_6E72:
res monAbandon, (iy+monFlags)
call POPCX
ld a, (mcxCurApp)
cp 43h ; 'C'
jr nz, p07loc_6E89
ld hl, 7
ld (curRow), hl
call j_EraseEOL
p07loc_6E89:
call cxErrEP
jp zero_basic_prog
; =============== S U B R O U T I N E =======================================
p07sub_6E8F:
call IsBasicProgZero
ret z
call OP1ToOP3
ld hl, basic_prog
rst 20h
ld hl, (nextParseByte)
ld de, (basic_start)
or a
sbc hl, de
p07loc_6EA4:
ld (errOffset), hl
ld a, (OP1+1)
cp 24h ; '$'
jr nz, p07loc_6EDA
rst 10h
ex de, hl
inc hl
inc hl
ld a, (hl)
or a
jr z, p07loc_6ED3
push af
inc hl
push hl
call ZeroOP1
pop ix
call p07sub_7156
inc ix
pop af
ld (OP1), a
ld e, (ix+0)
ld d, (ix+1)
ld hl, (errOffset)
add hl, de
jr p07loc_6EA4
; ---------------------------------------------------------------------------
p07loc_6ED3:
call OP3ToOP1
call zero_basic_prog
ret
; ---------------------------------------------------------------------------
p07loc_6EDA:
push hl
ld de, basic_prog
call MovFrOP1
pop hl
ld (errOffset), hl
call OP3ToOP1
sub a
inc a
ret
; End of function p07sub_6E8F
; ---------------------------------------------------------------------------
dispErrorScreen:
set curLock, (iy+curFlags)
ld hl, (curRow)
push hl
ld hl, 0
ld (curRow), hl
ld hl, aErr_0
ld a, 0Bh
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ld a, (errNo)
and 7Fh ; ''
cp 34h ; '4'
jr c, p07loc_6F16
ld hl, p07loc_70C0
jr p07loc_6F2B
; ---------------------------------------------------------------------------
p07loc_6F16:
dec a
ld e, a
ld d, 0
ld hl, p07loc_6F3C
add hl, de
add hl, de
call ldHLind
ld a, 0Ch
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p07loc_6F2B:
ld de, userMenuSA
call strcopy
ld hl, userMenuSA
call j_PutS
pop hl
ld (curRow), hl
p07loc_6F3B:
ret
p07loc_6F3C:
.dw p07loc_6FA2
.dw p07loc_6FAB
.dw p07loc_6FB7
.dw p07loc_6FC4
.dw p07loc_6FCB
.dw p07loc_6FD5
.dw p07loc_6FDB
.dw p07loc_6FE7
.dw p07loc_6FEE
.dw p07loc_6FF8
.dw p07loc_7001
.dw p07loc_700E
.dw p07loc_701A
.dw p07loc_7024
.dw p07loc_702B
.dw p07loc_7033
.dw p07loc_7040
.dw p07loc_7046
.dw p07loc_7053
.dw p07loc_7058
.dw p07loc_705E
.dw p07loc_7063
.dw p07loc_706A
.dw p07loc_7075
.dw p07loc_7082
.dw p07loc_708D
.dw p07loc_7097
.dw p07loc_70A1
.dw p07loc_70AD
.dw p07loc_70B6
.dw p07loc_70BB
.dw p07loc_70BB
.dw p07loc_70BB
.dw p07loc_70BB
.dw p07loc_70BB
.dw p07loc_70C0
.dw p07loc_70C2
.dw p07loc_70C8
.dw p07loc_70D5
.dw p07loc_70DD
.dw p07loc_70E8
.dw p07loc_70EF
.dw appErr1
.dw appErr2
.dw p07loc_70FB
.dw p07loc_7103
.dw p07loc_710F
.dw p07loc_7118
.dw p07loc_7120
.dw p07loc_712D
.dw p07loc_7136
p07loc_6FA2:
aOverflow: .asc 'OVERFLOW',0
p07loc_6FAB:
aDivideBy0: .asc 'DIVIDE BY 0',0
p07loc_6FB7:
aSingularMat: .asc 'SINGULAR MAT',0
p07loc_6FC4:
aDomain: .asc 'DOMAIN',0
p07loc_6FCB:
aIncrement: .asc 'INCREMENT',0
p07loc_6FD5:
aBreak: .asc 'BREAK',0
p07loc_6FDB:
aNonrealAns: .asc 'NONREAL ANS',0
p07loc_6FE7:
aSyntax: .asc 'SYNTAX',0
p07loc_6FEE:
aDataType: .asc 'DATA TYPE',0
p07loc_6FF8:
aArgument: .asc 'ARGUMENT',0
p07loc_7001:
aDimMismatch: .asc 'DIM MISMATCH',0
p07loc_700E:
aInvalidDim: .asc 'INVALID DIM',0
p07loc_701A:
aUndefined: .asc 'UNDEFINED',0
p07loc_7024:
aMemory_07: .asc 'MEMORY',0
p07loc_702B:
aInvalid: .asc 'INVALID',0
p07loc_7033:
aIllegalNest: .asc 'ILLEGAL NEST',0
p07loc_7040:
aBound07: .asc 'BOUND',0
p07loc_7046:
aWindowRange: .asc 'WINDOW RANGE',0
p07loc_7053:
aZoom_07: .asc 'ZOOM',0
p07loc_7058:
aLabel: .asc 'LABEL',0
p07loc_705E:
aStat: .asc 'STAT',0
p07loc_7063:
aSolver: .asc 'SOLVER',0
p07loc_706A:
aSingularty: .asc 'SINGULARTY',0
p07loc_7075:
aNoSignChng: .asc 'NO SIGN CHNG',0
p07loc_7082:
aIterations: .asc 'ITERATIONS',0
p07loc_708D:
aBadGuess: .asc 'BAD GUESS',0
p07loc_7097:
aStatPlot: .asc 'STAT PLOT',0
p07loc_70A1:
aTolNotMet: .asc 'TOL NOT MET',0
p07loc_70AD:
aReserved: .asc 'RESERVED',0
p07loc_70B6:
aMode: .asc 'MODE',0
p07loc_70BB:
aLink: .asc 'LINK',0
p07loc_70C0:
.asc '?',0
p07loc_70C2:
aScale: .asc 'SCALE',0
p07loc_70C8:
aIdNotFound: .asc 'ID NOT FOUND',0
p07loc_70D5:
aNoMode: .asc 'NO MODE',0
p07loc_70DD:
aValidation: .asc 'VALIDATION',0
p07loc_70E8:
aLength: .asc 'LENGTH',0
p07loc_70EF:
aApplication: .asc 'APPLICATION',0
p07loc_70FB:
aExpired: .asc 'EXPIRED',0
p07loc_7103:
aBadAddress: .asc 'BAD ADDRESS',0
p07loc_710F:
aArchived: .asc 'ARCHIVED',0
p07loc_7118:
aVersion: .asc 'VERSION',0
p07loc_7120:
aArchiveFull: .asc 'ARCHIVE FULL',0
p07loc_712D:
aVariable07: .asc 'VARIABLE',0
p07loc_7136:
aDuplicate: .asc 'DUPLICATE',0
; =============== S U B R O U T I N E =======================================
POPCX:
ld hl, mcxPrev
ld de, mcxMain
ld bc, 0Eh
ldir
ld a, (hl)
ld (iy+0Dh), a
call page0_179D
call z, page0_176F
ret
; End of function POPCX
; =============== S U B R O U T I N E =======================================
p07sub_7156:
ld hl, 8479h
ld b, (ix+0)
p07loc_715C:
inc ix
ld a, (ix+0)
ld (hl), a
inc hl
djnz p07loc_715C
ret
; End of function p07sub_7156
; ---------------------------------------------------------------------------
loadnoeentry:
ld hl, noErrorEntry
ld (mcxErrorEP), hl
ret
; ---------------------------------------------------------------------------
STATSHADE:
ld (unk_9D8E), a
cp 1Eh
jr nz, p07loc_7179
call j_PushRealO1
jr p07loc_7192
; ---------------------------------------------------------------------------
p07loc_7179:
cp 1Dh
jr nz, p07loc_7185
call j_PushRealO1
call ErrD_OP1_LE_0
jr p07loc_7198
; ---------------------------------------------------------------------------
p07loc_7185:
cp 1Fh
jr nz, p07loc_7198
call PosNo0Int
jp nz, ErrDomain
call CpyTo1FPS1
p07loc_7192:
call PosNo0Int
jp nz, ErrDomain
p07loc_7198:
call j_PDspGrph
call Page0Call_32B5
set 3, (iy+3)
ld hl, (pTempCnt)
push hl
call CpyTo2FPS3
call CpyTo1FPS2
call cpop1op2
push af
jr nc, p07loc_71B8
call CpyO1ToFPS3
call CpyO2ToFPS2
p07loc_71B8:
call Page0Call_3309
xor a
ld (curInc), a
ld hl, Xmin
rst 20h
rst 18h
call j_StoX
ld hl, (chkDelPtr1)
ld (inputDat), hl
set 5, (iy+3)
call OP1Set0
rst 18h
rst 18h
ld d, 1
ld e, 1
push de
p07loc_71DB:
ld hl, p07loc_72D4
call pushErrorHandleR
call p07sub_72F0
set numOP1, (iy+ParsFlag2)
ld hl, OP1
res 5, (hl)
call popErrorHandleR
p07loc_71F0:
bit 5, (iy+3)
call nz, CpyO1ToFPST
res 5, (iy+3)
call j_INITNSEQ
call CpyTo3FPS2
call CpyTo4FPST
rst 8
call CpyO1ToFPST
ld hl, (inputDat)
rst 20h
call CpyO1ToFPS2
call j_PLOTPT
call IsOnInterruptSet
jp nz, p07loc_72C2
call Page0Call_3393
call CpyTo2FPST
call CpyTo1FPS1
pop de
dec e
jr z, p07loc_7228
push de
jr p07loc_7264
; ---------------------------------------------------------------------------
p07loc_7228:
ld e, d
push de
call cpop1op2
jr nc, p07loc_7264
call IsOP1Num
jr z, p07loc_7264
ld hl, (inputDat)
ld de, OP3
call mov9B2
ld hl, OP3
call j_XYRND
ld hl, (FPS)
ld de, 0FFC1h
add hl, de
ex de, hl
ld hl, OP3
xor a
call Page0Call_3405
or a
jr nz, p07loc_7264
call OP3ToOP1
ld de, OP4
call CPYFPST
call CpyTo2FPS1
call j_CLine
p07loc_7264:
ld a, (curInc)
inc a
cp 5Fh ; '_'
jr nc, p07loc_7278
ld (curInc), a
ld hl, (inputDat)
call j_Xitof
jp p07loc_71DB
; ---------------------------------------------------------------------------
p07loc_7278:
call j_setPenX
call FPOPREAL
call FPOPCPLX
pop de
pop af
jr nc, p07loc_7291
call CpyTo1FPS2
call CpyTo2FPS3
call CpyO1ToFPS3
call CpyO2ToFPS2
p07loc_7291:
call CpyTo1FPS3
ld hl, p07loc_73DC
call pushErrorHandleR
call p07sub_73B4
call j_setPenY
call CpyTo1FPS2
call p07sub_73A6
call p07sub_7358
call PopRealO1
call p07sub_732C
call p07sub_7380
call popErrorHandleR
pop hl
res numOP1, (iy+ParsFlag2)
res 3, (iy+3)
ld (pTempCnt), hl
ret
; ---------------------------------------------------------------------------
p07loc_72C2:
call FPOPREAL
call FPOPCPLX
call FPOPCPLX
pop de
pop af
res numOP1, (iy+ParsFlag2)
jp j_ENDDRAW
p07loc_72D4:
or 80h ; '�'
cp 87h ; '�'
jr z, p07loc_72E1
cp 86h ; '�'
jp nc, JErrorNo
jr c, p07loc_72E1
p07loc_72E1:
call CpyTo1FPST
ld hl, OP1
set 5, (hl)
res numOP1, (iy+ParsFlag2)
jp p07loc_71F0
; =============== S U B R O U T I N E =======================================
p07sub_72F0:
call j_RclX
call CpyTo2FPS3
ld a, (unk_9D8E)
cp 1Eh
jp nz, p07loc_7304
ld a, 0Ah
p07loc_7300:
call j_BCALL_4B9D
ret
; ---------------------------------------------------------------------------
p07loc_7304:
cp 1Dh
jp nz, p07loc_730E
ld a, 8
jp p07loc_7300
; ---------------------------------------------------------------------------
p07loc_730E:
call PushRealO1
call CpyTo1FPS5
call PushRealO1
call OP2ToOP1
ld a, (unk_9D8E)
cp 1Fh
jp nz, p07loc_7327
ld a, 1Ch
jp p07loc_7300
; ---------------------------------------------------------------------------
p07loc_7327:
ld a, 0Ch
jp p07loc_7300
; End of function p07sub_72F0
; =============== S U B R O U T I N E =======================================
p07sub_732C:
ld a, (unk_9D8E)
cp 1Eh
jp nz, p07loc_733C
call FPOPREAL
ld a, 16h
jp p07loc_7300
; ---------------------------------------------------------------------------
p07loc_733C:
cp 1Dh
jp nz, p07loc_7349
call FPOPREAL
ld a, 18h
jp p07loc_7300
; ---------------------------------------------------------------------------
p07loc_7349:
cp 1Fh
jp nz, p07loc_7353
ld a, 14h
jp p07loc_7300
; ---------------------------------------------------------------------------
p07loc_7353:
ld a, 1Ah
jp p07loc_7300
; End of function p07sub_732C
; =============== S U B R O U T I N E =======================================
p07sub_7358:
ld a, (unk_9D8E)
cp 1Eh
jr z, p07loc_7362
cp 1Dh
ret nz
p07loc_7362:
call Bit_VertSplit
jr z, p07loc_736C
call j_setPenT
jr p07loc_736F
; ---------------------------------------------------------------------------
p07loc_736C:
call Page0Call_32D3
p07loc_736F:
call CpyTo1FPST
ld hl, aDf
ld a, 6Ch ; 'l'
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p07loc_73C0
; End of function p07sub_7358
; =============== S U B R O U T I N E =======================================
p07sub_7380:
ld a, (unk_9D8E)
cp 1Eh
jr z, p07loc_738B
cp 1Dh
jr nz, p07loc_7395
p07loc_738B:
call Bit_VertSplit
jr z, p07loc_7395
call Page0Call_32D3
jr p07loc_7398
; ---------------------------------------------------------------------------
p07loc_7395:
call j_setPenT
p07loc_7398:
ld hl, aArea
ld a, 6Eh ; 'n'
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p07loc_73C0
; End of function p07sub_7380
; =============== S U B R O U T I N E =======================================
p07sub_73A6:
ld hl, aUp
ld a, 6Dh ; 'm'
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p07loc_73C0
; End of function p07sub_73A6
; =============== S U B R O U T I N E =======================================
p07sub_73B4:
ld hl, aLow
ld a, 6Fh ; 'o'
bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p07loc_73C0:
set textWrite, (iy+sGrFlags)
set textEraseBelow, (iy+textFlags)
call Page0Call_3345
call j_VPutS
ld a, 7
call j_DispOP1A
p07loc_73D3:
res textEraseBelow, (iy+textFlags)
res textWrite, (iy+sGrFlags)
ret
; End of function p07sub_73B4
p07loc_73DC:
call p07loc_73D3
jp JErrorNo
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR p07sub_7498
SrchVLstUp:
call CkOP1Real
cp 0Fh
jr c, p07loc_7437
cp 17h
jr z, p07loc_7437
cp 15h
jr z, p07loc_7437
cp 16h
jr z, p07loc_7437
cp 14h
jr z, p07loc_73FF
cp 11h
jr z, p07loc_745F
jr p07loc_7426
; ---------------------------------------------------------------------------
p07loc_73FF:
call j_FindAppUp
ld a, 14h
jr c, p07loc_743F
p07loc_7406:
ld a, d
jr p07loc_740C
; END OF FUNCTION CHUNK FOR p07sub_7498
; ---------------------------------------------------------------------------
p07loc_7409:
call j_FindApp
; START OF FUNCTION CHUNK FOR p07sub_7498
p07loc_740C:
push af
ld a, 14h
ld (OP1), a
pop af
ld hl, 8697h
call NZIf83Plus
jr z, p07loc_741F
and 1Fh
jr p07loc_7432
; ---------------------------------------------------------------------------
p07loc_741F:
ld b, a
call Page0Call_2DB1
scf
ccf
ret
; ---------------------------------------------------------------------------
p07loc_7426:
inc a
p07loc_7427:
ld (OP1), a
ld hl, 8479h
ld (hl), 0FEh ; '�'
p07loc_742F:
ld hl, 8685h
p07loc_7432:
ld e, a
ld d, 0
add hl, de
ret
; ---------------------------------------------------------------------------
p07loc_7437:
push af
p07loc_7438:
xor a
call FindAlphaUp
jr nc, p07loc_746B
pop af
p07loc_743F:
call p07sub_7498
ret c
ld (OP1), a
push hl
ld hl, 8479h
ld (hl), 0FEh ; '�'
pop hl
ret nz
cp 14h
jr z, p07loc_7464
call page0_17B3
jr z, p07loc_7464
ld b, 0FFh
ld (OP1+1), bc
jr SrchVLstUp
; ---------------------------------------------------------------------------
p07loc_745F:
ld a, 0
p07loc_7461:
ld (OP1), a
p07loc_7464:
xor a
ld (OP1+1), a
jp SrchVLstUp
; ---------------------------------------------------------------------------
p07loc_746B:
call p07sub_7472
jr c, p07loc_7438
pop bc
ret
; END OF FUNCTION CHUNK FOR p07sub_7498
; =============== S U B R O U T I N E =======================================
p07sub_7472:
; p07sub_75B8:p07loc_75B1p
ld a, (OP1+1)
cp 62h ; 'b'
jr z, p07loc_748C
call Page0Call_2DB7
jr z, p07loc_748C
ld a, (varClass)
cp 0Ah
jr nz, p07loc_7496
ld a, (OP1M)
cp 6
jr c, p07loc_748F
p07loc_748C:
scf
jr locret_7497
; ---------------------------------------------------------------------------
p07loc_748F:
call CkOP1Real
cp 0Dh
jr z, p07loc_748C
p07loc_7496:
or a
locret_7497:
ret
; End of function p07sub_7472
; =============== S U B R O U T I N E =======================================
p07sub_7498:
call p07sub_7641
ret c
cp 0
jr nz, p07loc_74A3
ld a, 0Ch
ret
; ---------------------------------------------------------------------------
p07loc_74A3:
cp 0Ch
jr nz, p07loc_74AA
ld a, 4
ret
; ---------------------------------------------------------------------------
p07loc_74AA:
cp 4
jr nz, p07loc_74BC
bit inGroup, (iy+groupFlags)
jr z, p07loc_74B6
scf
ret
; ---------------------------------------------------------------------------
p07loc_74B6:
pop af
ld a, 14h
jp p07loc_7461
; ---------------------------------------------------------------------------
p07loc_74BC:
cp 0Bh
jr z, p07loc_74C4
cp 3
jr nz, p07loc_74C8
p07loc_74C4:
xor a
ld a, 15h
ret
; ---------------------------------------------------------------------------
p07loc_74C8:
cp 14h
jr nz, p07loc_74CE
scf
ret
; ---------------------------------------------------------------------------
p07loc_74CE:
cp 15h
jr nz, p07loc_74DB
bit inGroup, (iy+groupFlags)
jr nz, p07loc_74E7
ld a, 17h
ret
; ---------------------------------------------------------------------------
p07loc_74DB:
cp 17h
jr nz, p07loc_74EE
bit inDelete, (iy+ioDelFlag)
ld a, 0
jr nz, p07loc_74EC
p07loc_74E7:
ld hl, 8694h
ld a, 0Fh
p07loc_74EC:
or a
ret
; ---------------------------------------------------------------------------
p07loc_74EE:
cp 0Fh
jr nz, p07loc_74F8
ld hl, 8695h
p07loc_74F5:
inc a
or a
ret
; ---------------------------------------------------------------------------
p07loc_74F8:
cp 6
jr z, p07loc_7500
cp 5
jr nz, p07loc_7505
p07loc_7500:
ld a, 8
ld c, 61h ; 'a'
ret
; ---------------------------------------------------------------------------
p07loc_7505:
ld hl, 8696h
cp 10h
jr z, p07loc_74F5
cp 0Dh
jr z, p07loc_7514
cp 1
jr nz, p07loc_7519
p07loc_7514:
ld a, 2
ld c, 5Ch ; '\'
ret
; ---------------------------------------------------------------------------
p07loc_7519:
cp 2
jr nz, p07loc_7522
ld a, 3
ld c, 5Eh ; '^'
ret
; ---------------------------------------------------------------------------
p07loc_7522:
cp 7
jr nz, p07loc_752B
ld a, 1
ld c, 5Dh ; ']'
ret
; ---------------------------------------------------------------------------
p07loc_752B:
cp 8
jr nz, p07loc_7534
ld a, 7
ld c, 60h ; '`'
ret
; ---------------------------------------------------------------------------
p07loc_7534:
ld a, 8
cp a
ld c, 61h ; 'a'
ret
; End of function p07sub_7498
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR p07sub_75B8
SrchVLstDn:
call CkOP1Real
cp 14h
jr nz, p07loc_754B
call j_FindAppDn
ld a, 14h
jr c, p07loc_7571
jp p07loc_7406
; ---------------------------------------------------------------------------
p07loc_754B:
cp 17h
jr z, p07loc_7568
cp 0Fh
jr c, p07loc_7568
jr nz, p07loc_755D
bit inGroup, (iy+groupFlags)
jr nz, p07loc_759D
jr p07loc_75A4
; ---------------------------------------------------------------------------
p07loc_755D:
cp 15h
jr z, p07loc_7568
or a
jr z, p07loc_7568
dec a
jp p07loc_7427
; ---------------------------------------------------------------------------
p07loc_7568:
push af
p07loc_7569:
xor a
call FindAlphaDn
jp nc, p07loc_75B1
pop af
p07loc_7571:
call p07sub_75B8
ret c
ld (OP1), a
push hl
ld hl, 8479h
ld (hl), 0FEh ; '�'
pop hl
ret nz
cp 0Ch
jr z, p07loc_7588
cp 0
jr nz, p07loc_7592
p07loc_7588:
ld b, 0
ld c, 5Ch ; '\'
ld (OP1+1), bc
jr SrchVLstDn
; ---------------------------------------------------------------------------
p07loc_7592:
cp 5
jr nz, p07loc_75A8
p07loc_7596:
ld a, 0FEh ; '�'
ld (OP1+1), a
jr SrchVLstDn
; ---------------------------------------------------------------------------
p07loc_759D:
ld a, 15h
p07loc_759F:
ld (OP1), a
jr p07loc_7596
; ---------------------------------------------------------------------------
p07loc_75A4:
ld a, 17h
jr p07loc_759F
; ---------------------------------------------------------------------------
p07loc_75A8:
ld b, 0FEh ; '�'
ld (OP1+1), bc
jp SrchVLstDn
; ---------------------------------------------------------------------------
p07loc_75B1:
call p07sub_7472
jr c, p07loc_7569
pop bc
ret
; END OF FUNCTION CHUNK FOR p07sub_75B8
; =============== S U B R O U T I N E =======================================
p07sub_75B8:
call p07sub_7641
ret c
cp 5
scf
ret z
cp 6
scf
ret z
or a
jr nz, p07loc_75D7
bit inDelete, (iy+ioDelFlag)
jr z, p07loc_75D0
pop af
jr p07loc_75A4
; ---------------------------------------------------------------------------
p07loc_75D0:
ld hl, 8696h
ld a, 11h
or a
ret
; ---------------------------------------------------------------------------
p07loc_75D7:
cp 11h
jr nz, p07loc_75E1
ld hl, 8695h
p07loc_75DE:
dec a
or a
ret
; ---------------------------------------------------------------------------
p07loc_75E1:
ld hl, 8694h
cp 10h
jr z, p07loc_75DE
cp 2
jr nz, p07loc_75F1
ld a, 1
ld c, 5Dh ; ']'
ret
; ---------------------------------------------------------------------------
p07loc_75F1:
cp 0Bh
jr z, p07loc_75F9
cp 3
jr nz, p07loc_75FE
p07loc_75F9:
ld a, 2
ld c, 5Ch ; '\'
ret
; ---------------------------------------------------------------------------
p07loc_75FE:
cp 15h
jr nz, p07loc_7608
xor a
ld a, 3
ld c, 5Eh ; '^'
ret
; ---------------------------------------------------------------------------
p07loc_7608:
cp 17h
jr nz, p07loc_7610
pop af
jp p07loc_759D
; ---------------------------------------------------------------------------
p07loc_7610:
cp 14h
jr nz, p07loc_7619
ld a, 4
ld c, 0AAh ; '�'
ret
; ---------------------------------------------------------------------------
p07loc_7619:
cp 0Dh
jr z, p07loc_7621
cp 1
jr nz, p07loc_7626
p07loc_7621:
ld a, 7
ld c, 60h ; '`'
ret
; ---------------------------------------------------------------------------
p07loc_7626:
cp 7
jr nz, p07loc_762F
ld a, 8
ld c, 61h ; 'a'
ret
; ---------------------------------------------------------------------------
p07loc_762F:
cp 0Ch
jr nz, p07loc_7636
ld a, 0
ret
; ---------------------------------------------------------------------------
p07loc_7636:
cp 4
jr nz, p07loc_763D
ld a, 0Ch
ret
; ---------------------------------------------------------------------------
p07loc_763D:
ld a, 5
cp a
ret
; End of function p07sub_75B8
; =============== S U B R O U T I N E =======================================
p07sub_7641:
ld c, a
bit inDelete, (iy+ioDelFlag)
jr nz, p07loc_764F
ld a, (sndRecState)
cp 2
jr z, p07loc_7654
p07loc_764F:
ld a, (varClass)
cp 9
p07loc_7654:
ld a, c
ret z
scf
ret
; End of function p07sub_7641
; ---------------------------------------------------------------------------
DelRes:
res statsValid, (iy+statFlags)
ld a, 0Eh
ld hl, statVars
ld b, 35h ; '5'
ld de, 9
p07loc_7666:
ld (hl), a
add hl, de
djnz p07loc_7666
call REGEQNAME
rst 10h
call nc, DelVar
ld a, 0FFh
ld hl, 8D2Ah
ld (hl), a
ld de, 8D2Bh
ld bc, 63h ; 'c'
ldir
ld (unk_8D8E), a
ret
; ---------------------------------------------------------------------------
Page07_2DE1:
call CkOP1Real
cp 0Fh
jp c, ChkFindSym
cp 15h
jp z, ChkFindSym
cp 16h
jp z, ChkFindSym
cp 17h
jp z, ChkFindSym
cp 14h
jp z, p07loc_7409
jp p07loc_742F
; ---------------------------------------------------------------------------
GetSysInfo:
rst 28h
; ---------------------------------------------------------------------------
.dw 80B7h
; ---------------------------------------------------------------------------
ld (hl), a
inc hl
ld (hl), b
rst 28h
; ---------------------------------------------------------------------------
.dw 80BAh
; ---------------------------------------------------------------------------
inc hl
ld (hl), a
inc hl
xor a
call NZIf83Plus
jr nz, p07loc_76B8
in a, (20h)
or 10h
p07loc_76B8:
ld (hl), a
inc hl
ld (hl), 73h ; 's'
xor a
inc hl
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
ret
; ---------------------------------------------------------------------------
Page07_2DE7:
ld hl, ioFlag
bit 4, (hl)
set 4, (hl)
jr z, Page07_2DED
call j_moveDown
; =============== S U B R O U T I N E =======================================
Page07_2DED:
xor a
ld (curRow+1), a
ld a, 20h ; ' '
call j_PutC
ld a, 20h ; ' '
call j_PutC
ei
ld hl, varType
ld a, (varClass)
cp 14h
jp z, p07loc_77A3
ld a, (hl)
cp 14h
jp z, p07loc_77A3
and 1Fh
cp 15h
jr z, p07loc_7709
cp 17h
jr z, p07loc_7709
sub 0Fh
jp nc, p07loc_7807
ld a, (hl)
and 1Fh
call page0_17BE
jr nz, p07loc_7718
p07loc_7709:
; Page07_2DED+28j
ld b, 8
p07loc_770B:
inc hl
ld a, (hl)
or a
jr z, p07loc_7735
call j_PutC
ei
djnz p07loc_770B
jr p07loc_7735
; ---------------------------------------------------------------------------
p07loc_7718:
inc hl
call IS_A_LSTorCLST
jr nz, p07loc_7724
inc hl
call j_dispListNameY
jr p07loc_7739
; ---------------------------------------------------------------------------
p07loc_7724:
call isPtrHLA2ByteTok
ld d, 0
ld e, (hl)
inc hl
jr nz, p07loc_772F
ld d, e
ld e, (hl)
p07loc_772F:
call j_GETTOKSTRING
p07loc_7732:
call j_PutPS
p07loc_7735:
; Page07_2DED+44j
call j_EraseEOL
ei
p07loc_7739:
call Page0Call_2F91
call ChkFindSym
push af
ld a, 1
ld (curRow+1), a
ld a, b
or a
push af
jr z, p07loc_7755
push hl
ex de, hl
call Page0Call_3267
ld d, b
ld e, c
pop hl
call p07sub_77F6
p07loc_7755:
bit inDelete, (iy+ioDelFlag)
jr z, p07loc_778B
ld a, 0Bh
ld (curRow+1), a
call ISO1NONTLSTorPROG
ld a, 3
jr nz, p07loc_776F
dec hl
dec hl
dec hl
dec hl
dec hl
dec hl
ld a, (hl)
inc a
p07loc_776F:
add a, 6
ld c, a
pop af
pop hl
ld a, h
ld b, 0
push bc
jr z, p07loc_777F
call Page0Call_20F8
jr p07loc_7783
; ---------------------------------------------------------------------------
p07loc_777F:
ex de, hl
call DataSize
p07loc_7783:
ex de, hl
pop bc
add hl, bc
call j_DispHL
ei
ret
; ---------------------------------------------------------------------------
p07loc_778B:
pop af
pop af
; End of function Page07_2DED
; =============== S U B R O U T I N E =======================================
Page07_2DF3:
ld a, 0Bh
ld (curRow+1), a
ld a, (varType)
call p07sub_7827
call Mov9ToOP2
ld hl, OP2
call Page0Call_3C81
ei
ret
; End of function Page07_2DF3
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR Page07_2DED
p07loc_77A3:
; Page07_2DED+1Dj
ld (hl), a
ld hl, curCol
dec (hl)
ld a, 2Ah ; '*'
call j_PutC
ld hl, 8479h
call j_PutS
call j_EraseEOL
ld a, (mcxCurApp)
cp 41h ; 'A'
jr z, p07loc_77F1
ld a, (sndRecState)
cp 19h
jr z, p07loc_77F1
ld a, 0Ah
ld (curRow+1), a
di
call j_FindApp
di
call j_FindAppNumPages
ld a, c
; END OF FUNCTION CHUNK FOR Page07_2DED
; =============== S U B R O U T I N E =======================================
p07sub_77D2:
ld hl, 0
ld (unk_839F), hl
ld (unk_83A1), hl
or a
jr z, p07loc_77EB
ld de, 40h ; '@'
ld b, a
p07loc_77E2:
add hl, de
djnz p07loc_77E2
ld a, h
ld h, l
ld l, a
ld (unk_839F+1), hl
p07loc_77EB:
ld a, 6
call Page0Call_3C75
ret
; End of function p07sub_77D2
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR Page07_2DED
p07loc_77F1:
; Page07_2DED+F0j
call Page07_2DF3
ei
ret
; END OF FUNCTION CHUNK FOR Page07_2DED
; =============== S U B R O U T I N E =======================================
p07sub_77F6:
ld a, 2Ah ; '*'
call j_PutC
ret
; End of function p07sub_77F6
; ---------------------------------------------------------------------------
Page07_2DF9:
ld hl, p07loc_78C2
; =============== S U B R O U T I N E =======================================
p07sub_77FF:
; p07sub_7827+18j
add a, a
ld d, 0
ld e, a
add hl, de
jp ldHLind
; End of function p07sub_77FF
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR Page07_2DED
p07loc_7807:
bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_7815
ld b, a
ld a, 3Ah ; ':'
call j_call_character_hook
jr z, p07loc_781B
p07loc_7815:
ld hl, p07loc_78C8
call p07sub_77FF
p07loc_781B:
ld de, OP2
call Mov10B
ld hl, OP2
jp p07loc_7732
; END OF FUNCTION CHUNK FOR Page07_2DED
; =============== S U B R O U T I N E =======================================
p07sub_7827:
and 1Fh
cp 18h
jr c, p07loc_782F
ld a, 9
p07loc_782F:
bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_783C
ld b, a
ld a, 3Bh ; ';'
call j_call_character_hook
ret z
p07loc_783C:
ld hl, p07loc_7841
jr p07sub_77FF
; End of function p07sub_7827
p07loc_7841:
.dw p07loc_7871
.dw p07loc_7876
.dw p07loc_787B
.dw p07loc_7881
.dw p07loc_78A8
.dw p07loc_788D
.dw p07loc_788D
.dw p07loc_7889
.dw p07loc_7885
.dw p07loc_78B7
.dw p07loc_78B7
.dw p07loc_7881
.dw p07loc_7892
.dw p07loc_7876
.dw 0
.dw p07loc_7897
.dw p07loc_789D
.dw p07loc_78A2
.dw p07loc_78B7
.dw p07loc_78B7
.dw p07loc_78AE
.dw p07loc_78B2
.dw p07loc_78B7
.dw p07loc_78BC
p07loc_7871:
aReal07: .asc 'REAL',0
p07loc_7876:
aList: .asc 'LIST',0
p07loc_787B:
aMatrx: .asc 'MATRX',0
p07loc_7881:
aEqu: .asc 'EQU',0
p07loc_7885:
aGdb: .asc 'GDB',0
p07loc_7889:
aPic: .asc 'PIC',0
p07loc_788D:
aPrgm07: .asc 'PRGM',0
p07loc_7892:
aCplx: .asc 'CPLX',0
p07loc_7897:
aWindw: .asc 'WINDW',0
p07loc_789D:
aZsto: .asc 'ZSTO',0
p07loc_78A2:
aTable07: .asc 'TABLE',0
p07loc_78A8:
aStrng: .asc 'STRNG',0
p07loc_78AE:
aApp07: .asc 'APP',0
p07loc_78B2:
aAvar: .asc 'AVAR',0
p07loc_78B7:
aUnkn: .asc 'UNKN',0
p07loc_78BC:
aGroup07: .asc 'GROUP',0
p07loc_78C2:
.dw 8F4Dh
.dw 8E7Ch
.dw 92B1h
p07loc_78C8:
.dw p07loc_78CE
.dw p07loc_78D5
.dw p07loc_78DF
p07loc_78CE:
.db 6
aWindow: .asc 'Window'
p07loc_78D5:
.db 9
aRclwindow: .asc 'RclWindow'
p07loc_78DF:
.db 6
aTblset: .asc 'TblSet'
; ---------------------------------------------------------------------------
Page07_3051:
ld (unk_9CB0), a
and 7Fh ; ''
cp 7Fh ; ''
jr z, p07loc_792B
cp 60h ; '`'
jr nc, p07loc_792B
cp 50h ; 'P'
jr c, p07loc_7905
and 0Fh
ld b, a
ld a, 0F0h ; '�'
and (iy+3Dh)
or b
ld (iy+3Dh), a
jr p07loc_7933
; ---------------------------------------------------------------------------
p07loc_7905:
cp 41h ; 'A'
jr nc, p07loc_792B
cp 12h
jr z, p07loc_792B
cp 1Ah
jr z, p07loc_792B
cp 24h ; '$'
jr z, p07loc_792B
cp 2Ch ; ','
jr z, p07loc_792B
call p07sub_793B
push af
ld a, (unk_9CB0)
ld b, a
pop af
or a
jr z, p07loc_7933
ld c, a
ld a, c
ld (kbdKey), a
ret
; ---------------------------------------------------------------------------
p07loc_792B:
ld a, (iy+3Dh)
and 0F0h ; '�'
ld (iy+3Dh), a
p07loc_7933:
xor a
ld (unk_9CB0), a
ld (unk_9CB1), a
ret
; =============== S U B R O U T I N E =======================================
p07sub_793B:
or a
ret z
dec a
ld c, a
ld hl, p07loc_7AEE
ld a, (iy+3Dh)
and 0Fh
cp 8
jr z, p07loc_7952
ld hl, p07loc_7AAE
cp 4
jr nz, p07loc_795E
p07loc_7952:
ld b, 0
add hl, bc
ld a, (hl)
p07loc_7956:
ld (keyExtend), a
ld a, 0FBh ; '�'
jp p07loc_79E2
; ---------------------------------------------------------------------------
p07loc_795E:
cp 3
jr c, p07loc_796C
bit keyDefaultsF, (iy+dbKeyFlags)
jr z, p07loc_796C
ld a, 8Bh ; '�'
jr p07loc_7956
; ---------------------------------------------------------------------------
p07loc_796C:
ld hl, p07loc_7A47
and 3
jr nz, p07loc_7976
ld hl, p07loc_79EE
p07loc_7976:
push hl
ld b, 0
add hl, bc
ld a, (hl)
pop hl
push af
push hl
ld de, 8
sbc hl, de
ld a, c
srl a
srl a
srl a
ld e, a
add hl, de
ld a, c
and 7
inc a
ld b, a
ld a, (hl)
p07loc_7992:
srl a
djnz p07loc_7992
ld a, 32h ; '2'
jr c, p07loc_799B
xor a
p07loc_799B:
ld (unk_9CB1), a
pop hl
ld de, 40h ; '@'
add hl, de
ld a, (hl)
or a
jr z, p07loc_79B0
ld b, a
ld a, c
p07loc_79A9:
inc hl
cp (hl)
jr z, p07loc_79D9
inc hl
djnz p07loc_79A9
p07loc_79B0:
pop af
bit lwrCaseActive, (iy+appLwrCaseFlag)
ret z
ld b, a
ld a, (iy+3Dh)
and 3
ld a, (unk_9CB0)
jr z, p07loc_79C7
and 80h ; '�'
ld a, b
ret z
jr p07loc_79CB
; ---------------------------------------------------------------------------
p07loc_79C7:
and 80h ; '�'
ld a, b
ret nz
p07loc_79CB:
cp 9Ah ; '�'
ret c
cp 0B4h ; '�'
ret nc
add a, 48h ; 'H'
ld (keyExtend), a
ld a, 0FCh ; '�'
ret
; ---------------------------------------------------------------------------
p07loc_79D9:
pop af
ld (keyExtend), a
inc hl
ld a, (hl)
cp 0FBh ; '�'
ret nz
p07loc_79E2:
call p07sub_7B2E
ret
; End of function p07sub_793B
; ---------------------------------------------------------------------------
.db 0DFh ; �
.db 0FFh
.db 0FDh ; �
.db 0FDh ; �
.db 0F7h ; �
.db 0F7h ; �
.db 0DFh ; �
.db 0EFh ; �
p07loc_79EE:
.db 8Fh ; �
.db 6
.db 0Dh
.db 0AAh ;
.db 9Ah ; �
.db 8Bh ;
.db 0B3h ; �
.db 0Ah
.db 90h ; �
.db 91h ; �
.db 9Eh ; �
.db 0B0h ; �
.db 0ACh ;
.db 0B1h ; �
.db 9Ch ; �
.db 7
.db 92h ; �
.db 0
.db 0ABh ;
.db 0ADh ;
.db 9Dh ; �
.db 9Fh ; �
.db 0AFh ; �
.db 8
.db 93h ; �
.db 0
.db 0AEh ; �
.db 0B2h ; �
.db 0A1h ; �
.db 0A0h ; �
.db 9Bh ; �
.db 99h ; �
.db 94h ; �
.db 95h ; �
.db 0A2h ; �
.db 0
.db 0A3h ; �
.db 0A4h ; �
.db 0A7h ; �
.db 2
.db 97h ; �
.db 96h ; �
.db 0A8h ; �
.db 0
.db 7
.db 0A5h ; �
.db 0A6h ; �
.db 1
.db 8Eh ; �
.db 81h ; �
.db 0A9h ;
.db 87h ; �
.db 27h ; '
.db 8Bh ;
.db 8Bh ;
.db 3
.db 21h ; !
.db 0Ah
.db 8
.db 88h ; �
.db 5
.db 83h ; �
.db 8Dh ;
.db 4
.db 8
.db 1
.db 0FBh ; �
.db 2
.db 0FBh ; �
.db 5
.db 0FBh ; �
.db 2Ch ; ,
.db 0FBh ; �
.db 34h ; 4
.db 0FEh ; �
.db 35h ; 5
.db 0FBh ; �
.db 3Ah ; :
.db 0FBh ; �
.db 39h ; 9
.db 0FEh ; �
.db 0DFh ; �
.db 0FFh
.db 0FDh ; �
.db 0FDh ; �
.db 0F7h ; �
.db 0F7h ; �
.db 0DFh ; �
.db 0EFh ; �
p07loc_7A47:
.db 24h ; $
.db 0Bh
.db 0Eh
.db 0AAh ;
.db 9Ah ; �
.db 8Bh ;
.db 0B3h ; �
.db 0Fh
.db 2
.db 3
.db 9Eh ; �
.db 0B0h ; �
.db 0ACh ;
.db 0B1h ; �
.db 9Ch ; �
.db 7
.db 4
.db 0
.db 0ABh ;
.db 0ADh ;
.db 9Dh ; �
.db 9Fh ; �
.db 0AFh ; �
.db 8
.db 0Ch
.db 0
.db 0AEh ; �
.db 0B2h ; �
.db 0A1h ; �
.db 0A0h ; �
.db 9Bh ; �
.db 99h ; �
.db 84h ; �
.db 5
.db 0A2h ; �
.db 0
.db 0A3h ; �
.db 0A4h ; �
.db 0A7h ; �
.db 13h
.db 85h ; �
.db 82h ; �
.db 0A8h ; �
.db 0
.db 0C6h ; �
.db 0A5h ; �
.db 0A6h ; �
.db 14h
.db 86h ; �
.db 0Ah
.db 0A9h ;
.db 0ECh ;
.db 0CBh ;
.db 8Bh ;
.db 0Eh
.db 15h
.db 21h ; !
.db 80h ; �
.db 9
.db 0EDh ;
.db 5
.db 0CAh ;
.db 0Ch
.db 16h
.db 13h
.db 0
.db 0FEh ; �
.db 1
.db 0FBh ; �
.db 2
.db 0FBh ; �
.db 5
.db 0FBh ; �
.db 7
.db 0FBh ; �
.db 8
.db 0FBh ; �
.db 9
.db 0FBh ; �
.db 10h
.db 0FBh ; �
.db 18h
.db 0FBh ; �
.db 21h ; !
.db 0FBh ; �
.db 27h ; '
.db 0FBh ; �
.db 2Fh ; /
.db 0FBh ; �
.db 31h ; 1
.db 0FBh ; �
.db 35h ; 5
.db 0FBh ; �
.db 36h ; 6
.db 0FEh ; �
.db 37h ; 7
.db 0FBh ; �
.db 3Ah ; :
.db 0FBh ; �
.db 3Eh ; >
.db 0FEh ; �
.db 3Fh ; ?
.db 0FBh ; �
p07loc_7AAE:
.db 26h ; &
.db 19h
.db 2Fh ; /
.db 41h ; A
.db 31h ; 1
.db 8Bh ;
.db 4Ah ; J
.db 23h ; #
.db 27h ; '
.db 28h ; (
.db 35h ; 5
.db 47h ; G
.db 43h ; C
.db 48h ; H
.db 33h ; 3
.db 4Bh ; K
.db 29h ; )
.db 0
.db 42h ; B
.db 44h ; D
.db 34h ; 4
.db 36h ; 6
.db 46h ; F
.db 4Ch ; L
.db 2Ah ; *
.db 0
.db 45h ; E
.db 49h ; I
.db 38h ; 8
.db 37h ; 7
.db 32h ; 2
.db 30h ; 0
.db 2Bh ; +
.db 2Ch ; ,
.db 39h ; 9
.db 0
.db 3Ah ; :
.db 3Bh ; ;
.db 3Eh ; >
.db 4Dh ; M
.db 2Eh ; .
.db 2Dh ; -
.db 3Fh ; ?
.db 0
.db 1Ch
.db 3Ch ; <
.db 3Dh ; =
.db 4Eh ; N
.db 25h ; %
.db 18h
.db 40h ; @
.db 1Eh
.db 1Dh
.db 8Bh ;
.db 22h ; "
.db 4Fh ; O
.db 20h
.db 17h
.db 1Bh
.db 1Fh
.db 21h ; !
.db 1Ah
.db 24h ; $
.db 50h ; P
p07loc_7AEE:
.db 60h ; `
.db 53h ; S
.db 69h ; i
.db 7Bh ; {
.db 6Bh ; k
.db 8Bh ;
.db 84h ; �
.db 5Dh ; ]
.db 61h ; a
.db 62h ; b
.db 6Fh ; o
.db 81h ; �
.db 7Dh ; }
.db 82h ; �
.db 6Dh ; m
.db 85h ; �
.db 63h ; c
.db 0
.db 7Ch ; |
.db 0BEh ; �
.db 6Eh ; n
.db 70h ; p
.db 80h ; �
.db 86h ; �
.db 64h ; d
.db 0
.db 7Fh ;
.db 83h ; �
.db 72h ; r
.db 71h ; q
.db 6Ch ; l
.db 6Ah ; j
.db 65h ; e
.db 66h ; f
.db 73h ; s
.db 0
.db 74h ; t
.db 75h ; u
.db 78h ; x
.db 87h ; �
.db 68h ; h
.db 67h ; g
.db 79h ; y
.db 0
.db 56h ; V
.db 76h ; v
.db 77h ; w
.db 88h ; �
.db 5Fh ; _
.db 52h ; R
.db 7Ah ; z
.db 58h ; X
.db 57h ; W
.db 8Bh ;
.db 5Ch ; \
.db 89h ;
.db 5Ah ; Z
.db 51h ; Q
.db 55h ; U
.db 59h ; Y
.db 5Bh ; [
.db 54h ; T
.db 5Eh ; ^
.db 8Ah ; �
; =============== S U B R O U T I N E =======================================
p07sub_7B2E:
ld c, a
ld a, (keyExtend)
bit 1, (iy+3Eh)
jr z, p07loc_7B42
cp 0Dh
jr z, p07loc_7B40
cp 0Eh
jr nz, p07loc_7B42
p07loc_7B40:
ld a, c
ret
; ---------------------------------------------------------------------------
p07loc_7B42:
bit keyDefaultsF, (iy+dbKeyFlags)
jr nz, p07loc_7B40
ld b, 14h
ld hl, p07loc_7B65
p07loc_7B4D:
cp (hl)
inc hl
jr z, p07loc_7B5E
inc hl
inc hl
djnz p07loc_7B4D
cp 0Dh
ld a, c
ret c
xor a
ld (keyExtend), a
ret
; ---------------------------------------------------------------------------
p07loc_7B5E:
ld a, (hl)
ld (keyExtend), a
inc hl
ld a, (hl)
ret
; End of function p07sub_7B2E
p07loc_7B65:
.db 0Dh
.db 0
.db 99h ; �
.db 20h
.db 0
.db 9
.db 0Eh
.db 0
.db 99h ; �
.db 41h ; A
.db 0
.db 40h ; @
.db 18h
.db 0
.db 8Ch ;
.db 17h
.db 0Bh
.db 0FEh ; �
.db 22h ; "
.db 0Fh
.db 0FEh ; �
.db 24h ; $
.db 0Dh
.db 0FEh ; �
.db 26h ; &
.db 0
.db 49h ; I
.db 27h ; '
.db 0
.db 48h ; H
.db 28h ; (
.db 0
.db 2Eh ; .
.db 29h ; )
.db 0
.db 5Ah ; Z
.db 2Ah ; *
.db 0
.db 44h ; D
.db 1Dh
.db 0
.db 3Eh ; >
.db 0Fh
.db 0
.db 0Bh
.db 4Dh ; M
.db 0
.db 0Eh
.db 4Eh ; N
.db 0
.db 0Fh
.db 8Bh ;
.db 0
.db 0
.db 23h ; #
.db 0
.db 0Bh
.db 19h
.db 0
.db 2Ch ; ,
; =============== S U B R O U T I N E =======================================
Page07_2EA7:
push af
ld a, (hl)
and 1Fh
cp 3
jr z, p07loc_7BB3
cp 4
jr z, p07loc_7BB3
cp 0Bh
jr z, p07loc_7BB3
pop af
ret
; ---------------------------------------------------------------------------
p07loc_7BB3:
; Page07_2EA7+Aj ...
push hl
call Page0Call_240A
ld e, (hl)
dec hl
ld d, (hl)
dec hl
ld b, (hl)
ld a, b
or a
jr nz, p07loc_7BC7
inc hl
inc hl
inc hl
call Page0Call_3519
ld (hl), a
p07loc_7BC7:
pop hl
pop af
ret
; End of function Page07_2EA7
; =============== S U B R O U T I N E =======================================
p07sub_7BCA:
ld hl, OP4
ld de, varType
jp mov9B2
; End of function p07sub_7BCA
; ---------------------------------------------------------------------------
Page07_2DFF:
call CkOP1Real
cp 6
jr z, Page07_2E05
res 1, (iy+11h)
call CpyTo1FPST
call page0_17B0
jr nz, p07loc_7BEA
set 1, (iy+11h)
p07loc_7BEA:
res 5, (iy+1Eh)
call ISO1NONTEMPLST
jr nz, p07loc_7BF7
set 5, (iy+1Eh)
p07loc_7BF7:
ld hl, (OP3)
ld (unk_9D8B), hl
jp p07loc_59B5
; ---------------------------------------------------------------------------
Page07_2E05:
ld b, 42h ; 'B'
ld a, (mcxCurApp)
cp 5Ah ; 'Z'
jr z, p07loc_7C0B
Page07_2E0B:
ld b, 33h ; '3'
p07loc_7C0B:
ld a, 2
DisplayVarInfo:
call Page07_2E17
call Page0Call_2F91
call OP1ToOP5
call p07sub_7BCA
ld a, (curRow)
push af
ld a, 7
ld (curRow), a
call Page07_2DED
pop af
ld (curRow), a
call OP5ToOP1
call Page0Call_2DC9
jp OP4ToOP1
; =============== S U B R O U T I N E =======================================
Page07_2E17:
ld (ioErrState), a
ld a, (sndRecState)
cp 15h
jp z, JErrorNo
cp 0Ah
jp z, p07loc_7C61
cp 0Bh
jp z, p07loc_7C61
LoadMenuB:
push bc
res indicOnly, (iy+indicFlags)
res appTextSave, (iy+appFlags)
call j_saveShadow2
pop af
push af
call j_ClrScrn
pop af
call j_LoadMenuNum
set 5, (iy+16h)
ret
; ---------------------------------------------------------------------------
p07loc_7C61:
; Page07_2E17+12j
call Page0Call_2DCF
ret
; End of function Page07_2E17
; ---------------------------------------------------------------------------
Page07_2E23:
push af
call ZeroOP1
ld a, 1
ld hl, ramStart
ld de, 8040h
nop
rst 28h
; ---------------------------------------------------------------------------
.dw 8075h
; ---------------------------------------------------------------------------
inc hl
ld a, 1
nop
nop
rst 28h
; ---------------------------------------------------------------------------
.dw 805Ah
; ---------------------------------------------------------------------------
ld a, 8
cp c
jr nc, p07loc_7C85
ld bc, 8
p07loc_7C85:
ld de, 8479h
ld a, 1
rst 28h
; ---------------------------------------------------------------------------
.dw 8054h
; ---------------------------------------------------------------------------
ld a, 14h
ld (OP1), a
ld (varClass), a
call Page0Call_2DC9
pop af
ret
; ---------------------------------------------------------------------------
Page07_2E29:
call Page07_2E17
ld a, (unk_867F)
cp 13h
ret z
cp 23h ; '#'
ret z
call p07sub_7BCA
ld a, (curRow)
push af
ld a, 7
ld (curRow), a
call Page07_2DED
pop af
ld (curRow), a
call OP4ToOP1
ret
; ---------------------------------------------------------------------------
Page07_2E2F:
ld de, 0
ld hl, symTable
p07loc_7CC3:
ld a, (hl)
and 1Fh
ld c, 9
call IS_A_LSTorCLST
jr z, p07loc_7CD2
call page0_17B3
jr nz, p07loc_7CE6
p07loc_7CD2:
push hl
ld bc, 0FFFAh
add hl, bc
ld a, (hl)
cp 3Ah ; ':'
jr z, p07loc_7CE0
cp 72h ; 'r'
jr nz, p07loc_7CE2
p07loc_7CE0:
ld a, 2
p07loc_7CE2:
add a, 7
ld c, a
pop hl
p07loc_7CE6:
push hl
ld b, 0
push bc
ld bc, 0FFFBh
add hl, bc
ld a, (hl)
pop bc
or a
jr z, p07loc_7CF6
ex de, hl
add hl, bc
ex de, hl
p07loc_7CF6:
pop hl
or a
sbc hl, bc
push de
ld de, (unk_982E)
call CpHLDE
pop de
ret z
jr nc, p07loc_7CC3
ret
; ---------------------------------------------------------------------------
Page07_2E35:
ld bc, 578h
p07loc_7D0A:
push bc
bit silentLinkActive, (iy+silentLinkFlags)
jr nz, p07loc_7D1C
in a, (0)
and 3
cp 3
jr z, p07loc_7D22
pop bc
jr p07loc_7D35
; ---------------------------------------------------------------------------
p07loc_7D1C:
in a, (9)
and 19h
jr nz, p07loc_7D2C
p07loc_7D22:
call page0_AC9
res indicOnly, (iy+indicFlags)
call GetCSC
p07loc_7D2C:
pop bc
or a
jr nz, p07loc_7D35
dec bc
ld a, b
or c
jr nz, p07loc_7D0A
p07loc_7D35:
call j_HomeUp
call j_ClrScrn
ret