40 OUT &3FFF,&C7
50 IF PEEK(&4000)=&C7 THEN PRINT"IO Bit14=0 PAL selected" ELSE PRINT"IO Bit14=0 PAL not selected"
60 OUT &7F00,&COC0:POKE &C000,&C0
70 OUT &7F00,&C3:POKE &4000,&C3:OUT &7F00,&C0
80 IF PEEK(&C000)=&C3 THEN PRINT"Valid RAM mode &C3" ELSE PRINT"Invalid RAM mode &C3"