English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 24 February 2021, 17:53   #21
orangespider
Registered User
 
Join Date: Feb 2021
Location: Becej / Serbia
Posts: 120
So... I ended up using the system friendly way by reading the ex_EClockFrequency from execbase for the clock and reading gb_current_tot_cclks and gb_current_tot_rows from gfxbase to get the number of rows and cycles per row.

Now the next issue appeared. To get from these to the actual numbers I need, I would have to know:
- is the screen interlaced?
- is the screen NTSC and are the long lines enabled?

I think that if the screen is interlaced, we have gb_current_tot_rows+1 rows every even frame and gb_current_tot_rows rows every odd frame, while if we aren't, we have gb_current_tot_rows+1 for every frame.

I think that if the screen isn't NTSC or if the long lines are disabled, we need to add 1 to gb_current_tot_cclks to get the number of clocks, and if we have a long lines NTSC, we need to add 1 to gb_current_tot_cclks every even scanline and 3 to gb_current_tot_cclks every odd scanline.

If any of those assumptions are incorrect, please correct me. Also, the hardware register with the info I need is read only and I couldn't find that info in execbase or gfxbase so far. Anyone knows where I can get that info?
orangespider is offline  
Old 24 February 2021, 22:20   #22
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,867
Honestly... it is not possible unless you have reliable external frequency source not linked with system clock - proper NTSC and proper PAL are using different system clock and Horizontal timing is different - Vblank is not valid source.

After while i have idea - perhaps interrupt from floppy INDEX signal can be used to distinguish between NTSC and PAL machines (timer counting ticks between interrupts, after some averaging it could be OK especially if floppy will be without disk inside).

Last edited by pandy71; 26 February 2021 at 12:11.
pandy71 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to switch PAL Rev 6A A500 between PAL/NTSC? BarryB support.Hardware 10 03 August 2016 14:41
Pal - Ntsc dr.mushroom New to Emulation or Amiga scene 26 12 April 2014 09:48
NTSC A500 Pal/NTSC mod pics kipper2k Hardware pics 2 29 March 2009 07:56
NTSC to PAL ...what's next? NfernalNfluence support.Hardware 7 28 July 2007 12:19
Ntsc / Pal killergorilla project.SPS (was CAPS) 3 09 July 2003 18:25

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:27.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10607 seconds with 12 queries