Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
145 user(s) are online (108 user(s) are browsing Forums)

Members: 1
Guests: 144

balaton, more...

Headlines

Forum Index


Board index » All Posts (LiveForIt)




Re: Infinity Music Player works under AOS4!!!
Home away from home
Home away from home


@Primax

It looks like you found OS3.x version of playsid.library, not the OS4.x version,
how OS4 libraries works is little different.
AmigaOS4 version does not need the JMP table, but if excluded the library can’t be used by 680x0 programs.
AmigaOS4 programs can use 68K libraries, but it’s not simple, you will need to create a 1.main file, or you need to call emulate function on the JMP table, quite inconvenient. And of course, its slower than a native PowerPC library.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: My Amiga Projects
Home away from home
Home away from home


@MartinW

Heretic II, is a story driven game, it’s a bit different.

While first 3D games, often lacked a story, or it was so important to gameplay.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Amiga38 Germany
Home away from home
Home away from home


@flash

PowerMac's are way too old now. it needs to be previous Power blade severs, LOL

I hope the Acube-Systems laptop project becomes real at good price, a lot of the cost was covered by a few bountys.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Amiga38 Germany
Home away from home
Home away from home


@balaton

Yeah you're hitting the nail right on the head there, well there are cheap PowerPc’s around or power I could say, that you can pick up right now for a very good price, these are the previous generation of servers that are being replaced by the new latest servers, these are actually really cheap because they have become undesirable, and they have no use outside the server room, but it could be modified to become desktop machines, the form factor is not ideal, they are generally noisy, because they use small fans, we would have to figure out how to turn those into desktop computers, I mean a power eight or a power 7, are beast of CPUs even today, Power 9 is probably a bit more expensive, and power 10 is probably too expensive.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@TSK and@jabirulo

thanks for help, I have look at it, when get the time.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@TSK

I my case, I need to know how long button was pressed,
if user needs a long press or a short press, using a timer means button press time is fixed.

Also I can't use Delay() as it blocks the event loop,
as I need to keep track of the timer signals.

This why my code got lot more complicated, when I can’t have event down, and event up.

so the code, remember when the button was presses, then continues checking time passed, until x amount time has gone by, then it simulate button released. and does that for etch button. So code changed from being event driven, to become a pull driven. Not as bad as busy loop, buts not ideal.

As you point out there is logical error that BUTTON_UP is the same as BUTTON_PRESSED_CONFIRMED, as you pointed out, BUTTON_PRESSED_CONFIRMED should happen when mouse inside button and there is a BUTTON_UP event, what I want is unconditional BUTTON_UP event, as Reaction does not use same event handling code and is black box, from my point of view, this kind of things can be problematic.


Edited by LiveForIt on 2023/10/4 12:01:16
Edited by LiveForIt on 2023/10/4 12:02:54
Edited by LiveForIt on 2023/10/4 12:06:14
Edited by LiveForIt on 2023/10/4 12:08:18
Edited by LiveForIt on 2023/10/4 12:15:28
Edited by LiveForIt on 2023/10/4 12:24:57
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@kas1e

its a avtive low signal on DFF016, i will swap the bit states.

and also it looks like AmigaOS4.1 is emulates left mouse press just fine.. (but it should be a option to take over I think)

Its Port2 / Joystick port, AmigaOS does not emulate.


Edited by LiveForIt on 2023/10/3 20:33:08
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@Kas1e

Now that I have established that it is doing something, perhaps its doing something wrong, but at least look at code, before you say it’s doing nothing.

Perhaps the question is why is it in preferences, and answer is simple I had no where else to put it.
as you can see some buttons are not gray, while Nalle Puh is active, this means you can change the settings while Puh is running, and you should be able to emulate joystick / mouse presses in hardware registers by pressing the buttons.

Amiga hardware is messy some buttons are in DFF016 and others are in CIAA / PRA register.

So, what are you having problems with CIAA / PRA or do you have problems with DFF016, or is there something else your having problems with? Perhaps some misunderstanding.


Edited by LiveForIt on 2023/10/3 17:50:14
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@kas1e

“WMHI_GADGETDOWN” is not working so I had to emulate button up/down by timer. this why perhaps your confused.
Simple thing to do in Gadtools become becomes quite complicated in Reaction, because of that.

