Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: guest11527 on December 12, 2014, 10:40:48 PM

Title: Origin of the uaegfx monitor file
Post by: guest11527 on December 12, 2014, 10:40:48 PM
Does anyone have more information on the origin of the uaegfx monitor driver, i.e. the one that allows emulated graphics cards to be used with xxUAE? My first thought was that this should have been distributed originally with P96, but as it seems, it is not. It does not seem to be part of its internal sources, and hence must have seen in some other way the light of the day.  The problem seems to be that there is apparently a slight interface change in the latest releases of P96 that might have broken something in uaegfx, though I would prefer to understand the problem a bit better.
Title: Re: Origin of the uaegfx monitor file
Post by: kolla on December 12, 2014, 10:48:10 PM
It is part of UAE, is it not?
Title: Re: Origin of the uaegfx monitor file
Post by: kolla on December 12, 2014, 10:55:30 PM
I am only on ipad here, but guessing this:
https://github.com/tonioni/WinUAE/blob/master/picasso96.cpp
Title: Re: Origin of the uaegfx monitor file
Post by: Ratte on December 13, 2014, 10:40:53 AM
Did you mean the "old" UAECALL-Interface?
Code: [Select]
...

...

***********************************************************
SetPanning:
* set view origin for overscan displays
***********************************************************
* a0:     struct BoardInfo
* a1:     UBYTE *Memory
* d0:     UWORD Width
* d1:     WORD XOffset
* d2:     WORD YOffset
* d7:    RGBFTYPE RGBFormat
***********************************************************
    move.w    d1,(gbi_XOffset,a0)
    move.w    d2,(gbi_YOffset,a0)
    move.l    a1,d4
    sub.l    (gbi_MemoryBase,a0),d4
    ; UAECALL    #22
        movem.l    d2-d7/a2-a6,-(sp)
        movea.l    d3,a5
        moveq    #22,d3            ; #22
        movem.l    d3,-(sp)
        move.l    a5,d3
        movea.l    #$F0FF60,a5
        jsr    (a5)
        movem.l    (sp)+,d2
        movem.l    (sp)+,d2-d7/a2-a6
    rts

...

...
Title: Re: Origin of the uaegfx monitor file
Post by: guest11527 on December 13, 2014, 01:42:50 PM
Quote from: Ratte;779738
Did you mean the "old" UAECALL-Interface?

I don't know, likely not. I'm wondering who might have information and/or sources for the uaegfx.monitor file I need to put into DEVS:Monitors to be able to use the emulated uaegfx card of UAE for RTG screens in UAE. I thought it might be part of the P96 source tree, but it isn't. Somebody else must have implemented this, but I don't know who and whom to ask.
Title: Re: Origin of the uaegfx monitor file
Post by: kolla on December 13, 2014, 03:04:35 PM
Uhm, isn't that just the regular Picasso96 monitor file renamed?
Title: Re: Origin of the uaegfx monitor file
Post by: Gulliver on December 13, 2014, 03:59:29 PM
Quote from: Thomas Richter;779744
I don't know, likely not. I'm wondering who might have information and/or sources for the uaegfx.monitor file I need to put into DEVS:Monitors to be able to use the emulated uaegfx card of UAE for RTG screens in UAE. I thought it might be part of the P96 source tree, but it isn't. Somebody else must have implemented this, but I don't know who and whom to ask.

You should ask Toni Wilen, I believe he was one of the authors.
He is currently reachable on the EAB Amiga forum, where he is very active.
He moderates the WinUAE section over there
http://eab.abime.net/forumdisplay.php?f=5
Title: Re: Origin of the uaegfx monitor file
Post by: Ratte on December 13, 2014, 06:23:27 PM
Quote from: Thomas Richter;779744
... file I need to put into DEVS:Monitors to be able to use the emulated uaegfx card of UAE for RTG screens in UAE...


The file in devs : monitors is allways the same, it is a "startup"-code for the file in argument BOARDTYPE=xxxx.card .
The "card"-files can be found in den libs : picasso96 / ...

Did you search for the source for the uaegfx.card driver?


Code: [Select]
Start:                        ; just in case we are executed
        moveq    #-1,d0
        rts
;-----------------------------------------------
RomTag:
        dc.w    RTC_MATCHWORD
        dc.l    RomTag
        dc.l    EndCode
        dc.b    RTF_AUTOINIT
        dc.b    0
        dc.b    NT_LIBRARY
        dc.b    RomTagPri
        dc.l    LibName
        dc.l    IDString
        dc.l    InitTable

CardName:
        dc.b    'uaegfx'
        dc.b    0
LibName:
        dc.b    'uaegfx'
        dc.b    '.card',0
IDString:
        dc.b    'UAE Graphics Card 0.7 (10.10.97)',13,10,0
VERString:
        dc.b    0,'$VER: UAE Graphics Card 0.7 (10.10.97)',0
ExpansionName:
        dc.b    'expansion.library',0
ChipName:
        dc.b    'picasso96/'
        dc.b    'uaegfx'        ; NAME
        dc.b    '.card',0
...
...
...


Code: [Select]
...
...
...
* d0:    UBYTE mask
***********************************************************
; we do nothing here, because we're not supporting planar modes in UAE
    rts

***********************************************************
SetReadPlane:
* a0:    struct BoardInfo
* d0:    UBYTE Plane
***********************************************************
; we do nothing here, because we're not supporting planar modes in UAE
    rts

***********************************************************
WaitVerticalSync:
* a0:    struct BoardInfo
***********************************************************
    ; UAECALL    #34
        movem.l    d2-d7/a2-a6,-(sp)
        movea.l    d3,a5
        moveq    #34,d3            ; #34
        movem.l    d3,-(sp)
        move.l    a5,d3
        movea.l    #$F0FF60,a5
        jsr    (a5)
        movem.l    (sp)+,d2
        movem.l    (sp)+,d2-d7/a2-a6
    rts

***********************************************************
WaitBlitter:
...
...
...

Title: Re: Origin of the uaegfx monitor file
Post by: guest11527 on December 13, 2014, 07:00:46 PM
Quote from: Ratte;779759
The file in devs : monitors is allways the same, it is a "startup"-code for the file in argument BOARDTYPE=xxxx.card

Yes, I know.... I wanted to put things simple. Yes, I'm really looking for the uaegfx.card sources. I wrote a mail to Tony, awaiting response.
Title: Re: Origin of the uaegfx monitor file
Post by: Ratte on December 13, 2014, 08:15:10 PM
Quote from: Thomas Richter;779763
I wrote a mail to Tony, awaiting response.


Otherwise you know where to find me.