• CBM-510 VIC-II programming

    From B. P. TBC@3:770/3 to All on Sunday, October 28, 2018 20:16:43
    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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From ArcadeAge@3:770/3 to B. P. TBC on Monday, October 29, 2018 10:22:56
    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)
  • From B. P. TBC@3:770/3 to All on Sunday, November 04, 2018 13:56:18
    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+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.

    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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)