ô > WPTest1 6ô Test if current filing system is write protected : (ô Initialise machine code: 2 òwp_Init <: Fô Test filing system Ptest%=(º wpTest%) € 255 Z(ç test%=0 ñ "Filing system writable" d!ç test%:ö:ñ " - error ";test% nà x: ‚: Œô Initialise machine code: – Ýòwp_Init  'OSBYTE=&FFF4:OSGBPB=&FFD1:BRKV=&202 ªÞ wpTest% 113 ´#ã A%=0 ¸ 1:P%=wpTest%:[OPT A%*2 ¾TSX:STX Stack:JSR SwapBRK È LDA #Buffer € 255:STA Ctrl+1 Ò LDA #Buffer 256:STA Ctrl+2 ÜLDX #Ctrl € 255 æLDY #Ctrl 256 ðLDA #5:JSR OSGBPB ú"LDX Buffer:LDA Buffer+1,X:€ #3 "TAY:LDX #4:LDA #&8B:JSR OSBYTE LDA #0:BEQ SwapBRK  .Error "LDX Stack:TXS ,LDY #0:LDA (&FD),Y 6 .SwapBRK @PHA:LDY #1 J.SwapBRKlp TLDA BRKV,Y:LDX Catch,Y ^STA Catch,Y:TXA:STA BRKV,Y hDEY:BPL SwapBRKlp:PLA:RTS r.Catch:EQUW Error |.Stack:EQUB 0 †*.Ctrl:EQUB 0:EQUD Buffer:EQUD 0:EQUD 0 .Buffer:EQUS Ä20," ") š]í:á ¤: ÿ