Login
Username:

Password:

Remember me



Lost Password?

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

Members: 0
Guests: 1

more...
   All Posts (BSzili)


(1) 2 3 4 ... 151 »


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
Offline
I grabbed the 05/19 nightly, gave it a test, and it doesn't seem to work. I uploaded a small test program that was included on the ADCD. On AmigaOS it shows a negative number for the deviation when I press Start, on AROS it always stays 0.

Attach file:


tgz TIMERINT.TGZ Size: 10.86 KB; Hits: 15

Posted on: 5/19 12:52
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
Offline
Indeed it is, great job and thanks! I'll grab the next nightly tomorrow and give it a go.

Posted on: 5/19 3:07
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
Offline
I checked it and the second nested AddTimerInt returns NULL, so there really can't be more than one simultaneous timers. The first one seems to return some pointer, so this is an arbitrary limit :)

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


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
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


Re: lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
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:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
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


lowlevel.library enhancements

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
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: AROS68K: Development Methodology And Bounties

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
Offline
It's almost as if he wanted to force GitHub down the throats of AROS developers at all cost.

Posted on: 5/15 10:00
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: Off Topic: Scientists want to conquer American Politics!

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
Offline
If there's something aros-exec needs, that's more buzzfeed links.

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


Re: AmiSSL 4.1 Release

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1504
Offline
@kas1e_ar
AmiSSL was good because you could switch to more up to date (and secure) OpenSSL versions without recompiling every single program that uses it. Enter OpenSSL 1.x, the API changed, so they had to do the same with AmiSSL to update it.

Posted on: 3/17 6:40
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 ... 151 »




Search
Top Posters
1 paolone
paolone
4280
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3887
4 nikolaos
nikolaos
3670
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2571
7 mazze
mazze
2200
8 clusteruk
clusteruk
2055
9 Kalamatee
Kalamatee
2010
10 damocles
damocles
1789
© 2004-2017 AROS Exec