equal
deleted
inserted
replaced
310 |
310 |
311 newContext0: |
311 newContext0: |
312 res appRetKeyOff, (iy+APIFlg) |
312 res appRetKeyOff, (iy+APIFlg) |
313 ld hl, mcxCurApp |
313 ld hl, mcxCurApp |
314 cp (hl) |
314 cp (hl) |
315 jr nz, page0_64E |
315 jr nz, newContext_Start |
316 cp 44h ; 'D' |
316 cp kGraph |
317 jr nz, page0_647 |
317 jr nz, {+} |
|
318 ;If you try to start the graph context again, just put it away |
318 push bc |
319 push bc |
319 page0_642: |
|
320 call j_GRPUTAWAY |
320 call j_GRPUTAWAY |
321 pop bc |
321 pop bc |
322 ret |
322 ret |
323 page0_647: |
323 +: ;We're allowed to re-start the homescreen context again |
324 cp 40h ; '@' |
324 cp appStart |
325 jr z, page0_64E |
325 jr z, newContext_Start |
326 ld b, 27h ; ''' |
326 ld b, kApp |
327 ret |
327 ret |
328 page0_64E: |
328 newContext_Start: |
329 push bc |
329 push bc |
330 push af |
330 push af |
331 pop af |
331 pop af |
332 page0_651: |
332 cp kInputDone |
333 cp 3Fh ; '?' |
|
334 jr nz, page0_65B |
333 jr nz, page0_65B |
335 ld a, 40h ; '@' |
334 ld a, appStart |
336 push af |
335 push af |
337 xor a |
336 xor a |
338 jr page0_664 |
337 jr page0_664 |
339 page0_65B: |
338 page0_65B: |
340 push af |
339 push af |
341 page0_65C: |
340 page0_65C: |
342 sub 40h ; '@' |
341 sub appStart |
343 jr nz, page0_664 |
342 jr nz, page0_664 |
344 res cmdExec, (iy+cmdFlags) |
343 res cmdExec, (iy+cmdFlags) |
345 page0_664: |
344 page0_664: |
346 call Page0Call_3F51 |
345 call Page0Call_3F51 |
347 pop af |
346 pop af |
351 call cxPutAway2 |
350 call cxPutAway2 |
352 pop af |
351 pop af |
353 push af |
352 push af |
354 ld b, a |
353 ld b, a |
355 ld a, (mcxCurApp) |
354 ld a, (mcxCurApp) |
356 cp 47h ; 'G' |
355 cp kPrgmCr |
357 ld a, b |
356 ld a, b |
358 jr z, page0_68E |
357 jr z, page0_68E |
359 bit prgmEdit, (iy+prgmFlags) |
358 bit prgmEdit, (iy+prgmFlags) |
360 jr z, page0_68E |
359 jr z, page0_68E |
361 cp 57h ; 'W' |
360 cp kFormat |
362 jr z, page0_69E |
361 jr z, page0_69E |
363 cp 45h ; 'E' |
362 cp kMode |
364 jr z, page0_69E |
363 jr z, page0_69E |
365 cp 4Bh ; 'K' |
364 cp kTblSet |
366 jr z, page0_69E |
365 jr z, page0_69E |
367 page0_68E: |
366 page0_68E: |
368 call Page0Call_3F57 |
367 call Page0Call_3F57 |
369 cp 52h ; 'R' |
368 cp kError |
370 jr z, page0_69E |
369 jr z, page0_69E |
371 call cxPPutAway |
370 call cxPPutAway |
372 call IsExternalApp |
371 call IsExternalApp |
373 call z, SetFastSpeed |
372 call z, SetFastSpeed |
374 page0_69E: |
373 page0_69E: |
375 ld a, (mcxCurApp) |
374 ld a, (mcxCurApp) |
376 pop bc |
375 pop bc |
377 push af |
376 push af |
378 push bc |
377 push bc |
379 cp 52h ; 'R' |
378 cp kError |
380 jr nz, page0_6B4 |
379 jr nz, page0_6B4 |
381 call j_POPCX |
380 call j_POPCX |
382 call sub_73D |
381 call sub_73D |
383 call IsExternalApp |
382 call IsExternalApp |
384 call z, SetFastSpeed |
383 call z, SetFastSpeed |
385 page0_6B4: |
384 page0_6B4: |
386 ld hl, 858Dh |
385 ld hl, mcxMain |
387 ld de, 859Bh |
386 ld de, mcxPrev |
388 ld bc, 0Eh |
387 ld bc, 14 |
389 ldir |
388 ldir |
390 ld a, (appFlagsAddr) |
389 ld a, (appFlagsAddr) |
391 ld (de), a |
390 ld (de), a |
392 pop af |
391 pop af |
393 push af |
392 push af |
394 cp 4Ah ; 'J' |
393 cp 4Ah |
395 jr nz, page0_6CE |
394 jr nz, page0_6CE |
396 call Page0Call_3F63 |
395 call Page0Call_3F63 |
397 jr page0_707 |
396 jr page0_707 |
398 page0_6CE: |
397 page0_6CE: |
399 cp 44h ; 'D' |
398 cp kGraph |
400 call z, Page0Call_3F63 |
399 call z, Page0Call_3F63 |
401 jr z, page0_6DF |
400 jr z, page0_6DF |
402 set 6, (iy+1Dh) |
401 set 6, (iy+1Dh) |
403 set 7, (iy+1Dh) |
402 set 7, (iy+1Dh) |
404 jr page0_707 |
403 jr page0_707 |
407 call CheckSplitFlag |
406 call CheckSplitFlag |
408 jr z, page0_707 |
407 jr z, page0_707 |
409 ld a, (mcxCurApp) |
408 ld a, (mcxCurApp) |
410 call j_CompareContext |
409 call j_CompareContext |
411 jr nz, page0_707 |
410 jr nz, page0_707 |
412 ld a, 40h ; '@' |
411 ld a, appStart |
413 ld (mcxCurApp), a |
412 ld (mcxCurApp), a |
414 ld hl, Page0Call_3F6F |
413 ld hl, Page0Call_3F6F |
415 ld a, (iy+12h) |
414 ld a, (iy+12h) |
416 push af |
415 push af |
417 ld a, 40h ; '@' |
416 ld a, appstart |
418 call sub_71D |
417 call sub_71D |
419 call cxPutAway |
418 call cxPutAway |
420 pop af |
419 pop af |
421 ld (iy+12h), a |
420 ld (iy+12h), a |
422 page0_707: |
421 page0_707: |
424 pop bc |
423 pop bc |
425 cp 46h ; 'F' |
424 cp 46h ; 'F' |
426 jr nz, page0_718 |
425 jr nz, page0_718 |
427 push af |
426 push af |
428 ld a, b |
427 ld a, b |
429 cp 52h ; 'R' |
428 cp kError |
430 jr z, page0_717 |
429 jr z, page0_717 |
431 set promptEdit, (iy+promptFlags) |
430 set promptEdit, (iy+promptFlags) |
432 page0_717: |
431 page0_717: |
433 pop af |
432 pop af |
434 page0_718: |
433 page0_718: |
435 pop hl |
434 pop hl |
436 ld (mcxCurApp), a |
435 ld (mcxCurApp), a |
437 pop af |
436 pop af |
438 sub_71D: |
437 sub_71D: |
439 bit 2, (iy+36h) |
438 bit appChangeHookActive, (iy+hookflags4) |
440 call nz, Page0Call_3F75 |
439 call nz, j_call_appchange_hook |
441 push af |
440 push af |
442 set 5, (iy+1) |
441 set 5, (iy+1) |
443 call sub_7A1 |
442 call jpHL |
444 res 5, (iy+1) |
443 res 5, (iy+1) |
445 pop bc |
444 pop bc |
446 ret |
445 ret |
447 |
446 |
448 page0_732: |
447 ldHLind_AWord: |
449 add a, a |
448 add a, a |
450 ld e, a |
449 ld e, a |
451 ld d, 0 |
450 ld d, 0 |
452 add hl, de |
451 add hl, de |
453 jp ldHLind |
452 jp ldHLind |
502 sub_77F: |
501 sub_77F: |
503 in a, (6) |
502 in a, (6) |
504 push af |
503 push af |
505 ld a, (mcxPage) |
504 ld a, (mcxPage) |
506 call sub_630 |
505 call sub_630 |
507 call sub_7A1 |
506 call jpHL |
508 pop af |
507 pop af |
509 call sub_630 |
508 call sub_630 |
510 ret |
509 ret |
511 |
510 |
512 cxMain: |
511 cxMain: |
514 ld hl, (mcxMain) |
513 ld hl, (mcxMain) |
515 push af |
514 push af |
516 ld a, (mcxPage) |
515 ld a, (mcxPage) |
517 call sub_630 |
516 call sub_630 |
518 pop af |
517 pop af |
519 call sub_7A1 |
518 call jpHL |
520 pop hl |
519 pop hl |
521 ret |
520 ret |
522 |
521 |
523 sub_7A1: |
522 jpHL: |
524 jp (hl) |
523 jp (hl) |
525 |
524 |
526 page0_7A2: |
525 page0_7A2: |
527 ld a, (unk_85A7) |
526 ld a, (unk_85A7) |
528 call sub_630 |
527 call sub_630 |
529 ld hl, (unk_85A1) |
528 ld hl, (unk_85A1) |
530 jr sub_7A1 |
529 jr jpHL |
531 |
530 |
532 monErrHand: |
531 monErrHand: |
533 ld hl, monErrHand |
532 ld hl, monErrHand |
534 call pushErrorHandleR |
533 call pushErrorHandleR |
535 ld a, 52h ; 'R' |
534 ld a, 52h ; 'R' |