Skip to content

Commit b02a4ae

Browse files
author
Mathis Lav
committed
Several bugs fixed / added a memory editor
1 parent a5378ab commit b02a4ae

File tree

10 files changed

+1261
-128
lines changed

10 files changed

+1261
-128
lines changed

Diff for: PHASM.8XP

2.16 KB
Binary file not shown.

Diff for: PHASM.8xg

170 Bytes
Binary file not shown.

Diff for: PHASM.gif

1.02 MB
Loading

Diff for: SRC/PHASM.8XG/Group.z80

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
.nolist
2-
#include "ti83pce.inc"
2+
#include "ti84pce.inc"
33
#macro bcall(x)
44
call x
55
#endmacro
6-
#DEFINE sizeHomeScreenHook 943
7-
#DEFINE AppvarSize 2124
6+
#DEFINE sizeHomeScreenHook 853
7+
#DEFINE sizeInstantGoto 1214
8+
#DEFINE AppvarSize 4158
89
#DEFINE editArchivedProgFlag 7
910
.list
1011

Diff for: SRC/PHASM.8XG/InstantGoto.z80

+21-11
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,24 @@ beginGetkeyHook:
88
ret nz
99

1010
ld a,b ; A = key
11+
cp skVars
12+
jr nz,notVarsKey
13+
ld hl,sizeHomeScreenHook+sizeInstantGoto + 2
14+
ld bc,AppvarSize-sizeHomeScreenHook-sizeInstantGoto
15+
jr jumpToAppVar
16+
notVarsKey:
1117
cp skGraphvar
1218
ret nz
19+
ld hl,sizeHomeScreenHook + 2 ; addr after Homescreen Hook (2 = size bytes)
20+
ld bc,sizeInstantGoto
1321

14-
alphaPressed:
22+
jumpToAppVar:
1523
bit shiftAlpha, (iy+shiftFlags)
16-
jr z,quitGKHook+4
17-
call _pushrealo1 ; Saving the name of the program edited
24+
jr z,quitGKHook+1
25+
res shiftAlpha, (iy+shiftFlags)
26+
push bc
27+
push hl
28+
call _op1ToOp5 ; Saving the name of the program edited (for Instant Goto)
1829
call _zeroop1
1930
ld a,AppVarObj ; We obtain the address of the code (in PH AppVar)
2031
ld (OP1),a
@@ -23,24 +34,23 @@ alphaPressed:
2334
ld a,'H'
2435
ld (OP1+2),a
2536
call _ChkFindSym
37+
pop hl
2638
jr c,quitGKHook
2739
call _chkinram
2840
jr nz,quitGKHook
29-
ld hl,sizeHomeScreenHook + 2 ; addr after Homescreen Hook (2 = size bytes)
3041
add hl,de
3142
push hl
32-
call _poprealo1
43+
call _op5toOp1
44+
3345
pop hl
34-
35-
ld de,$D052C6+6000
36-
ld bc,AppvarSize - sizeHomeScreenHook + 1
46+
ld de,$D052C6+4000
47+
pop bc
3748
ldir
38-
ld hl,$D052C6+6000
49+
ld hl,$D052C6+4000
3950
jp (hl)
4051

4152
quitGKHook:
42-
call _poprealo1
43-
ld a,skGraphvar
53+
pop bc
4454
and a
4555
ret
4656
endGetkeyHook:

0 commit comments

Comments
 (0)