0 Members and 5 Guests are viewing this topic.
Hooks are designed to run from apps, there is no problem there.
4080 in a, ($06)4082 ld hl, $408B4085 B_CALL _SetParserHook4088 B_CALL _JForceCmdNoChar408B add a, e408C or a408D ret z408E push hl408F ld hl, $B1B14092 sbc hl, bc4094 pop hl4095 jr z, $40994097 xor a4098 ret4099 ld (OP5), hl409C rst rPUSHREALO1409D ld hl, (fpBase)40A0 ld bc, $000940A3 add hl, bc40A4 ld (OP5+2), hl40A7 call $459B40AA ld hl, (OP5)40AD ld a, h40AE or l40AF ret z40B0 ld a, e40B1 ld hl, $40A740B4 push hl40B5 inc a40B6 ld b, a40B7 djnz $40BD40B9 ld ($99E2), a40BC ret40BD djnz $40C340BF B_CALL _RunIndicOff40C2 ret40C3 djnz $40D840C5 ld hl, $450440C8 ld bc, $003540CB ld de, $99E240CE push de40CF ldir40D1 pop hl40D2 in a, ($06)40D4 B_CALL _SetFontHook40D7 ret40D8 djnz $40F340DA call $459B40DD and $0F40DF add a, a40E0 add a, e40E1 add a, a40E2 add a, e40E3 ld d, $0040E5 ld e, a40E6 ld hl, $997240E9 add hl, de40EA push hl40EB call $456040EE pop hl40EF ex de, hl40F0 ldir40F2 ret40F3 djnz $411B40F5 call $459B40F8 and $0F40FA add a, a40FB add a, e40FC add a, a40FD add a, e40FE ld d, $004100 ld e, a4101 ld hl, $99724104 add hl, de4105 push hl4106 call $459B4109 and $0F410B add a, a410C add a, e410D add a, a410E add a, e410F ld b, $004111 ld c, a4112 push bc4113 call $45394116 pop bc4117 pop hl4118 ldir411A ret411B djnz $4135411D call $45604120 ld h, d4121 ld l, e4122 srl b4124 rr c4126 push bc4127 dec hl4128 ld (hl), b4129 dec hl412A ld (hl), c412B inc hl412C inc hl412D call $45804130 pop de4131 B_CALL _DelMem4134 ret4135 djnz $41574137 ld hl, $00AA413A ld (OP1+1), hl413D rst rFINDSYM413E ex de, hl413F ld e, (hl)4140 sla (hl)4142 inc hl4143 ld d, (hl)4144 rl (hl)4146 inc hl4147 add hl, de4148 ex de, hl4149 push hl414A B_CALL _InsertMem414D pop hl414E ld b, h414F ld c, l4150 add hl, de4151 ex de, hl4152 dec hl4153 dec de4154 jp $45734157 djnz $41844159 ld hl, $00AA415C ld (OP1+1), hl415F rst rFINDSYM4160 ex de, hl4161 ld e, (hl)4162 inc hl4163 ld d, (hl)4164 inc hl4165 add hl, de4166 dec hl4167 ld de, $8587416A ld bc, $0040416D call $45734170 ld hl, $00004173 ld (curRow), hl4176 ld a, $7F4178 ld (de), a4179 ex de, hl417A B_CALL _PutPS417D ld a, ($8587)4180 B_CALL _PutMap4183 ret4184 djnz $41934186 ld bc, $00404189 call $4539418C ex de, hl418D ld de, textShadow4190 jp $45804193 djnz $41C44195 call $459B4198 and $07419A add a, a419B add a, a419C add a, a419D add a, a419E push af419F call $459B41A2 and $0F41A4 pop bc41A5 add a, b41A6 ld b, $0041A8 ld c, a41A9 ld hl, textShadow41AC add hl, bc41AD ld a, (hl)41AE sub $3041B0 cp $0A41B2 jr c, $41B641B4 sub $0741B6 pop hl41B7 rst $003841B8 ld b, l41B9 djnz $41CD41BB call $459B41BE cpl41BF ld b, a41C0 ld a, b41C1 out ($01), a41C3 in a, ($01)41C5 cpl41C6 or a41C7 jr z, $41C041C9 pop hl41CA jp $45FF41CD djnz $41FD41CF call $459B41D2 push de41D3 call $459B41D6 push af41D7 call $459B41DA push de41DB ld b, d41DC ld c, e41DD call $453941E0 pop bc41E1 pop af41E2 push bc41E3 push de41E4 push af41E5 call $456041E8 ex de, hl41E9 ld b, c41EA ld de, OP1+141ED call $44D041F0 xor a41F1 ld (de), a41F2 pop af41F3 ld (OP1), a41F6 pop hl41F7 pop bc41F8 pop de41F9 pop af41FA jp $46A241FD djnz $422941FF call $459B4202 push de4203 ld hl, $01AA4206 ld (OP1+1), hl4209 rst rFINDSYM420A ex de, hl420B ld c, (hl)420C inc hl420D ld b, (hl)420E inc hl420F ld de, OP1+14212 ldir4214 xor a4215 ld (de), a4216 call $459B4219 ld (OP1), a421C B_CALL _ChkFindSym421F pop hl4220 ret c4221 ld a, b4222 or a4223 ret nz4224 inc hl4225 inc hl4226 jp $423A4229 djnz $4263422B call $4680422E B_CALL _ZeroOP14231 ld hl, $01AA4234 ld (OP1+1), hl4237 rst rFINDSYM4238 ex de, hl4239 ld b, (hl)423A inc hl423B inc hl423C ld de, OP1+1423F call $44D04242 xor a4243 ld (de), a4244 call $459B4247 ld (OP1), a424A B_CALL _ChkFindSym424D inc de424E inc de424F push de4250 call $459B4253 pop hl4254 add hl, bc4255 push hl4256 call $46614259 push hl425A call $459B425D pop hl425E add hl, de425F pop de4260 jp $448B4263 djnz $42784265 call $46614268 push hl4269 call $459B426C pop hl426D add hl, de426E push hl426F call $459B4272 pop hl4273 ld a, (hl)4274 ld (hl), e4275 jp $45FF4278 djnz $4287427A call $4661427D push hl427E call $459B4281 pop hl4282 add hl, de4283 ld a, (hl)4284 jp $45FF4287 djnz $42AB4289 call $4680428C call $4661428F push hl4290 call $459B4293 pop hl4294 add hl, de4295 push hl4296 call $46914299 ld de, plotSScreen429C add hl, de429D push hl429E call $459B42A1 push af42A2 call $459B42A5 pop bc42A6 pop hl42A7 pop de42A8 jp $44C142AB djnz $42C442AD call $459B42B0 ld a, $8042B2 add a, d42B3 ld d, a42B4 push de42B5 call $456042B8 pop hl42B9 ld a, (de)42BA ldi42BC dec hl42BD ld (hl), a42BE inc hl42BF ld a, b42C0 or c42C1 jr nz, $42B942C3 ret42C4 djnz $42D642C6 call $459B42C9 ld a, $8042CB add a, d42CC ld d, a42CD push de42CE call $459B42D1 ld b, d42D2 ld c, e42D3 jp $428242D6 djnz $42E942D8 call $459B42DB ld a, $8042DD add a, d42DE ld d, a42DF push de42E0 call $459B42E3 pop hl42E4 ld a, (hl)42E5 ld (hl), e42E6 jp $45FF42E9 djnz $42F642EB call $459B42EE ld a, $8042F0 add a, d42F1 ld d, a42F2 ld a, (de)42F3 jp $45FF42F6 djnz $42FF42F8 call $466142FB push hl42FC jp $428242FF djnz $43124301 call $45604304 srl b4306 rr c4308 ld hl, saveSScreen430B push hl430C call $4580430F ld (hl), $C94311 ret4312 djnz $43224314 call $45604317 ex de, hl4318 ld de, saveSScreen431B push de431C ldir431E ex de, hl431F ld (hl), $C94321 ret4322 djnz $43434324 call $459B4327 push af4328 call $459B432B push af432C call $459B432F push af4330 call $459B4333 push af4334 call $45604337 pop hl4338 pop af4339 ld l, a433A pop bc433B pop af433C ld c, a433D call $46F74340 jp $46CD4343 djnz $434F4345 call $459B4348 push af4349 call $4661434C pop af434D ld a, (hl)434E ret434F djnz $436C4351 call $46614354 push hl4355 call $459B4358 push de4359 call $459B435C pop bc435D pop hl435E dec hl435F call $460B4362 push de4363 push bc4364 call $45394367 pop bc4368 pop hl4369 ldir436B ret436C B_CALL _GrBufCpy436F ret4370 push hl4371 add hl, hl4372 ld a, (hl)4373 add hl, hl4374 add hl, hl4375 add hl, hl4376 pop hl4377 dec de4378 ld a, d4379 or e437A jr nz, $4370437C dec bc437D ld a, b437E or c437F jr nz, $43774381 ret4382 add hl, bc4383 push af4384 dec hl4385 pop af4386 rl (hl)4388 push af4389 dec bc438A ld a, b438B or c438C jr nz, $4384438E pop af438F ret4390 add hl, bc4391 ex de, hl4392 add hl, bc4393 xor a4394 push af4395 pop af4396 dec hl4397 dec de4398 ld a, (de)4399 adc a, (hl)439A ld (hl), a439B push af439C dec bc439D ld a, b439E or c439F jr nz, $439543A1 pop af43A2 ex de, hl43A3 ret43A4 add hl, bc43A5 ex de, hl43A6 add hl, bc43A7 xor a43A8 push af43A9 pop af43AA dec hl43AB dec de43AC ld a, (de)43AD sbc a, (hl)43AE ld (hl), a43AF push af43B0 dec bc43B1 ld a, b43B2 or c43B3 jr nz, $43A943B5 pop af43B6 ex de, hl43B7 ret43B8 push hl43B9 push bc43BA ld a, (de)43BB inc de43BC cpi43BE jr nz, $43CB43C0 ld a, b43C1 or c43C2 jr nz, $43BA43C4 ex de, hl43C5 pop bc43C6 pop de43C7 sbc hl, bc43C9 scf43CA ret43CB pop bc43CC pop hl43CD ld a, d43CE or e43CF jr nz, $43B843D1 ret43D2 ld a, (de)43D3 inc de43D4 cpi43D6 jr nz, $43DD43D8 ld a, b43D9 or c43DA jr nz, $43D243DC cp a43DD ret43DE ld de, OP143E1 push de43E2 ld de, OP5+643E5 push de43E6 call $440C43E9 ex de, hl43EA rrd43EC ex de, hl43ED call $440C43F0 ex de, hl43F1 rrd43F3 ex de, hl43F4 dec de43F5 ld a, h43F6 or l43F7 jr nz, $43E643F9 pop hl43FA sbc hl, de43FC ld b, h43FD ld c, l43FE pop hl43FF ld (hl), a4400 inc hl4401 ld a, c4402 add a, a4403 dec a4404 add a, $804406 ld (hl), a4407 inc hl4408 ex de, hl4409 ldir440B ret440C xor a440D ld b, $10440F add hl, hl4410 rla4411 cp $0A4413 jr c, $44184415 sub $0A4417 inc l4418 djnz $440F441A ret441B ld a, (de)441C nop441D ld (hl), a441E inc de441F inc hl4420 dec bc4421 ld a, b4422 or c4423 jr nz, $441B4425 ret4426 push bc4427 ld (OP5+6), hl442A ld a, $3F442C cp (hl)442D call z, $44704430 inc hl4431 ld b, $004433 inc b4434 inc hl4435 ld a, (hl)4436 cp $3F4438 jr z, $443E443A cp $2B443C jr nz, $4433443E push hl443F dec hl4440 ex de, hl4441 ld hl, $00004444 ld (OP6+3), hl4447 inc hl4448 ld a, (de)4449 and $0F444B dec de444C push hl444D push de444E push bc444F call $458D4452 pop bc4453 ld de, (OP6+3)4457 add hl, de4458 ld (OP6+3), hl445B pop de445C pop hl445D ld a, $0A445F push de4460 push bc4461 call $458D4464 pop bc4465 pop de4466 djnz $44484468 ld de, (OP6+3)446C ld a, e446D pop hl446E pop bc446F ret4470 ld sp, (OP5+6)4474 ret4475 add a, e4476 ld b, a4477 ld hl, kbdWUR447A ld a, (hl)447B cp $32447D jr c, $4482447F ld a, $324481 ld (hl), a4482 cp $0A4484 jr nz, $44894486 ld a, $0A4488 ld (hl), a4489 ld a, b448A ret448B ld (OP5+6), hl448E ld hl, plotSScreen4491 ld (OP6+3), hl4494 ld b, $0C4496 push bc4497 ld b, $084499 push bc449A ld a, (de)449B push de449C ld l, a449D ld h, $00449F add hl, hl44A0 add hl, hl44A1 add hl, hl44A2 ld bc, (OP5+6)44A6 add hl, bc44A7 ex de, hl44A8 ld hl, (OP6+3)44AB call $44C144AE ld (OP6+3), hl44B1 pop de44B2 inc de44B3 pop bc44B4 djnz $449944B6 dec h44B7 dec h44B8 dec h44B9 inc l44BA ld (OP6+3), hl44BD pop bc44BE djnz $449644C0 ret44C1 ld bc, $080C44C4 ld a, (de)44C5 nop44C6 ld (hl), a44C7 inc de44C8 ld a, b44C9 ld b, $0044CB add hl, bc44CC ld b, a44CD djnz $44C444CF ret44D0 ld c, $0044D2 ld a, (hl)44D3 cp $2944D5 jr nz, $44D944D7 ld a, $2044D9 cp $BB44DB jr nz, $44E744DD inc hl44DE dec b44DF ld a, (hl)44E0 sub $4F44E2 cp $6D44E4 jr c, $44E744E6 dec a44E7 inc hl44E8 ld (de), a44E9 inc de44EA inc c44EB djnz $44D244ED ret44EE ld (hl), a44EF ld a, $0C44F1 sub b44F2 ld c, a44F3 ld a, (hl)44F4 push bc44F5 push af44F6 ld a, (de)44F7 nop44F8 ld (hl), a44F9 inc de44FA inc hl44FB djnz $44F644FD add hl, bc44FE pop af44FF pop bc4500 dec a4501 jr nz, $44F44503 ret4504 add a, e4505 cp $014507 jr z, $450C4509 xor a450A dec a450B ret450C ld a, b450D cp $3A450F jr c, $45134511 sub $074513 sub $304515 cp $104517 jr nc, $45094519 ld c, a451A ld a, (parseVar+1)451D or a451E jr z, $45094520 ld a, c4521 push bc4522 add a, a4523 add a, c4524 add a, a4525 add a, c4526 ld d, $004528 ld e, a4529 ld hl, $996B452C add hl, de452D ld a, b452E ld bc, $00074531 ld de, lFont_record4534 ldir4536 pop bc4537 xor a4538 ret4539 push bc453A B_CALL _AnsName453D rst rFINDSYM453E B_CALL _DelVarNoArc4541 pop hl4542 B_CALL _CreateStrng4545 inc de4546 inc de4547 ret4548 ld a, $30454A rrd454C cp $3A454E jr c, $45524550 add a, $074552 ld (de), a4553 dec de4554 ret4555 ld a, (de)4556 cp $3A4558 jr c, $455C455A sub $07455C inc de455D rld455F ret4560 B_CALL _ZeroOP14563 ld a, $AA4565 ld (OP1+1), a4568 rst rFINDSYM4569 call c, $4470456C ex de, hl456D ld c, (hl)456E inc hl456F ld b, (hl)4570 inc hl4571 ex de, hl4572 ret4573 call $45484576 call $45484579 dec hl457A dec bc457B ld a, b457C or c457D jr nz, $4573457F ret4580 call $45554583 call $45554586 inc hl4587 dec bc4588 ld a, b4589 or c458A jr nz, $4580458C ret458D ld b, $08458F ld de, $00004592 ex de, hl4593 add hl, hl4594 rlca4595 jr nc, $45984597 add hl, de4598 djnz $4593459A ret459B ld bc, (OP5)459F ld a, b45A0 or c45A1 jr z, $45B445A3 dec bc45A4 ld (OP5), bc45A8 ld hl, (OP5+2)45AB call $45C745AE ld (OP5+2), hl45B1 ret45B2 push de45B3 push hl45B4 call $458D45B7 ld de, (OP5+6)45BB add hl, de45BC ld (OP5+6), hl45BF pop hl45C0 ld a, $0A45C2 call $458D45C5 pop de45C6 ret45C7 ld a, (hl)45C8 push hl45C9 and $0F45CB srl a45CD push af45CE inc a45CF ld c, a45D0 ld b, $0045D2 add hl, bc45D3 ex de, hl45D4 ld hl, $000045D7 ld (OP5+6), hl45DA inc hl45DB pop af45DC jr nc, $45E445DE ld a, (de)45DF and $0F45E1 call $45B245E4 ld a, (de)45E5 and $F045E7 rlca45E8 rlca45E9 rlca45EA rlca45EB call $45B245EE dec de45EF dec c45F0 ld a, c45F1 or a45F2 jr nz, $45DE45F4 pop hl45F5 ld de, $000945F8 add hl, de45F9 ld de, (OP5+6)45FD ld a, e45FE ret45FF ld l, a4600 ld h, $004602 B_CALL _SetXXXXOP24605 B_CALL _OP2ToOP14608 or $01460A ret460B ld (OP6+3), a460E ld a, b460F or a4610 jr nz, $461C4612 ld a, c4613 or a4614 jr z, $46264616 dec a4617 jr nz, $461C4619 ld (OP5+6), hl461C ld a, (OP6+3)461F inc hl4620 cp (hl)4621 jr nz, $461F4623 dec bc4624 jr $460E4626 ex de, hl4627 ld hl, (OP5+6)462A ex de, hl462B sbc hl, de462D ld b, h462E ld c, l462F ret4630 ld a, (hl)4631 cp $614633 jr c, $46414635 ex de, hl4636 ld (hl), $BB4638 inc hl4639 ex de, hl463A add a, $4F463C cp $BB463E jr c, $46414640 inc a4641 cp $2E4643 jr nz, $46474645 ld a, $3A4647 cp $204649 jr nz, $464D464B ld a, $29464D cp $3F464F jr nz, $46524651 dec a4652 ld (de), a4653 inc de4654 inc hl4655 dec bc4656 ld a, b4657 or c4658 jr nz, $4630465A pop hl465B ex de, hl465C sbc hl, de465E push hl465F pop bc4660 ret4661 call $45604664 ex de, hl4665 ld b, c4666 ld de, OP1+14669 call $44D0466C xor a466D ld (de), a466E call $459B4671 ld (OP1), a4674 B_CALL _ChkFindSym4677 call c, $4470467A ex de, hl467B ld c, (hl)467C inc hl467D ld b, (hl)467E inc hl467F ret4680 call $459B4683 and $034685 add a, a4686 add a, a4687 add a, a4688 add a, $A6468A ld ($44C5), a468D ld ($44F7), a4690 ret4691 call $459B4694 push de4695 call $459B4698 ex de, hl4699 add hl, hl469A add hl, hl469B ld d, h469C ld e, l469D add hl, hl469E add hl, de469F pop de46A0 add hl, de46A1 ret46A2 push hl46A3 push bc46A4 push de46A5 ld hl, OP1+146A8 ld bc, $000046AB xor a46AC inc c46AD inc hl46AE cp (hl)46AF jr nz, $46AC46B1 push bc46B2 B_CALL _ChkFindSym46B5 call c, $447046B8 ld a, b46B9 pop bc46BA ld hl, $000C46BD add hl, bc46BE ex de, hl46BF or a46C0 jr nz, $46C446C2 ld e, $0246C4 add hl, de46C5 pop de46C6 add hl, de46C7 pop bc46C8 pop de46C9 B_CALL _FlashToRAM246CC ret46CD push hl46CE add hl, hl46CF add hl, hl46D0 add hl, hl46D1 pop hl46D2 ld a, $2046D4 add a, h46D5 out ($10), a46D7 push hl46D8 add hl, hl46D9 add hl, hl46DA add hl, hl46DB pop hl46DC ld a, $8046DE add a, l46DF out ($10), a46E1 push bc46E2 push hl46E3 push hl46E4 add hl, hl46E5 add hl, hl46E6 add hl, hl46E7 pop hl46E8 ld a, (de)46E9 inc de46EA out ($11), a46EC djnz $46E346EE pop hl46EF pop bc46F0 dec c46F1 inc h46F2 ld a, c46F3 or a46F4 jr nz, $46CD46F6 ret46F7 push bc46F8 push hl46F9 ld hl, saveSScreen46FC push hl46FD ex de, hl46FE ld a, c46FF push af4700 push hl4701 push bc4702 ld a, (hl)4703 ld (de), a4704 inc de4705 ld a, b4706 ld b, $004708 add hl, bc4709 ld b, a470A djnz $4702470C pop bc470D pop hl470E pop af470F inc hl4710 dec a4711 jr nz, $46FF4713 pop de4714 pop hl4715 pop bc4716 ret