Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > opening the upper/lower border.
2003-03-14 09:14
Testicle
Account closed

Registered: Sep 2002
Posts: 131
opening the upper/lower border.

i've "coded" a small routine, which should open the upper/lower border.

related to the vic-article it's just to clear the 3rd bit of $d011 when the 25th character-row is drawn.

here the code-snippet:
(starts at scanline $30, only this on irq)

rq1 inc $d019
lda #$1b

.loop lda $d012
cmp #$fa
bne .loop

lda #$13
sta $d011

lda #$30
sta $d012
jmp $ea7e



this works fine in the vice64-emulator, but does not work on ccs64. ?!?

i always heard (and made the same experience) that ccs64 is a little bit better in emulating the c64.

can someone help me? is it a timing-problem?
2003-03-14 10:55
MagerValp

Registered: Dec 2001
Posts: 1055
No, CCS is not better than VICE, and the only thing you can verify your code on is a real C64.

PS: don't forget to clear $3fff.
2003-03-14 10:59
Oswald

Registered: Apr 2002
Posts: 5017
also dont forget to reverse that 3rd bit a few rasterlines later (8 must surely work) ...
2003-03-14 18:47
Testicle
Account closed

Registered: Sep 2002
Posts: 131
ok, i split up the whole thing into two interrupts (one at $30 to set bit 3 in $d011 and one at $fa to clear bit 3) and it works fine in both vice and ccs64.

@MagerValp: i saw several demos on ccs64 where the timing was a little bit better than on vice. this experience i made several times. that's why i prefer ccs64 to check the routines and timings. for example take deus ex machina, the flashing in the intro is perfectly synchronized with the sound on ccs, while on vice you have a little delay.

however, that was not the point of my question. ;-)
my problem is solved.

thanks for helping!
2003-03-14 20:34
LocalH
Account closed

Registered: Jan 2002
Posts: 10
The reason for the unsynced flashing in VICE is due to the sound buffer, the larger the delay you have set, then further off the sync will be. That is probably about the only thing I dislike about VICE.

And yes, CCS64 and VICE are pretty much even. CCS is faster for me, but VICE supports a wider range of drive emulation, enabling some demos to run on VICE that won't run on CCS (+H2K is a prime example).
2003-03-15 12:48
Graham
Account closed

Registered: Dec 2002
Posts: 990
testicle wrote:
"@MagerValp: i saw several demos on ccs64 where the timing was a little bit better than on vice. this experience i made several times. that's why i prefer ccs64 to check the routines and timings. for example take deus ex machina, the flashing in the intro is perfectly synchronized with the sound on ccs, while on vice you have a little delay."

the delay is caused by the size of the sound buffer. go to the sound settings and reduce it for less delay.
2003-03-23 12:49
Merman

Registered: Dec 2002
Posts: 140
Re: VICE and sound, check in Sound settings that playback is on "Exact" rather than "adjusting/flexible". That way you will get perfect sound IF your PC can run at 100%/50fps
2003-03-23 12:55
Testicle
Account closed

Registered: Sep 2002
Posts: 131
ah, thanks! why the hell is this not the default-setting? :-?
2003-03-24 07:17
White Flame

Registered: Sep 2002
Posts: 136
Maybe because a lot of people still have machines that can't run Vice at 100%/50fps, in which case they'd get choppy sound with that setting.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Guests online: 104
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (10)
2 Facet  (9.7)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.041 sec.