arne-cl / frodo-wii

Automatically exported from code.google.com/p/frodo-wii
GNU General Public License v2.0
0 stars 0 forks source link

Saving a Program that has been writen #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
basically ive been digging through afew of the old commodore books with 
programs in them and ive been typing them in to just see what they do.
what ide like to know is if there is a way that i can save the program that 
ive writen(not the state of it). ide like to be able to write a program and 
then right

eg.

100 PRINT "HELLO WORLD"
110 GOTO 100

SAVE "Hello World",8 ? this would normally be the code to save to a TAP

what would be the save code to make the program save as a .t64 or .d64 or 
any of those formats not a .sav???

this would be very helpful as i need to run afew machine codes and have to 
save them as Block A through to I and then have to run Block A and after 
the running of Block A i have to write

sys 49721 (i think something like that),"Block B"

to load the next one(this is so that they get stored in the system memory!
i hope this is all clear.

im using the programming commodore 64 books 1,2,3 & 4

when i write

SAVE "XXXXXXXX",16 or 8( one of the 2) it says 

saving XXXXXXX
Ready!

it should say

Saving XXXXXXXXX
OK
Ready!

if i go to verify the save

VERIFY XXXXXXXXX,8 or 16 i get the message

couldnt find select file.

all of this is being used on the latest version of frodo for wii (via HBC)

Original issue reported on code.google.com by Nathanie...@gmail.com on 14 Nov 2009 at 1:18

GoogleCodeExporter commented 9 years ago
Does it work in Frodo on your host machine? In principle I think it should be
possible to get it working, but it's something I haven't tested. Have you 
inserted an
empty .d64 by the way?

Frodo uses a slightly hacked kernal image, which I believe is the cause of some 
of
the changed messages.

Original comment by simon.ka...@gmail.com on 16 Nov 2009 at 11:27

GoogleCodeExporter commented 9 years ago
what do you mean by does it work in frodo on my host machine, also how do i 
create a 
blank .d64 file???

im using the hmoebrew app frodo for wii, if this helps

Original comment by Nathanie...@gmail.com on 16 Nov 2009 at 11:46

GoogleCodeExporter commented 9 years ago
ok i have a blank image that i downloaded from lemon64 do i just load it 
normally then 
write the code and then use the command

save "Block A",8,1

???

Original comment by Nathanie...@gmail.com on 16 Nov 2009 at 11:58

GoogleCodeExporter commented 9 years ago
I meant running Frodo in Linux, Windows or on a Mac. In general, if it works on 
a
real C64, it should work in the emulator. Disk-saving is something that most 
people
don't use so it might not be implemented (I'm not sure).

Frodo-wii does have the ability to save the entire C64 state (memory and 
everything),
which you could perhaps use instead.

Original comment by simon.ka...@gmail.com on 16 Nov 2009 at 1:24

GoogleCodeExporter commented 9 years ago
looked at that, the problem is that im writing a code from a book that requires 
me to 
save Block A, B, C, D, H & I and then load Block A, and then using the command

sys 49271 "Block B",8

load the other blocks.

the prob is that i can use the command

LOAD " XXXXXXXXXXXXXX ",8

so most of the programs that require you to load a seperate thing wont work.

ill give the blank .d64 image thing ago 2moro( may have to duplicate it for 
every 
disk i want and rename it to)

ill let you know how it went

Original comment by Nathanie...@gmail.com on 16 Nov 2009 at 1:43

GoogleCodeExporter commented 9 years ago
Ok, have tried to save the program by first loading the blank 
.d64 and then using the save command. This didn't work as the 
load just said

Load "disk",8,1
Then some error basically saying that it couldn't read the file.

This is if I try and load via the home and then start option.

When I went insert it just read as ready and then when I told it 
to save to tape the file went from blank to having a save "" 
name being blank. I then tried to open it and it just said error 
file can't be ready or what ever it said before.

I will look further into this blank file idea and see what I can do.

Original comment by Nathanie...@gmail.com on 17 Nov 2009 at 8:55

GoogleCodeExporter commented 9 years ago
The error when I goto start reads

Load "",8,1

?missing filename error

I get this on the one I used to save to tape command. I know 
that won't work cos it asks you to press play and reckon on 
tape deck to start it.

