>Scuse me for the real simple question here but...
>How would one use Basic to patch a few bytes in a file? (if possible)
>I want to change (for example) a sys16 file at location
>000007D7 from 6C to 3C
>00001408 from 0B to 18
>00001409 from AF to 6B
>plus about 100 more..
>Does/Can one use peek or ? (I last took Basic in College in 1979...)
The command is POKE addrs,value. Remember to use decimal, not hex. Here's a
BASIC routine to do exactly what you show above...
10 READ A,V
20 IF A=0 THEN 40
30 POKE A,V:GOTO 10
40 END
50 DATA 2007,60,5128,24,5129,107,0,0
The PEEK expression is used to obtain the contents of a memory location.
Before running the above program, you could do this:
]PRINT PEEK(2007)
and the response would be...
108
After running the program...
]PRINT PEEK(2007)
60
]_
(hey...I can't print a flashing block on the net...so what...you get the point)
--Dave Althoff, Jr.
(Certified Applesoft Ace)