Search found 310 matches

by hawk
Sun Jul 28, 2013 4:10 am
Forum: Emulation and Cross Development
Topic: CC65, conio and non-standard screen sizes
Replies: 3
Views: 2270

Thanks for the response Groepaz. After a cursory glance, this looks very similar to what I'm after. It appears to read the screen sizes on an initialise call but it also appears that it needs to be rebuilt for different screen sizes. The other question is how many changes will require to compile wit...
by hawk
Sun Jul 28, 2013 12:44 am
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

OK, I adjusted the paths in my make file to point to the new version of cc65 (2.14.0), and now I'm getting the same error code that you are... dumbledore:Template mike$ make ld65 -C vic20+16k.cfg -v -o ram.prg -vm -m ram.map -Ln ram.lbl crt0.o main.o "~/Documents/RetroComputing/6502/Compilers/c...
by hawk
Sat Jul 27, 2013 9:55 pm
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

I wasn't aware of the changes maintenance author from Uz to Oliver, so thanks for that. Unfortunately, the new build doesn't easily install onto OSX systems yet. It compiled cleanly, however, there was no install option like I think I remember when I built 2.13.3. I'm reluctant to break my existing ...
by hawk
Wed Jul 24, 2013 3:43 am
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

The example I have provided was compiled using 2.13.3. The 'Option' warning is new to me. I've not see that before. That should be solved easily by changing the order of the options in the linker command. ld65 -o ram.prg -C vic20+16k.cfg -v -vm -m ram.map -Ln ram.lbl crt0.o main.o "/usr/local/l...
by hawk
Tue Jul 23, 2013 4:38 am
Forum: Emulation and Cross Development
Topic: CC65, conio and non-standard screen sizes
Replies: 3
Views: 2270

CC65, conio and non-standard screen sizes

Jim has got me playing with cc65 again and I've revisited a project that I'd shelved a long time ago. One of the reasons I shelved the project was because I wanted to use the conio functions in C, however the screen size I am using is non-standard. The conio functions in the default Vic20 library th...
by hawk
Tue Jul 23, 2013 3:40 am
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

I'm not sure if this is what you are after Jim, but here is the project emptied back to a "Hello World" program. http://ubuntuone.com/7AAMTARD5AYD0m4oSi1Sa2 The main error I have in this implementation that I don't have to worry about is the error when the program exits. My program won't e...
by hawk
Sat Jul 20, 2013 6:17 pm
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

I had another break through in my code and got it working the same as a loadable program or an attachable ROM. For the ROM version of my program I needed to add a additional statement to the crt0.s to copy the contents of initialized variables from ROM to RAM where they're used. ; Call module constr...
by hawk
Sat Jul 20, 2013 2:20 am
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

I had a break through Jim. The kernal locations for all the routines called at startup are not all available in the Kernal Jump Table in the VIC-20. Specifically, 3 are not there and need to be changed to call direct to the routine. CINT $E518 IOINT $FDF9 RAMTAS $FD8D The vic.lib code uses a common ...
by hawk
Thu Jul 18, 2013 8:22 pm
Forum: Emulation and Cross Development
Topic: Help needed with cc65 BLK5 cart app
Replies: 18
Views: 5592

Hi Jim, I've been trying to have a look at your problem, however I'm a little time poor at the moment. I can recall getting an Autostart cart image working back when I updated the wiki, however I don't have that code working anymore...poor configuration management. I was working on updating it, and ...
by hawk
Fri Jun 14, 2013 7:55 pm
Forum: Programming
Topic: How to clear Screen and other things.
Replies: 8
Views: 1693

here is a good deal of info on the main functions available: http://www.cc65.org/doc/funcref.html remember you can printf() or cprintf() the petscii chars, like the "reversed heart", as you'd do in basic: printf("\x93 ...... "); // clear the screeen than print something Be cauti...
by hawk
Fri Jun 14, 2013 7:16 am
Forum: Programming
Topic: How to clear Screen and other things.
Replies: 8
Views: 1693

From C you should be able to call clrscr() which calls the commodore ROM functiom I think.

You need to include <conio.h>
by hawk
Sat Jun 08, 2013 6:19 am
Forum: Emulation and Cross Development
Topic: Minigrafik GIMP Plugin Development
Replies: 26
Views: 10336

Being able to edit and save images in a VIC-20 format would be the ultimate goal, however I'm still getting my head around GIMP Plug-ins. I haven't yet learned how to save a file in VIC-20 format yet. That will be my next challenge. My initial goal was to be able to open an image file, select a port...
by hawk
Wed Jun 05, 2013 4:56 am
Forum: Emulation and Cross Development
Topic: Minigrafik GIMP Plugin Development
Replies: 26
Views: 10336

http://www.users.on.net/~hawkeys/mike/retro_computing/vic-20/denial/gimp_plugin/currywurst-PAL.png Here's the updated image. As you can see from this image, it is now the correct size for a Minigrafik image (160x192) and the pixels are no longer square. The aspect ratio can be changed by changing t...
by hawk
Tue Jun 04, 2013 7:14 am
Forum: Emulation and Cross Development
Topic: Minigrafik GIMP Plugin Development
Replies: 26
Views: 10336

OK, so I couldn't wait to test it. :D It turns out that you can display non-square pixels. You have to set the resolution of the pixels at creation, and I got the orientation wrong. 72 x 120 ppi for PAL. You also have to turn the "Dot for Dot" setting OFF in the "View" menu so th...
by hawk
Tue Jun 04, 2013 6:41 am
Forum: Emulation and Cross Development
Topic: Minigrafik GIMP Plugin Development
Replies: 26
Views: 10336

Aspect Ratio of GIMP Pixels

With the current viewer I'm just manually making the aspect ratio 2:1 by painting each pixel twice. A bit of a cludge. A quick bit of investigation tells me that I should be able to set the image resolution at the time of creation and then I can set it appropriately. Next time I'm having a play I mi...