On the blank I havnt edited it get the error

Load "disk",8,1

Searching for disk
?file not found error
Ready.

What am I doing wrong???

Original comment by Nathanie...@gmail.com on 17 Nov 2009 at 9:06

GoogleCodeExporter commented 9 years ago
try LOAD "*",8,1. Frodo emulates tapes as disks, so you'll always be using 
disks.

Original comment by simon.ka...@gmail.com on 17 Nov 2009 at 9:15

GoogleCodeExporter commented 9 years ago
if i type "*" it will try and load the first programe in the images folder, i 
have
roms in there so this wont work. if i go load from the menu(which is alot 
different
from comp menu) i the name of the disk image that i load but, it doesnt like the
file. the only time that the file changed was when i told it to save to tape. 
but it
didnt save the file name hence i get the missing file name error.

this is the emu i use on the comp
http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAcQFjAA&url=http%3A%
2F%2Fwww.ccs64.com%2F&ei=pXECS4WZLI6yngfS9_xm&usg=AFQjCNFAtnVvRea6cGr1p0_XKRM7fg
efxw&sig2=J8TmRG34HDSLVO7gpfAylw

get a copy and see what i mean about the menu.

also that prog allows you to go File, BASIC and then gives save program or laod
program. even this is not what i need.

sorry if im being pedantic, its just i really want a way of write programs that
require the different blocks to deal with high & low res images and all the 
other
built in machine codes that the blocks control.

all i really need is for the menu to allow you to select that the ,8 device is 
a USB
or something or even if it just saves to the images folder inside the app its 
self.

if the commodore use to be able to do it how hard would it be to implement this 
now.

would it just be a simple encoding decoding thingo.

please try and get this feature to work,ty

Original comment by Nathanie...@gmail.com on 17 Nov 2009 at 10:02

GoogleCodeExporter commented 9 years ago
just read this off wikipedia gonna give it a try

The save-with-replace bug

Commodore DOS also offers a "Save-with-Replace" command, which allows a file to 
be
saved over an existing file without the need to first SCRATCH the existing 
file. This
was done by prepending an @ symbol to the file name during the OPEN or SAVE 
operation
- for instance, SAVE "@MY PROGRAM",8. During the Commodore 64 era, this was the
subject of a great deal of controversy, due to bugs in the command's 
implementation
on the 154x and 157x series drives.

maybe this fix it.

page from here
http://en.wikipedia.org/wiki/Commodore_DOS

the laod bit makes sense with what you said, i apologize i was wrong about that.

still i dont see how it is so hard to just trick frodo into letting you use the 
save
command and say ,32 and have itsave to SD card images folder with the name you 
chose.

Original comment by Nathanie...@gmail.com on 17 Nov 2009 at 10:22

GoogleCodeExporter commented 9 years ago
If you want or need this feature, please implement it :-)

I have other tasks in Frodo that I would like to get done, basically improving 
the
networking implementation. This is my spare time, and I do things based on my 
own
interest - I don't get paid to implement Frodo stuff!

Original comment by simon.ka...@gmail.com on 17 Nov 2009 at 10:26

GoogleCodeExporter commented 9 years ago
Will give it a go. I gather I just look into your source code. What would I 
need to edit it and test it???

Original comment by Nathanie...@gmail.com on 18 Nov 2009 at 3:47

GoogleCodeExporter commented 9 years ago
You only need devkitppc and the SDL libs to build it (plus make and similar 
host tools)

Original comment by simon.ka...@gmail.com on 18 Nov 2009 at 5:59

GoogleCodeExporter commented 9 years ago
What do you mean by make and similar host tools???

Original comment by Nathanie...@gmail.com on 18 Nov 2009 at 7:32

GoogleCodeExporter commented 9 years ago
I mean GNU make and other UNIX tools (you need these to use devkitppc for any 
Wii
project)

Original comment by simon.ka...@gmail.com on 18 Nov 2009 at 7:48

GoogleCodeExporter commented 9 years ago
ok, cool, ty will check it out.

Original comment by Nathanie...@gmail.com on 20 Nov 2009 at 2:26

GoogleCodeExporter commented 9 years ago
Marking as wontfix.

Original comment by simon.ka...@gmail.com on 13 Mar 2010 at 7:34