[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving binary files to /RAM



"Simon Williams" <email@DELETE_THIS.luddite.no-ip.com> wrote in message 
news:1gr4l27.10w3ygd1bycnoyN%email@DELETE_THIS.luddite.no-ip.com...
> Is there a [hopefully simple] way to load BIN files from disk and then
> save them to /RAM in Applesoft?
>

By SAVE I assume you mean move.

10 D$=CHR$(4)
20 PRINT D$; "BLOAD  /DISK/BIN"
30 PRINT D$;"BSAVE  /RAM/BIN, A$XXXX, L$XXXX"

OR
this should work but I've introduced a bug in my emulator and can't test it.

10 D$=CHR$(4)
20 PRINT D$; "BLOAD  /DISK/BIN"
25 REM
30 REM GET ADDRESS AND LENGTH
35 REM
40 SA=(PEEK(48826)*256)+PEEK(48825)
50 SL=(PEEK(48860)*256)+PEEK(48859)
60 PRINT D$;"BSAVE /RAM/BIN,A"; SA;",L"; SL


Laine...