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
called "500 HI-RES MODE" might include some information pertaining to your problem.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
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,024 |
Nodes: | 17 (0 / 17) |
Uptime: | 24:36:54 |
Calls: | 502,213 |
Calls today: | 4 |
Files: | 104,442 |
D/L today: |
3,137 files (255M bytes) |
Messages: | 298,881 |
Posted today: | 4 |