I severe I never use reaction again, for anything tiny bit complicated.

void IO_BUTTONS_DOWN(ULONG ID)
{
    switch( 
ID )
    {
        case 
GAD_JOY1_BUTTON1:
            
gettimeofday(&button_press_time[0], NULL); 
            
ciaa_pra |= PA6

            break;

        case 
GAD_JOY1_BUTTON2:
            
gettimeofday(&button_press_time[1], NULL); 
            
potgor |= B10

            break;

        case 
GAD_JOY2_BUTTON1:
            
gettimeofday(&button_press_time[2], NULL); 
            
ciaa_pra |= PA7
            break;

        case 
GAD_JOY2_BUTTON2:
            
gettimeofday(&button_press_time[3], NULL); 
            
potgor |= B14
            break;
    }
}


IO_BUTTONS_UP is handled by timer because I had to workaround for Reaction (so you find it timer.c)

This perhaps why you think the function is not used?

void IO_BUTTONS_UP()
{
    
int timeout 500000;

    
struct timeval current_time;
    
gettimeofday(&current_timeNULL); 

    if ( (
ciaa_pra PA6) && (is_button_time( &current_time0timeout )) )
    {
        
ciaa_pra &= ~PA6
    }

    if ( (
potgor B10 ) && is_button_time( &current_time1timeout) )
    {
        
potgor &= ~B10
    }

    if ( (
ciaa_pra PA7) && is_button_time( &current_time2timeout) )
    {
        
ciaa_pra &= ~PA7
    }

    if ( (
potgor B14) && is_button_time( &current_time3timeout) )
    {
        
potgor &= ~B14;
    }
}



potgor is one of the hardware registers is DFF016.

http://amigadev.elowar.com/read/ADCD_ ... anual_guide/node018B.html

the custom register is in PUH.c

that you find in

https://github.com/khval/NallePuh/blob ... 3253ce91bae421/PUH.c#L774


Edited by LiveForIt on 2023/10/3 17:17:59
Edited by LiveForIt on 2023/10/3 17:19:56
Edited by LiveForIt on 2023/10/3 17:21:25
Edited by LiveForIt on 2023/10/3 17:25:21
Edited by LiveForIt on 2023/10/3 18:56:34
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@kas1e

Pretty sure it did something in Deluxe Galaga AGA
(The game is not playable),
so perhaps what your doing is different.


Edited by LiveForIt on 2023/10/3 15:41:56
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@kas1e

It’s strange, I have not made any changes to the test button.

The JOY1/JOY2 will only work while Nalle Puh is active.

It writes to internal variables, that you can read by peeking the hardware registers.
or just take peek in the code and see what it does. I had a idea disable the buttons when Nalle Puh is not active, but on the other hand they do no harm, if you press it.

please write example hardware banging codes, if there are something you know is not working.
(Hardware banging code does not need to be 680x0 assembler.)

It can also be something is mixed up, it was written pretty-quickly, and not tested a lot, like everything else, (Mouse is normally plugged into Port1, Joy1 is plugged into Port2, if I’m not mistaken. That’s how it should be).

CIAA chip emulation works independently from Paula emulation, I’m not sure that’s correct, I believe CIAA should be able to trigger Paula IRQ, but I’m not sure. also, I’m not sure I’m passing the correct inputs to interrupt routines, it just assumed they are similar to Paula interrupt calling.

Interrupt routines are not located/inserted into execbase, you can only be obtain by using ciaa.resource and ciab.resource, program that do odd things, probably will fail.

Programs go into forbid states, are not supported, emulation can not keep time, while OS is locked up.


Edited by LiveForIt on 2023/10/3 12:29:24
Edited by LiveForIt on 2023/10/3 12:33:19
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: can anybody explain about current situation with BREL Relocations ?
Home away from home
Home away from home


@kas1e

Tricky when need to know the small difference between PowerPC chips are to write assembly,
do you need to write it in assembly, and does it do what you actually want it to do?
(if its just a test, perhaps it can be tested on Sam440. If not required to test on others.) Perhaps the sam460 is similar.
since they both are AMCC chips

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: can anybody explain about current situation with BREL Relocations ?
Home away from home
Home away from home


