Import Amiga applications and desktop tools

This commit is contained in:
Alberto committed 2026-11-11 16:21:50 +01:00
commit 1c144c9a3c
347 files changed
+423483

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
build/
*.o
*.asm
+7
View File
@@ -0,0 +1,7 @@
# Amiga mouse integration
RestoreMouse enables WinUAE magic_mouse and win32.middle_mouse in the running emulator without resetting AmigaOS. Silent, runs once from S:Amber-Desktop. No background process or logfile.
Build: ./build.ps1 -Toolchain <VBCC m68k-amigaos toolchain directory>. Install build/RestoreMouse as SYS:C/RestoreMouse. Emulator-only.
References: https://github.com/tonioni/WinUAE/blob/master/uaelib.cpp and cfgfile.cpp.
+25
View File
@@ -0,0 +1,25 @@
param([string]$Toolchain = $env:AMIGA_TOOLCHAIN)
$ErrorActionPreference = 'Stop'
if (!$Toolchain) { throw 'Specificare -Toolchain con la cartella che contiene bin e targets/m68k-amigaos.' }
$Toolchain = (Resolve-Path -LiteralPath $Toolchain).Path
$targetPath = Join-Path $Toolchain 'targets/m68k-amigaos'
$buildPath = Join-Path $PSScriptRoot 'build'
$configPath = Join-Path $buildPath 'vbcc'
New-Item -ItemType Directory -Path (Join-Path $configPath 'config') -Force | Out-Null
$config = [IO.File]::ReadAllText((Join-Path $PSScriptRoot 'vbcc-config.in')).Replace('@TARGET@', $targetPath.Replace('\','/'))
[IO.File]::WriteAllText((Join-Path $configPath 'config/boing'), $config)
$previousVBCC = $env:VBCC
$previousPath = $env:PATH
try {
$env:VBCC = $configPath
$env:PATH = (Join-Path $Toolchain 'bin') + ';' + $env:PATH
Push-Location -LiteralPath $PSScriptRoot
try {
& (Join-Path $Toolchain 'bin/vc.exe') +boing -O2 -c99 -o build/RestoreMouse restoremouse.c
if ($LASTEXITCODE -ne 0) { throw 'Compilazione fallita.' }
} finally { Pop-Location }
} finally {
$env:VBCC = $previousVBCC
$env:PATH = $previousPath
}
Write-Output ('Pronto per Amiga: ' + $buildPath)
+11
View File
@@ -0,0 +1,11 @@
#include <exec/types.h>
#include <proto/dos.h>
#include <stdio.h>
#include <string.h>
/* WinUAE's documented uaelib stack-call interface, function 82. */
typedef ULONG (*UaeCall)(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
int main(void){volatile UWORD *entry=(volatile UWORD*)0xf0ff60;
UaeCall call=(UaeCall)entry;
if((entry[0]&0xf000)!=0xa000||entry[1]!=0x4e75)return 5;
return call(82,0xffffffff,(ULONG)"magic_mouse true win32.middle_mouse true",0,0,0)==0?0:20;
}
+12
View File
@@ -0,0 +1,12 @@
-cc=vbccm68k -quiet -hunkdebug %s -o= %s %s -O=%ld -I"@TARGET@/include" -I"@TARGET@/ndk/include_h" -I"@TARGET@/netinclude"
-ccv=vbccm68k -hunkdebug %s -o= %s %s -O=%ld -I"@TARGET@/include" -I"@TARGET@/ndk/include_h" -I"@TARGET@/netinclude"
-as=vasmm68k_mot -quiet -Fhunk -phxass -opt-fconst -nowarn=62 %s -o %s
-asv=vasmm68k_mot -Fhunk -phxass -opt-fconst -nowarn=62 %s -o %s
-ld=vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib "@TARGET@/lib/startup.o" %s %s -L"@TARGET@/lib" -lvc -o %s
-l2=vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib %s %s -L"@TARGET@/lib" -o %s
-ldv=vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib "@TARGET@/lib/startup.o" %s %s -L"@TARGET@/lib" -lvc -o %s
-l2v=vlink -bamigahunk -t -x -Bstatic -Cvbcc -nostdlib %s %s -L"@TARGET@/lib" -o %s
-ldnodb=-s -Rshort
-ul=-l%s
-cf=-F%s
-ml=500