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 > NTSC Raster Positions
2023-09-26 15:46
TWW

Registered: Jul 2009
Posts: 555
NTSC Raster Positions

Good afternoon gents.

Is Rasterline #$00 to #$13 located in the lower border on NTSC machines when bit 7 of $d011 is cleared?

Tried to do a vsync (bit $d011 + bpl/bmi) and turned to debug borders and had to wait for rasterline #$14 before it was in the top border.

On PAL it works as expected though.
2023-09-26 18:36
chatGPZ

Registered: Dec 2001
Posts: 11510
You have basically provided the answer in your question - just try it in VICE, it does the right thing in that regard for sure :)
2023-09-27 21:53
Monte Carlos

Registered: Jun 2004
Posts: 370
Guess, you had the BPL/BMI in the wrong order.
2023-09-27 21:57
chatGPZ

Registered: Dec 2001
Posts: 11510
Quote:
just try it in VICE
2023-09-28 08:46
Krill

Registered: Apr 2002
Posts: 3083
What GPZ said. The NTSC peculiarity to have the top visible line not be 0 while line 0 is visible somewhere in the lower border has long been implemented in VICE, and properly.

This kind of basic stuff is never an emulation error, just like uninitialised memory in user programs is the culprit in 99% of reported problems. =)
2023-09-28 09:21
TWW

Registered: Jul 2009
Posts: 555
@ chatGPZ: Yepp, was trying it on Vice (Hence the debug borders), but never knew about this NTSC Bahaviour so figgure'd I'd ask.

@ Monte Carlos: Nah, bit 7 was cleared, but also tried the other way just to see what happened, ond it only moved the line to 256 instead of 262/263

@Krill: Yeah, I figgured as much, but it has been stated that one should never trust an emulator :D

Either way, thanks for confirming. At least line #$0032 is still in the same place :)
2023-09-28 09:36
tlr

Registered: Sep 2003
Posts: 1807
Quoting TWW
@ chatGPZ: Yepp, was trying it on Vice (Hence the debug borders), but never knew about this NTSC Bahaviour so figgure'd I'd ask.

Quoting TWW
@Krill: Yeah, I figgured as much, but it has been stated that one should never trust an emulator :D

Agreed, you shouldn't trust it blindly. Always good to ask.
2023-09-28 14:16
chatGPZ

Registered: Dec 2001
Posts: 11510
Not trust blindly indeed. But for basic stuff like this there is a 99,999% chance VICE is doing the right thing :)
2023-09-28 23:18
Fungus

Registered: Sep 2002
Posts: 746
I recall bugging groepaz ages ago to fix the vertical blanking area to be on the correct lines. So they should be correct at least for NTSC 64, I never had an old (5 lum) VIC to test so if it's correct or not I have no idea. Same for R56A VIC, could be correct might not be, but those are rare and who cares.
2023-09-29 00:18
chatGPZ

Registered: Dec 2001
Posts: 11510
In the meantime i ported a bunch of the test programs to NTSC too (regular 65 cycle) and verified they work on the real thing as well as in VICE - so it should be quite ok :)
2023-09-29 07:36
Fungus

Registered: Sep 2002
Posts: 746
Right on.

Did you ever got those other VIC variants yourself? Or maybe C0?
 
... 2 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
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
v3nt0r/ibex-crew
Ko-Ko
Guests online: 401
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Uncensored  (9.5)
9 Wonderland XIV  (9.5)
10 No Bounds  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Cover Designers
1 Duce  (9.8)
2 Electric  (9.8)
3 Junkie  (9.6)
4 The Elegance  (9.5)
5 Mermaid  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.054 sec.