@kas1e

Funny how the different PowerPC are different.

https://elinux.org/Book_E_and_PPC_440

It has do with MMU, so perhaps something can be rewritten use the ExecSG mmu api instead.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: AmigaOS 4 Monthly Roundup - September 2023
Home away from home
Home away from home


@AmigaOldskooler

It lifts my spirit every time see what was done at the end of the month. Lots of cool things happening.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@Maijestro

Quote:
I'm just not sure where to start.


No one knows, but its easier if know some program you think might work, with CIAA/CIAB emulation and Paula, but does have intuition gui, and not a custom / copper gui.

I guess this tool can be most useful if you have some source code, you want trying to get working, by emulating some of the chips, you can focus on other things.

Blitz Basic 2 compiled binaries can be a candidate,
Amiga Mode, was not 100% OS clean, but some work can be needed to emulate mouse button and joystick pressing.

Programs that need IO, direct keyboard reading or joystick, is not supported yet. (not sure I want to do any hack.), I can see what I can do within my own ecosystem of tools.


Edited by LiveForIt on 2023/9/28 22:04:05
Edited by LiveForIt on 2023/9/28 22:47:10
Edited by LiveForIt on 2023/9/29 14:47:56
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Debuging NallePuh...
Home away from home
Home away from home


@kas1e

I always sucked writing install scripts, I tested it under advanced install, perhaps it only works in that mode. If you know of someone who is good at writing install script any help with that is appreciated.

Remember to delete old catalogs, before installing, new programs use different id numbers for languages categories.

Test button should work, it does not actually trigger an exception, but does write to the emulated hardware registers, so not test of exception routine, only the routines in the back end.
if problem with AHI make sure you have more than one channel configured for AHI unit, as other programs might need to allocate AHI channels as well.

So far my test is a bit of mixed result, it seams a lot software that does use CIAA/CIAB also uses copper, sadly, the software that crash because x,y,z still crash because of x,y,z this programs have other issues. Only programs freeze up, hang, can be working, the emulation of the CIAA/CIAB chips are not designed to handle forbid state, as I have setup up a timer device timer to update timer ticks. It handled in PUH itself, and not in exception routine.

Sadly there is no database of software can be searched by issue/problem, this means retesting everything. To find the needle in haystack.

To correct myself before anyone else does, you can look at Intuition Base website,
but you can’t download the list, nor can you write SQL Quary or Trubo Calc / Excel spreadsheet with filters. Does you need to click threw every game / program listed, read the fault description.
OctaMedStudio should be working, but its not, something is wrong with programs interrupt routine, or perhaps how I try to execute it, more investigation needed. Perhaps the wrong values are passed into 68K registers.

CIAA / CIAB emulation is not designed to handle any 68K WHDLOAD
or any hardware take over software, this is waste of time to test.

with old software its even difficult run the software, because can’t find the correct resolution, for example 320x256 or 320x400 modes are hard to setup. In other words, keep your expectation low.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: qemu emualtion of AmigaONE XE
Home away from home
Home away from home


@joerg

I expected that sense slb2 is on the RDB sector so should be so hard to find it. Boota command should be relatively simple.

(It be nice to be able to boot from USB as well, who uses a CDROM this days anyway.)

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: MilkyTracker v1.04
Home away from home
Home away from home


@Capehill

It looks pretty the new one, I will try it.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: qemu emualtion of AmigaONE XE
Home away from home
Home away from home


@Maijestro

No one wanted to mess around with UBOOT on physical hardware just in case computer got bricked. I know lots of talks about it, if remember it HJF who worked on it, he is now working for Trever in ExecSG team, back then there some I think UBOOT had special command built in to protect against piracy. The old FW only accept keyboard in PS2 port, its annoying. As you need a keyboard that support PS2 adapter, also that UBOOT also refuse initialize a screen when the backup battery is flat. Scarry stuff. These are two main issues. Getting a newer UBOOT working on it be great.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: Amiga Package Management (SDL)
Home away from home
Home away from home


@nbache

It did update some stuff from Hyperion site as well, but perhaps, its just some old stuff. Is possible to remove the sites that’s not working?

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top



TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 181 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project