586 | | LD A, 00 | |
587 | | OUT (ACTRL), A | ; OUTPUT |
588 | | RET | |
589 | ; * * * * * * * * * * * * * * * * * * * * * * * * * * * |
590 | ; ROUTINE COMPLETED MESSAGE |
591 | ; * * * * * * * * * * * * * * * * * * * * * * * * * * * |
593 | MESS19 | CALL CLRCRT | ; CLEAR SCREEN |
594 | | LD HL, TEXT19 | ; ROUTINE COMPLETE |
595 | | LD DE, 090BH | |
596 | | LD BC, 16 | |
597 | | LDIR | |
598 | | DEFB SCAL, TDEL | ; WAIT 2 SECONDS |
599 | | DEFB SCAL, TDEL | |
600 | | RET | |
601 | ; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
602 | ; GET START ADDRESS OF 1K OR 2K BLOCK |
605 | ; OR 4 DIGIT TYPE NUMBER OF EPROM |
606 | ; OR MEMORY START ADDRES OF EPROM |
607 | ; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
609 | ROMADR | LD HL, TEXT18 | ; "NORMAL ROM START ADDR?" |
610 | | LD DE, 09CBH | |
611 | | LD BC, 22H | |
612 | | LDIR | |
613 | | LD A, 00 | |
614 | | LD (SCNFLG), A | ; SET JUMP BACK FLAG |
615 | | JR SCANT1 | |
616 | RAMADR | LD HL, TEXT6 | ; MESSAGE TO CRT |
617 | | LD DE, 09CBH | ; FOR ADDRESS |
618 | | LD BC, 2EH | |
619 | | LDIR | |
620 | | LD A, 0FFH | |
621 | | LD (SCNFLG), A | ; SET FOR JUMP BACK TO HERE |
622 | SCANT1 | LD HL, TEXT10 | ; PROMPT "ADDRESS ??" |
623 | | LD DE, 0B0BH | |
624 | | LD BC, 12H | |
625 | | LDIR | |
626 | | LD HL, 0B19H | ; SCREEN ADD. FOR ENTRY |
627 | SCAN1A | LD B, 20H | |
628 | | LD DE, STORLN | |
629 | | LD A, 20H | |
630 | CLRLIN | LD (DE), A | ; CLEAR LINE STORE |
631 | | INC DE | |
632 | | DJNZ CLRLIN | |
633 | | LD IY, STORE | ; STORE FOR ENTRIES |
634 | | LD D, 4 | ; FOUR KEY ENTRIES |
635 | SCAN2 | XOR A | |
636 | SCAN3 | DEFB SCAL, KBD | ; GET ENTRIES FROM KEYBOARD |
637 | | JR C, SCAN4 | |
638 | | JR SCAN3 | |
639 | SCAN4 | CP "O" | ; ONLY ACCEPT ENTRIES |
640 | | JP M, SCAN2 | ; IN THE RANGE 30H – 39H |
641 | | CP ":" | |
642 | | JP P, SCAN5 | |
643 | | LD (HL), A | ; PRINT IF O.K. |
644 | | SUB 30H | ; CONVERT TO 0 – 9 |
645 | | LD (IY), A | ; STORE IT |
646 | | INC HL | ; NEXT SCREEN ADDRESS |
647 | | INC IY | ; NEXT STORE |