ô > NVDEV/src 0ô Implement non-volatile memory OSBYTEs with +ô device directly addressed in I/O map. (: 2fname$="NVRAM" <Þ mcode% &200 FBYTEV=&20A Pload%=&FFFF0AB4 Z#NVMREG =&FC38:ô Register select d!NVMDATA=&FC3C:ô Data register n-NVMSIZE=128 :ô Number of NVMEM locations x&NVMRAM =14 :ô First ram location ‚: Œ ã P=0 ¸ 1 –P%=load%:O%=mcode%  [OPT P*3+4 ª.go% ´ PHP:SEI ¾LDA BYTEV+0:LDX oldbyte+1 ÈSTX BYTEV+0:STA oldbyte+1 ÒLDA BYTEV+1:LDX oldbyte+2 ÜSTX BYTEV+1:STA oldbyte+2 æ PLP:RTS ð: ú .newbyte #CMP #161:BEQ nvm :\ A=161, read $CMP #162:BEQ nvm :\ A=162, write  .oldbyte "JMP newbyte ,.nvm 6CPX #255:BEQ nvmsz @+PHA:TXA:ADC #NVMRAM:CPX #NVMSIZE-NVMRAM JCLV:TAX:PLA:BCS nvmov T!STX NVMREG:CMP #162:BCC nvmrd ^.nvmwr:STY NVMDATA:CLC:RTS h.nvmrd:LDY NVMDATA:RTS r$.nvmsz:LDY #NVMSIZE-NVMRAM-1:CLC |.nvmov:RTS †]í Fñ"*SAVE ";fname$;" ";~mcode%;" ";~O%;" ";~go%„&FFFF0000;" ";~load% ÿ