equal
deleted
inserted
replaced
1 p06loc_4000: |
1 p06loc_4000: |
2 aProgram: .asc 'PROGRAM',0 |
2 aProgram: .asc 'PROGRAM',0 |
3 ; --------------------------------------------------------------------------- |
3 ; --------------------------------------------------------------------------- |
4 |
4 |
5 Page06_3A2F: |
5 InitProgramCreateContext: |
6 ld hl, aProgram |
6 ld hl, aProgram |
7 ld a, 56h ; 'V' |
7 ld a, 56h ; 'V' |
8 bit localizeHookActive, (iy+hookflags3) |
8 bit localizeHookActive, (iy+hookflags3) |
9 call nz, j_call_character_hook |
9 call nz, j_call_character_hook |
10 ld de, OP3 |
10 ld de, OP3 |
36 jr nz, p06loc_405B |
36 jr nz, p06loc_405B |
37 ld a, (mcxCurApp) |
37 ld a, (mcxCurApp) |
38 cp 59h ; 'Y' |
38 cp 59h ; 'Y' |
39 ret nz |
39 ret nz |
40 call p06sub_4296 |
40 call p06sub_4296 |
41 jp Page0Call_3A9B |
41 jp j_InitGroupContext |
42 ; --------------------------------------------------------------------------- |
42 ; --------------------------------------------------------------------------- |
43 |
43 |
44 p06loc_405B: |
44 p06loc_405B: |
45 cp 5 |
45 cp 5 |
46 jp z, p06loc_408A |
46 jp z, p06loc_408A |
122 call OP1ToOP4 |
122 call OP1ToOP4 |
123 jr p06loc_40EC |
123 jr p06loc_40EC |
124 ; --------------------------------------------------------------------------- |
124 ; --------------------------------------------------------------------------- |
125 |
125 |
126 p06loc_40DD: |
126 p06loc_40DD: |
127 ld hl, Page0Call_24F9 |
127 ld hl, ErrMemory_NoGoTo |
128 call pushErrorHandleR |
128 call pushErrorHandleR |
129 ld hl, 0 |
129 ld hl, 0 |
130 call CreateProg |
130 call CreateProg |
131 call popErrorHandleR |
131 call popErrorHandleR |
132 |
132 |
136 call Mov8B |
136 call Mov8B |
137 set promptEdit, (iy+promptFlags) |
137 set promptEdit, (iy+promptFlags) |
138 ld a, 46h ; 'F' |
138 ld a, 46h ; 'F' |
139 ld (mcxCurApp), a |
139 ld (mcxCurApp), a |
140 |
140 |
141 Page06_3A29: |
141 InitProgramEditorContext: |
142 res cmdExec, (iy+cmdFlags) |
142 res cmdExec, (iy+cmdFlags) |
143 set grfSplitOverride, (iy+sGrFlags) |
143 set grfSplitOverride, (iy+sGrFlags) |
144 ld hl, p06loc_4172 |
144 ld hl, p06loc_4172 |
145 call AppInit |
145 call AppInit |
146 set prgmEdit, (iy+prgmFlags) |
146 set prgmEdit, (iy+prgmFlags) |
1507 ; End of function PutTokString |
1507 ; End of function PutTokString |
1508 |
1508 |
1509 ; --------------------------------------------------------------------------- |
1509 ; --------------------------------------------------------------------------- |
1510 |
1510 |
1511 setupEditCmd: |
1511 setupEditCmd: |
1512 call page0_165F |
1512 call last_entry_to_OP1 |
1513 call FINDPROGSYM |
1513 call FINDPROGSYM |
1514 call p06sub_4493 |
1514 call p06sub_4493 |
1515 ld bc, (cmdCursor) |
1515 ld bc, (cmdCursor) |
1516 ld a, c |
1516 ld a, c |
1517 or b |
1517 or b |
5526 ret |
5526 ret |
5527 ; End of function p06sub_6055 |
5527 ; End of function p06sub_6055 |
5528 |
5528 |
5529 ; --------------------------------------------------------------------------- |
5529 ; --------------------------------------------------------------------------- |
5530 |
5530 |
5531 Page06_3A7D: |
5531 InitSolverContext: |
5532 set grfSplitOverride, (iy+sGrFlags) |
5532 set grfSplitOverride, (iy+sGrFlags) |
5533 set 0, (iy+19h) |
5533 set 0, (iy+19h) |
5534 call RESETWINTOP |
5534 call RESETWINTOP |
5535 ld a, 54h ; 'T' |
5535 ld a, 54h ; 'T' |
5536 ld (mcxCurApp), a |
5536 ld (mcxCurApp), a |
5537 ld hl, p06loc_61A8 |
5537 ld hl, p06loc_61A8 |
5538 call page0_7C1 |
5538 call AppInitEnoughMem50 |
5539 |
5539 |
5540 p06loc_6079: |
5540 p06loc_6079: |
5541 ld a, (kbdKey) |
5541 ld a, (kbdKey) |
5542 cp 54h ; 'T' |
5542 cp 54h ; 'T' |
5543 jr nz, p06loc_6084 |
5543 jr nz, p06loc_6084 |
5562 cp 3 |
5562 cp 3 |
5563 jr z, p06loc_60C4 |
5563 jr z, p06loc_60C4 |
5564 call DelVar |
5564 call DelVar |
5565 |
5565 |
5566 p06loc_60B5: |
5566 p06loc_60B5: |
5567 ld hl, Page0Call_24F9 |
5567 ld hl, ErrMemory_NoGoTo |
5568 call pushErrorHandleR |
5568 call pushErrorHandleR |
5569 ld hl, 0 |
5569 ld hl, 0 |
5570 call CreateEqu |
5570 call CreateEqu |
5571 call popErrorHandleR |
5571 call popErrorHandleR |
5572 |
5572 |
5693 .db 0Ah |
5693 .db 0Ah |
5694 p06loc_61B5: |
5694 p06loc_61B5: |
5695 cp 27h ; ''' |
5695 cp 27h ; ''' |
5696 jr nz, p06loc_61BF |
5696 jr nz, p06loc_61BF |
5697 call p06sub_6A5A |
5697 call p06sub_6A5A |
5698 jp Page06_3A7D |
5698 jp InitSolverContext |
5699 ; --------------------------------------------------------------------------- |
5699 ; --------------------------------------------------------------------------- |
5700 |
5700 |
5701 p06loc_61BF: |
5701 p06loc_61BF: |
5702 bit 2, (iy+19h) |
5702 bit 2, (iy+19h) |
5703 jp z, p06loc_629A |
5703 jp z, p06loc_629A |
6425 |
6425 |
6426 p06sub_65EB: |
6426 p06sub_65EB: |
6427 call p06sub_6613 |
6427 call p06sub_6613 |
6428 ret nc |
6428 ret nc |
6429 call p06sub_65D9 |
6429 call p06sub_65D9 |
6430 ld hl, Page0Call_24F9 |
6430 ld hl, ErrMemory_NoGoTo |
6431 call pushErrorHandleR |
6431 call pushErrorHandleR |
6432 ld hl, 2 |
6432 ld hl, 2 |
6433 call CreateRList |
6433 call CreateRList |
6434 call popErrorHandleR |
6434 call popErrorHandleR |
6435 inc de |
6435 inc de |
6592 ld e, (hl) |
6592 ld e, (hl) |
6593 dec hl |
6593 dec hl |
6594 ld h, (hl) |
6594 ld h, (hl) |
6595 ld l, e |
6595 ld l, e |
6596 call BCALL_4D3B |
6596 call BCALL_4D3B |
6597 jp c, Page0Call_24F9 |
6597 jp c, ErrMemory_NoGoTo |
6598 call j_setNumWindow |
6598 call j_setNumWindow |
6599 call BufToTop |
6599 call BufToTop |
6600 call j_fdispEOL |
6600 call j_fdispEOL |
6601 pop hl |
6601 pop hl |
6602 bit 1, (iy+19h) |
6602 bit 1, (iy+19h) |
6626 ex de, hl |
6626 ex de, hl |
6627 ld hl, (OPS) |
6627 ld hl, (OPS) |
6628 ld (editTail), hl |
6628 ld (editTail), hl |
6629 ld (editBtm), hl |
6629 ld (editBtm), hl |
6630 call CpHLDE |
6630 call CpHLDE |
6631 jp c, Page0Call_24F9 |
6631 jp c, ErrMemory_NoGoTo |
6632 pop hl |
6632 pop hl |
6633 pop de |
6633 pop de |
6634 ret |
6634 ret |
6635 ; End of function p06sub_66FC |
6635 ; End of function p06sub_66FC |
6636 |
6636 |
6875 call p06sub_68D0 |
6875 call p06sub_68D0 |
6876 call p06sub_483D |
6876 call p06sub_483D |
6877 ld hl, (editDat) |
6877 ld hl, (editDat) |
6878 ld a, 3 |
6878 ld a, 3 |
6879 call BCALL_4D3B |
6879 call BCALL_4D3B |
6880 jp c, Page0Call_24F9 |
6880 jp c, ErrMemory_NoGoTo |
6881 call j_HomeUp |
6881 call j_HomeUp |
6882 call j_setNumWindow |
6882 call j_setNumWindow |
6883 call BufToTop |
6883 call BufToTop |
6884 call j_wdispEOL |
6884 call j_wdispEOL |
6885 call CloseEditEqu |
6885 call CloseEditEqu |
7269 |
7269 |
7270 Page06_2FE5: |
7270 Page06_2FE5: |
7271 jr p06loc_6AD1 |
7271 jr p06loc_6AD1 |
7272 ; --------------------------------------------------------------------------- |
7272 ; --------------------------------------------------------------------------- |
7273 |
7273 |
7274 Page06_3A3B: |
7274 InitYEqualsContext: |
7275 res 7, (iy+0Ch) |
7275 res 7, (iy+0Ch) |
7276 |
7276 |
7277 p06loc_6AD1: |
7277 p06loc_6AD1: |
7278 call RESETWINTOP |
7278 call RESETWINTOP |
7279 call j_ClrWindow |
7279 call j_ClrWindow |
7280 |
7280 |
7281 p06loc_6AD7: |
7281 p06loc_6AD7: |
7282 call page0_17DB |
7282 call ResetSplitOverride |
7283 xor a |
7283 xor a |
7284 ld (currLastEntry), a |
7284 ld (currLastEntry), a |
7285 bit yEquHookActive, (iy+hookflags3) |
7285 bit yEquHookActive, (iy+hookflags3) |
7286 jr z, p06loc_6AE9 |
7286 jr z, p06loc_6AE9 |
7287 ld a, 0 |
7287 ld a, 0 |
8906 dec (hl) |
8906 dec (hl) |
8907 djnz p06loc_7436 |
8907 djnz p06loc_7436 |
8908 ret |
8908 ret |
8909 ; --------------------------------------------------------------------------- |
8909 ; --------------------------------------------------------------------------- |
8910 |
8910 |
8911 Page06_3A23: |
8911 InitModeContext: |
8912 ld hl, p06loc_75AD |
8912 ld hl, p06loc_75AD |
8913 call AppInit |
8913 call AppInit |
8914 set grfSplitOverride, (iy+sGrFlags) |
8914 set grfSplitOverride, (iy+sGrFlags) |
8915 bit prgmEdit, (iy+prgmFlags) |
8915 bit prgmEdit, (iy+prgmFlags) |
8916 call nz, SaveScreen |
8916 call nz, SaveScreen |
9017 jr z, p06loc_751B |
9017 jr z, p06loc_751B |
9018 bit 4, (iy+1Ah) |
9018 bit 4, (iy+1Ah) |
9019 jr nz, p06loc_7527 |
9019 jr nz, p06loc_7527 |
9020 set grfSChanged, (iy+sGrFlags) |
9020 set grfSChanged, (iy+sGrFlags) |
9021 call SetYOffset |
9021 call SetYOffset |
9022 set 6, (iy+1Dh) |
9022 set NEED_BUFCPY, (iy+VERTFLAG2) |
9023 set 7, (iy+1Dh) |
9023 set NEED_RETABLE, (iy+VERTFLAG2) |
9024 jr p06loc_7524 |
9024 jr p06loc_7524 |
9025 ; --------------------------------------------------------------------------- |
9025 ; --------------------------------------------------------------------------- |
9026 |
9026 |
9027 p06loc_751B: |
9027 p06loc_751B: |
9028 bit 4, (iy+1Ah) |
9028 bit 4, (iy+1Ah) |
9174 ret |
9174 ret |
9175 ; End of function p06sub_75DF |
9175 ; End of function p06sub_75DF |
9176 |
9176 |
9177 ; --------------------------------------------------------------------------- |
9177 ; --------------------------------------------------------------------------- |
9178 |
9178 |
9179 Page06_3A8F: |
9179 InitFormatContext: |
9180 ld hl, p06loc_7628 |
9180 ld hl, p06loc_7628 |
9181 call AppInit |
9181 call AppInit |
9182 set grfSplitOverride, (iy+sGrFlags) |
9182 set grfSplitOverride, (iy+sGrFlags) |
9183 bit prgmEdit, (iy+prgmFlags) |
9183 bit prgmEdit, (iy+prgmFlags) |
9184 call nz, SaveScreen |
9184 call nz, SaveScreen |
9472 cp 27h ; ''' |
9472 cp 27h ; ''' |
9473 jr nz, p06loc_77C8 |
9473 jr nz, p06loc_77C8 |
9474 call p06sub_74EC |
9474 call p06sub_74EC |
9475 ld a, (mcxCurApp) |
9475 ld a, (mcxCurApp) |
9476 cp 48h ; 'H' |
9476 cp 48h ; 'H' |
9477 jp z, Page0Call_3A35 |
9477 jp z, j_InitWindowContext |
9478 cp 57h ; 'W' |
9478 cp 57h ; 'W' |
9479 jp z, Page06_3A8F |
9479 jp z, InitFormatContext |
9480 cp 4Bh ; 'K' |
9480 cp 4Bh ; 'K' |
9481 jp z, Page0Call_3A47 |
9481 jp z, j_InitTableSetContext |
9482 cp 53h ; 'S' |
9482 cp 53h ; 'S' |
9483 jp z, Page0Call_3A77 |
9483 jp z, j_InitTVMContext |
9484 jp Page06_3A23 |
9484 jp InitModeContext |
9485 ; --------------------------------------------------------------------------- |
9485 ; --------------------------------------------------------------------------- |
9486 |
9486 |
9487 p06loc_77C8: |
9487 p06loc_77C8: |
9488 cp 0ACh ; '�' |
9488 cp 0ACh ; '�' |
9489 jr nz, p06loc_77DA |
9489 jr nz, p06loc_77DA |