English Amiga Board


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

 
 
Thread Tools
Old 11 June 2016, 11:08   #61
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 617
Quote:
Originally Posted by meynaf View Post
If by "serious" you understand "business" then no (hopefully ?).

Else, yes, maybe.
I mean, while demos and some games can be satisfied with os killing stuff, utilities and large projects (like a big game over 100MB in size) need to run under os.
Are there such projects now ? Well, there are a few game projects here and there. My personal current intent is to write a multi-format audio player. If i get some nice incentive i may eventually be porting another Atari ST game as well.
I completely agree
alpine9000 is offline  
Old 05 December 2018, 12:35   #62
ross
Sum, ergo Cogito

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,335
Time has passed since the last post about the topic.
I've read everything but I still not convinced on what is the best solution and that works on most hardware and KSs.

Using 'calculates time difference passed through the TOD and update' seems the best but has a problem:
not always the TOD is tied to the same source, can be power supply frequency or video v-frequency, so machine type dependent.
To complicate things it may happen that it's granted to the user to change in real time the vertical screen frequency...

battclock.resource works only on KS2.0+.
HW bang the RTC seems unaffordable.
A full WHDl slave a bit excessive (anyway require 2.0).

What is left? A system call for "setclock load"?
Who has tried something like that, what did you opt for?
(it is absolutely acceptable and understandable to not care about it and not restore the date/time )
ross is offline  
Old 05 December 2018, 17:41   #63
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 45
Posts: 3,321
Don't kill the OS and this problem will magically go away
meynaf is offline  
Old 05 December 2018, 17:55   #64
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 50
Posts: 1,083
Quote:
Originally Posted by ross View Post
Time has passed since the last post about the topic.
I've read everything but I still not convinced on what is the best solution and that works on most hardware and KSs.

Using 'calculates time difference passed through the TOD and update' seems the best but has a problem:
not always the TOD is tied to the same source, can be power supply frequency or video v-frequency, so machine type dependent.
To complicate things it may happen that it's granted to the user to change in real time the vertical screen frequency...

battclock.resource works only on KS2.0+.
HW bang the RTC seems unaffordable.
A full WHDl slave a bit excessive (anyway require 2.0).

What is left? A system call for "setclock load"?
Who has tried something like that, what did you opt for?
(it is absolutely acceptable and understandable to not care about it and not restore the date/time )
You want to set correct time, after quiting? I never need this, but the easiest way for me is add counter to VBI interrupt addq.l #1,Counter, and update clock time at exit.
Don_Adan is offline  
Old 05 December 2018, 18:58   #65
ross
Sum, ergo Cogito

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,335
Quote:
Originally Posted by meynaf View Post
Don't kill the OS and this problem will magically go away
If I could do it I would do it but sometimes it's impossible when you have to apply patch to old and badly written stuff ..

Quote:
Originally Posted by Don_Adan View Post
You want to set correct time, after quiting? I never need this, but the easiest way for me is add counter to VBI interrupt addq.l #1,Counter, and update clock time at exit.
Yes, I had thought about it, but often VBL IRQs are in more (scattered) routines or disabled or unused () or is simply inconvenient to insert a counter in a specific part.
I was looking for a more general solution to be applied quietly at the system reanimation

Last edited by ross; 05 December 2018 at 19:15.
ross is offline  
Old 05 December 2018, 19:36   #66
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 45
Posts: 3,321
Quote:
Originally Posted by ross View Post
If I could do it I would do it but sometimes it's impossible when you have to apply patch to old and badly written stuff ..
Depends how heavily you accept to patch...
What makes it so difficult in your case ?
meynaf is offline  
Old 05 December 2018, 20:08   #67
ross
Sum, ergo Cogito

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,335
Quote:
Originally Posted by meynaf View Post
Depends how heavily you accept to patch...
What makes it so difficult in your case ?
Completely destroyed system areas. Idea is to delocate everything and recover at exit, RTC time included.

Yes I know, WHDl exists for this but I want to experiment
ross is offline  
Old 05 December 2018, 20:34   #68
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 617
I ended up leaving the OS running. I had a pretty decent clock restore routine that worked most of the time, but I could never crack the nut of things like network stacks.

And when the OS is running, surprising as it sounds, it provides all these really useful features
alpine9000 is offline  
Old 05 December 2018, 20:46   #69
ross
Sum, ergo Cogito

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,335
Quote:
Originally Posted by alpine9000 View Post
I ended up leaving the OS running.
Well, code is your for your game, so you could do it

Quote:
I had a pretty decent clock restore routine that worked most of the time
Based on? It's available?

Quote:
but I could never crack the nut of things like network stacks.
Yes, this can be really a problem.

Quote:
And when the OS is running, surprising as it sounds, it provides all these really useful features
Yes, I have a pending patch where I managed to leave the system active and everything was much simpler
ross is offline  
Old 05 December 2018, 21:04   #70
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 617
Quote:
Originally Posted by ross View Post
Based on? It's available?
I am pretty sure someone posted the code on here is a thread very similar to this one, but at least an initial version made it into blocky skies:

https://github.com/alpine9000/blockyskies/blob/master/game/os.i
alpine9000 is offline  
Old 05 December 2018, 21:07   #71
ross
Sum, ergo Cogito

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,335
Quote:
Originally Posted by alpine9000 View Post
I am pretty sure someone posted the code on here is a thread very similar to this one, but at least an initial version made it into blocky skies:

https://github.com/alpine9000/blocky...ster/game/os.i
Ah, ok, is TOD based.

Thanks
ross is offline  
Old 05 December 2018, 21:55   #72
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 45
Posts: 3,321
Quote:
Originally Posted by ross View Post
Completely destroyed system areas. Idea is to delocate everything and recover at exit, RTC time included.
The solution might be preventing the destruction of system areas.
Why does it happen ? Code and/or data at absolute addresses maybe ?
meynaf is offline  
Old 05 December 2018, 22:49   #73
ross
Sum, ergo Cogito

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,335
Quote:
Originally Posted by meynaf View Post
The solution might be preventing the destruction of system areas.
Why does it happen ? Code and/or data at absolute addresses maybe ?
Yes, both, and is a pretty common situation if you want the original code to work in a low memory condition
(like with only 512kb ram) AND the same code in a 'modern' machine.
But anyway is only a curiosity of mine to find a valid solution for time/clock stuck if you stop system IRQ2 from happening.
And maybe TOD is the best choice available.

I know you are a big sustainer of a proper request of resources before hw banging (and you are right!)
but sometime is too hard or time consuming to avoid a dirty patch, or simply not as fun as get your hands dirty and find new solutions
ross 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
startup/system takeover sidewinder Coders. General 15 28 February 2016 17:33
time clock prob a2000 source Hardware mods 11 07 August 2011 14:16
A1200 Real Time Clock Eclipse support.Hardware 4 22 March 2011 03:18
App to update Amiga System time from web time?? DDNI request.Apps 2 31 December 2007 08:21
Reading the Real Time Clock girv Coders. General 5 04 September 2007 19:30

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 04:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.07375 seconds with 15 queries