English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.WinUAE (https://eab.abime.net/forumdisplay.php?f=5)
-   -   Using UaeLib to enable/disable warp mode (https://eab.abime.net/showthread.php?t=117239)

Hannibal 23 March 2024 17:57

Using UaeLib to enable/disable warp mode
 
I want to use UaeLib to control the awesome warp mode from code. However, I can't get it to explicitly Enable or Disable from code, I can only toggle it. Does someone know why the my commands UaeCommand 'AKS_WARP 1' and UaeCommand 'AKS_WARP -1' (with the macro below) doesn't explicitly set or clear the warp mode?
I'm using WinUAE 5.0.0

Code:

UaeCommand: macro                                       
                move.l        a0,-(a7)
                pea                0.w
                move.l        a0, -(sp)
                pea                .cmdend\@-.cmd\@
                pea                .cmd\@(pc)
                pea                -1.w
                pea                82.w
                jsr                $f0ff60
                lea                24(sp), sp
                move.l        (a7)+,a0
                bra                .done\@
.cmd\@:
                dc.b        \1
                dc.b        0
.cmdend\@:
                even
.done\@:
        endm

        UaeCommand 'AKS_WARP 1'
        UaeCommand 'AKS_WARP -1'


Toni Wilen 23 March 2024 21:35

Input events by default now gets toggle for some reason I don't remember. It probably is side-effect of some change.

"warp 0" or "warp 1" should work (changes "warp" config file entry)

Hannibal 24 March 2024 07:26

oh. I didn't realize that AKS_WARP and warp were two different settings. Yes, "warp 1" and "warp 0" work perfectly. Thank you again!

Toni Wilen 27 March 2024 20:41

ASK_ events should work again as expected in 530b2.


All times are GMT +2. The time now is 16:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04476 seconds with 11 queries