To refer to my post in the other thread:
Mike wrote:- First copy+paste the DATA loader of MINIGRAFIK 4.02 into VICE. This is the most recent version to date.
- SAVE this program as "LOADER" onto a *.d64 image.
- RUN the program. The file "MINIGRAFIK" is written on disk. This is the actual BASIC extension. Up to here, these steps need only be done once.
- LOAD the file "MINIGRAFIK", and RUN it. The VIC shows the start screen again, with slightly less memory available than before. MINIGRAFIK is now active.
There is no need to memorize a certain SYS address to start the extension, as it is already contained in the program. The correct SYS shows up, when you LIST it before starting. This SYS is executed for you, when you type RUN+Return.
Legacy wrote:1) is that for unexpanded VICE ?
No, it isn't. MINIGRAFIK needs at least an 8K RAM expansion. In VICE, look under Settings > VIC Settings ...
2) i dont know how to save as .d64 image on VICE
*.d64 image files contain the data of a whole 5 1/4" disc (one sided).
To create a *.d64 file in VICE:
- File > Attach disk image > Drive 8, you'll be presented with a file selection box.
- In the field 'New Image', enter a name, for example 'MINIGRAFIK', an ID, for example 'MG', select d64, but do not click yet 'create image'.
- Fill in the field 'File name', for example 'minigrafik.d64'.
- Click 'create image'.
- Click 'attach'.
The file 'minigrafik.d64' is now mounted as *.d64 disc image. You can now store files inside this disc image, as if it were a real floppy disc.
Now you can proceed as I said, with:
First copy+paste the DATA loader of MINIGRAFIK 4.02 into VICE. This is the most recent version to date. SAVE this program as "LOADER" onto a *.d64 image. RUN the program.
Now there are two files stored in the disk image file. You can check this with:
Code: Select all
LOAD"$",8 + Return
and
LIST + Return
Finally, you load, and start MINIGRAFIK thus:
Code: Select all
LOAD"MINIGRAFIK",8 + Return
RUN + Return
Then you can try the examples in this thread, using the *.d64 file to store them.
Legacy wrote:Well this thread started as me learning what a vic is and now im into assembly language basics
Some thoughts:
First. While those image files are not something innate related to the VIC, the handling of them needs be well understood if you want to use the VICE emulator efficiently.
Second. It is still not quite clear to me how proficient you are with programming at all. You are touching quite basic questions. Programming in assembly language nearly is 100%
implementation oriented. If you don't have an exact idea how to implement a program, or algorithm, you're lost. While CBM BASIC still is not exactly
problem oriented, you can easily test your ideas, and see if these produce a working program. It shields you in a positive way from the bare metal, as long as there are no POKE's, PEEK's, and SYS's involved.
Third. If you've gained some experience, and see that BASIC is too slow for your needs, you might consider to advance to assembly language. Take your own written BASIC programs. Think about how single BASIC commands could be rewritten in machine code (Hint: you might well need dozens, or more instructions for even a single BASIC command). Sometimes you'll have to re-formulate your program, especially when floating point arithmetic is involved.
...
Finally: I mostly wrote MINIGRAFIK to make hires graphics on the VIC-20 easily be accessible from BASIC, at usable speeds, so it isn't necessary to resort to machine language except in rare cases.
Michael