Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » CBM-510 VIC-II programming
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
CBM-510 VIC-II programming [message #375073] Sun, 28 October 2018 15:16 Go to next message
Anonymous
Karma:
Originally posted by: B. P. TBC

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
Re: CBM-510 VIC-II programming [message #375088 is a reply to message #375073] Mon, 29 October 2018 13:22 Go to previous messageGo to next message
wwww.leser is currently offline  wwww.leser
Messages: 21
Registered: March 2013
Karma: 0
Junior Member
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+Graphic s

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.
Re: CBM-510 VIC-II programming [message #375423 is a reply to message #375088] Sun, 04 November 2018 07:56 Go to previous message
Anonymous
Karma:
Originally posted by: B. P. TBC

ArcadeAge írta:
>> 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+Graphic s
>
> 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.

Thank you!!
I found the solution on that page: if I poke 3 to the register 56838,
the VIC-II will see the bank 0. The screen ram's address is 61440, the
bitmap's address is 49152, and the color ram stay in bank 15, at address
54272.
The "500 HI-RES MODE" program was very useful for me!

Many thanks!

---
Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta.
https://www.avast.com/antivirus
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Looking moremore optimizations!
Next Topic: Official FAQ comp.binaries.cbm (semimonthly posting)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Mar 29 05:18:46 EDT 2024

Total time taken to generate the page: 0.30218 seconds