** New Frontiers in VIC-Hires-Graphics, Part 4

Basic and Machine Language

Moderator: Moderators

armypavarmy
Vic 20 Drifter
Posts: 38
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: New Frontiers in VIC-Hires-Graphics, Part 4

Postby armypavarmy » Thu Nov 30, 2017 1:29 am

Hello ..........Mike
I have read all articles on the frontieres hires news

I've scribbled all the programs and demos

i would like to try using version 208208 24K

The program that adds the graphical commands

is no longer available on the site mentioned in Article 4

Is it still possible to have it?

Thanks ....... greetings ............. Armando

armypavarmy
Vic 20 Drifter
Posts: 38
Joined: Wed Oct 02, 2013 1:54 am
Location: Italy

Re: ** New Frontiers in VIC-Hires-Graphics, Part 4

Postby armypavarmy » Thu Nov 30, 2017 5:44 am

Sorry I did not explain
this is what I would like to have
but the link can not be scribbled

The demo file stops at line 40
reset to exit.

Thanks ...... Armando
Mike wrote:I could provide a pixel-set, and line-drawing routine.

Here we go:

http://cid-05ef0a8eae2a4f4a.skydrive.li ... -05-14.zip

The archive contains 'plot.prg', 'line.prg', and sources. Just drop the two '*.prg' files into the same directory, where '208208-24k.prg' resides, drop the latter into VICE (incidently mounting the surrounding directory), and then, for example LOAD"LINE.PRG",8 and RUN.

I lifted the line-routine from MINIGRAFIK. Only minimal changes were necessary.

Feel free to include the routines into your display program.

User avatar
Mike
Herr VC
Posts: 3017
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: ** New Frontiers in VIC-Hires-Graphics, Part 4

Postby Mike » Thu Nov 30, 2017 11:35 pm

Hi, Armando.

I had to ask tokra, if he still had a copy of those two demonstration programs I sent him 7 years ago. That turned out with a positive result - for myselves, I couldn't find no trace anymore of those on my HDD:

208x208_demo.zip
(3.59 KiB) Downloaded 4 times

'plot.prg' contains the pixel plot routine converted to machine code, so pixels can be set at a bearable speed - instead of doing complicated calculations and table look-ups in BASIC that take ages just for one single pixel. A parameter allows to set, reset or invert pixels. 'line.prg' adds in the line routine lifted from MINIGRAFIK, and draws random lines on the screen.

As I wrote earlier in the translated PM, you'll first have to run the program '208208-24k.prg' with at least a +24K RAM expansion. This leaves you with a start-up screen with 7000 or so bytes free, with the machine code installed at the correct place, and memory allocated for the bitmap. From there, run 'plot.prg' or 'line.prg'.

...

Mind you, this mode only runs on PAL VIC-20's and the display routine only leaves 10% or so remaining CPU power, so this mode is not exactly fun to work with. For me, it merely served as stepping stone on the way to MAXIGRAFIK.




P.S. you're still stuck for an answer to my questions in the MG lineart thread. :(


Return to “Programming”

Who is online

Users browsing this forum: toby405 and 4 guests