English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 23 November 2010, 08:00   #1
oRBIT
Zone Friend
 
Join Date: Apr 2006
Location: Gothenburg/Sweden
Age: 48
Posts: 339
Any skilled asm-coder with too much sparetime? :-)

If anyone feels up for the task, here's what I'd need some help with:

* A piece of code (compatible with Asm-One) that setups a 50 or 60Hz Interrupt, that works on non-standard screenmodes aswell.
Something like this would be awesome:

lea MyInterrupt,a0 ; Pointer to my code that should be executed
moveq #0,d0 ; 0=50hz, 1=60Hz
jsr StartInterrupt
--
jsr StopInterrupt
--

68020 instructions allowed. It would be even better if the interrupts works with AmigaOS4+ (but this is not required).
Assuming the user runs a 72Hz screenmode, is it possible to trigger an interrupt (as above) when vblank starts? Or is there no way of deciding when the interrupt triggers during a frame?

Credits will be given!
oRBIT is offline  
Old 28 November 2010, 17:13   #2
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
The normal AddIntServer in Exec to hook onto VERTB should work? If the gfx card/extra mode is OS-friendly. Maybe SetIntVector would also work, if it's been patched.

I only used this at the very start of my Amiga endeavors, so I don't have the code here and I can't be a$$ed to try to find it... :P
Photon is offline  
Old 29 November 2010, 07:45   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
VERTB frequency and RTG vblank frequency rarely matches (if "non-standard" also includes RTG).

VERTB is fine as long as mode is custom chipset mode. ("standard" or not)

Some RTG cards may not support real vblank but emulated one which isn't synced to display.
Toni Wilen is online now  
Old 29 November 2010, 21:15   #4
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
Quote:
Originally Posted by Toni Wilen View Post
VERTB frequency and RTG vblank frequency rarely matches (if "non-standard" also includes RTG).
Yep.
Quote:
Originally Posted by Toni Wilen View Post
VERTB is fine as long as mode is custom chipset mode. ("standard" or not)
Quote:
Originally Posted by Toni Wilen View Post
Some RTG cards may not support real vblank but emulated one which isn't synced to display.
Yep.

But surely there must be a way of using OS services to hook on to a "task" that starts when current screen starts displaying? You mean WaitTOF etc (for example) still waits for a customchip IRQ, even if a gfx card is used?

But maybe they are different from accelerators and other cards that patch the OS routines.

Indivision's extra screenmodes, do they patch OS services to hook onto the VSYNC? AGA/Trisync modes?

If no cards do it, then no system-friendly software could run flawlessly in the higher resolutions. (And yes I know, most OS-friendly software don't need to sync their redrawing to the Top Of Field. ) But anyway. Seems a strange omission if true.
Photon 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
Repairman/skilled user on the east coast U.S.A. Synthesize Me support.Hardware 14 30 August 2011 01:49
Help Need a Coder for some CPP cosmicfrog support.Other 0 29 April 2010 07:08
Des-Coder 1.0 redblade support.Apps 0 28 April 2009 14:08
Skilled people who wants to help in CPLD programming rkauer Coders. General 4 05 July 2008 01:25
Looking for a 68k amiga coder anakirob Coders. General 0 15 October 2004 05:22

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 18:56.

Top

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