This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
.DELT JSR CATS \ Call CATS to ask for a drive number (or a directory \ name on the Master Compact) and catalogue that disc \ or directory BCS SVE \ If the C flag is set then an invalid drive number was \ entered as part of the catalogue process, so jump to \ SVE to display the disc access menuName: DELT Type: Subroutine Category: Save and load Summary: Catalogue a disc, ask for a filename to delete, and delete the file
This routine asks for a disc drive number, and if it is a valid number (0-3) it displays a catalogue of the disc in that drive. It then asks for a filename to delete, updates the OS command at DELI so that when that command is run, it deletes the correct file, and then it does the deletion.
Other entry points: DELT-1 Contains an RTS
When deleting a file via the disc menu, the disc and 6502SP versions ask for the "FILE TO DELETE?", while the Master version asks for the "COMMANDER'S NAME?".
Tap on a block to expand it, and tap it again to revert.
JSR MT26 \ Call MT26 to fetch a line of text from the keyboard \ to INWK+5, with the text length in Y TYA \ If no text was entered (Y = 0) then jump to SVE to BEQ SVE \ display the disc access menu
.DELL1
LDX #LO(DELI) \ Set (Y X) to point to the OS command at DELI, which LDY #HI(DELI) \ contains the DFS command for deleting this file
This variation is blank in the Disc (docked) and 6502 Second Processor versions.
JSR getzp \ Call getzp to restore the top part of zero page from \ the buffer at &3000
JMP SVE \ Jump to SVE to display the disc access menu and return \ from the subroutine using a tail call