Subj : Re: CBM-510 VIC-II programming
To : B. P. TBC
From : ArcadeAge
Date : Mon Oct 29 2018 10:22 am
On Sunday, October 28, 2018 at 8:16:40 PM UTC+1, B. P. TBC wrote:
> Hi all!
> Can anyone help me with VIC-II programming?
> I previosly wrote a small BASIC program for Commodore 64, which switch
> to bitmap mode, clear the screen, an put some pixel to the screen. I
> tried to port it to CBM-510. I modified the memory addresses, but I am
> in trouble with memory pointers, because the CBM-510's memory layout is
> different. I think, there is no RAM in bank 15, only there are ROMs,
> registers and I/O space.
> Here is the original C64-program:
> 110 poke 53265,peek(53265) or 32
> 115 poke 53272,peek(53272) or 8
> 120 for i=1024 to 2023
> 130 poke i,16
> 140 next i
> 210 for i=8192 to 16191
> 220 poke i,0
> 230 next i
> 310 poke 8192,255
> 320 poke 8195,170
> In the line 110 I switch to bitmap mode, and in the line 115 I set up
> the bitmap memory to 8192. After that, I fill the screen memory with
> "16" (00010000 = black background and white foreground), and from the
> line 210, I clear the bitmap. But in the CBM-510-version, I don't know,
> where is the correct place for the bitmap memory?
> Here is the CBM-510 version:
> 110 poke 55313,peek(55313) or 32
> 115 poke 55320,peek(55320) or 8
> 120 for i=53248 to 54247
> 130 poke i,16
> 140 next i
> 210 for i=8192 to 16191
> 220 poke i,0
> 230 next i
> 310 poke 8192,255
> 320 poke 8195,170
> But it doesn't work. It switch to bitmap mode, clears the screen memory,
> but there are something garbage instead of the graphics...
> (The address of the VIC-II on the CBM-510 is greater by 2048, than the C64.)
> Can anybody help me?
>
> ---
> Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta.
>
https://www.avast.com/antivirus
Hi!
Are you acquainted with David Viner's web page?
https://www.davidviner.com/cbm6.html?name=500+Hi-Res+Graphics
He's made available a lot of interesting material--in particular, the file
called "500 HI-RES MODE" might include some information pertaining to your
problem.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)