ô > WPTest2 6ô Test if current filing system is write protected $ô Uses error buffer as workspace (: 2ô Initialise machine code: < òwp_Init F: Pô Test filing system Ztest%=(º wpTest%) € 255 d(ç test%=0 ñ "Filing system writable" n!ç test%:ö:ñ " - error ";test% xà ‚: Œ: –ô Initialise machine code:   Ýòwp_Init ª'OSBYTE=&FFF4:OSGBPB=&FFD1:BRKV=&202 ´Þ wpTest% 83 ¾#ã A%=0 ¸ 1:P%=wpTest%:[OPT A%*2 ÈTSX:STX Stack:JSR SwapBRK ÒLDA #&0D:STA &101 ÜLDY #&01:STY &102 æLDX #&00:STX &103:STX &104 ðLDA #5:JSR OSGBPB úLDX &10D:LDA &10E,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 †]í:á : ÿ