ô > NVMEM/src .ô Implement non-volatile memory OSBYTEs by ô storing data in memory. (: 2fname$="NVRAM" <Þ mcode% &200 FBYTEV=&20A Pload%=&FFFF0AB4 Z*NVMBASE=&900 :ô Memory to use as nvmem d+NVMSIZE=128 :ô Number of NVM locations n&NVMRAM =14 :ô First ram location x: ‚ ã 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 ,CPX #255:BEQ nvmsz 6+PHA:TXA:ADC #NVMRAM:CPX #NVMSIZE-NVMRAM @CLV:TAX:PLA:BCS nvmov JPHA:ROL A:BCS nvmrd T.nvmwr:TYA:STA NVMBASE,X ^$.nvmrd:LDY NVMBASE,X:CLC:PLA:RTS h$.nvmsz:LDY #NVMSIZE-NVMRAM-1:CLC r.nvmov:RTS |]í †Fñ"*SAVE ";fname$;" ";~mcode%;" ";~O%;" ";~go%„&FFFF0000;" ";~load% ÿ