| |
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?
|
|
| |
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.
|
| |
Oswald
Registered: Apr 2002 Posts: 5017 |
also dont forget to reverse that 3rd bit a few rasterlines later (8 must surely work) ... |
| |
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!
|
| |
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). |
| |
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. |
| |
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 |
| |
Testicle Account closed
Registered: Sep 2002 Posts: 131 |
ah, thanks! why the hell is this not the default-setting? :-?
|
| |
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. |