Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
2 user(s) are online (2 user(s) are browsing Forum)

Members: 1
Guests: 1

wawa, more...

Browsing this Thread:   1 Anonymous Users



(1) 2 3 »


lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1506
Offline
Recently I've been making 68k game ports, and when I tested them with the AROS ROM I found that they didn't work properly. I checked, and AROS only implements a limited subset of lowlevel.library. I used to rely on it extensively, but right now I only use the timer interrupt from it. The RKRM Devices manual has an example for cia.resource, which could be reused to implement AddTimerInt() RemTimerInt() StartTimerInt() and StopTimerInt():
http://amiga.sourceforge.net/amidevhe ... ource/ex01_cia.resource.c
(Of course this is for 68k only, the rest of the architectures need a generic timer task.)
Are there any developers who would be interested in incorporating this into AROS' lowlevel.library?

Posted on: 5/17 2:56
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2010/8/30 7:20
Group:
Member
Posts: 881
Online
maybe its too much to ask, but if its straight forward couldnt you implement it yourself?

if its too much to register access to the repo and dev ml, then you can provide me with a diff or whatever details and ill commit it, after asking toni and kal for review and approval.

Posted on: 5/17 14:12
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2010/8/30 7:20
Group:
Member
Posts: 881
Online
also, as im repeating, its pretty easy to set up aros build system and compile it for testing changes, but i can test it for you if need be, just takes longer.

Posted on: 5/17 14:14
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Member
Posts: 2018
Offline
Quote:

BSzili wrote:
Recently I've been making 68k game ports, and when I tested them with the AROS ROM I found that they didn't work properly. I checked, and AROS only implements a limited subset of lowlevel.library. I used to rely on it extensively, but right now I only use the timer interrupt from it. The RKRM Devices manual has an example for cia.resource, which could be reused to implement AddTimerInt() RemTimerInt() StartTimerInt() and StopTimerInt():
http://amiga.sourceforge.net/amidevhe ... ource/ex01_cia.resource.c
(Of course this is for 68k only, the rest of the architectures need a generic timer task.)
Are there any developers who would be interested in incorporating this into AROS' lowlevel.library?


Well, if the code uses cia timer stuff, it would need someone with amigaos/m68k knowledge to implement properly. I have done minor work in the lowlevel code before but it is quite messy in there.

I would like to also see it using the hpet's at some point but don't know if I will have time to work on it personaly.

Posted on: 5/17 20:21
_________________
Click to see original Image in a new window
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2004/4/7 4:26
Group:
Member
Posts: 4332
Offline
IMHO this is a perfect subject for EAB. There are dozens of potential AROS developers who just overlooked or never considered AROS for being 'too much x86' for their tastes. Maybe they wouldn't be unhappy to do some work on M68K and better refine it.

Posted on: 5/18 0:35
_________________
p.bes
Icaros Desktop AROS distribution mantainer
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1506
Offline
@Kalamatee
The code I linked does what the lowlevel.library timer can do, it just needs a slightly different interface. The oldest version of refkeen I used this code because I didn't know about the lowlevel.library timer. I don't have this version anymore.

Posted on: 5/18 4:17
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Member
Posts: 2018
Offline
Quote:

BSzili wrote:
@Kalamatee
The code I linked does what the lowlevel.library timer can do, it just needs a slightly different interface. The oldest version of refkeen I used this code because I didn't know about the lowlevel.library timer. I don't have this version anymore.


I've started to implement this. Please check/test the code and let me know if you see anything obviously broken.
Starttimerint is not yet implemented.

Posted on: 5/18 7:56
_________________
Click to see original Image in a new window
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1506
Offline
Awesome! At a brief glance you don't seem to be using the timer handle at all? There will be no way to start multiple timers without it. I'll check it out in detail later.

Posted on: 5/18 9:22
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Member
Posts: 2018
Offline
Quote:

BSzili wrote:
Awesome! At a brief glance you don't seem to be using the timer handle at all?


Indeed.

Quote:

There will be no way to start multiple timers without it. I'll check it out in detail later.


From what I've read - you aren't supposed to be able to, only one interrupt is handled. If you can test on amigaos and confirm/deny this (and possibly check what it returns as the handle) I can look at adapting it as necessary.

Posted on: 5/18 9:40
_________________
Click to see original Image in a new window
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1506
Offline
Oops, you are absolutely right. I missed this part of the documentation:

Quote:

Only a single CIA timer will be allocated by this routine. So this
routine may only be called once without an intervening call to
RemTimerInt().


Although these two seem to be somewhat contradicting it:

Quote:

If your program is to exit without reboot, you MUST match all
calls to this function with calls to RemTimerInt() before exiting.

Even if you only use the function once in your program; checking
the return value will make your program more tolerant for
mulititasking on the Amiga computer platforms.

Why the heck is the handle there if you can't allocate multiple timers? It might as well return a boolean :\
Just to be sure I'll check with a small test program later, but one timer is enough for me and given what's in the documentation, I hardly think anybody dared to set up multiple interrupts with it.

Posted on: 5/18 9:57
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer



(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4332
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3887
4 nikolaos
nikolaos
3677
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2599
7 mazze
mazze
2202
8 clusteruk
clusteruk
2065
9 Kalamatee
Kalamatee
2018
10 damocles
damocles
1789
© 2004-2017 AROS Exec