2 ; Ullrich von Bassewitz, 16.11.2002
4 ; Scratch a file on disk
9 .import fnunit, fnlen, fncmd
13 ;--------------------------------------------------------------------------
14 ; scratch: Scratch a file on disk. Expects the name of the file to be already
15 ; parsed. Returns an error code in A, which may either be the code read from
16 ; the command channel, or another error when accessing the command channel
21 lda #15 ; Command channel
23 tay ; Secondary address
26 lda #'s' ; Scratch command
30 txa ; Length of name into A
38 jsr readdiskerror ; Read the command channel