You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1KB

  1. # E01-S02: build and visibly run the MMU probe in VICE x128.
  2. [CmdletBinding()]
  3. param([int]$LimitCycles = 30000000)
  4. $ErrorActionPreference = "Stop"
  5. $project = Split-Path $PSScriptRoot -Parent
  6. $build = Join-Path $project "build"
  7. $program = Join-Path $build "mmu-probe.prg"
  8. $screenshot = Join-Path $build "mmu-probe-vicii.png"
  9. $x128 = "C:\Program Files\GTK3VICE-3.10-win64\bin\x128.exe"
  10. & (Join-Path $PSScriptRoot "build-mmu-probe.ps1")
  11. if ($LASTEXITCODE -ne 0) { throw "MMU probe build failed" }
  12. if (-not (Test-Path -LiteralPath $x128)) { throw "x128.exe not found at $x128" }
  13. if (Test-Path -LiteralPath $screenshot) { Remove-Item -LiteralPath $screenshot -Force }
  14. $arguments = @(
  15. "-autostart", $program,
  16. "-autostart-warp", "-warp", "-sounddev", "dummy",
  17. "-limitcycles", "$LimitCycles", "-exitscreenshotvicii", $screenshot
  18. )
  19. $process = Start-Process -FilePath $x128 -ArgumentList $arguments -PassThru -Wait -WindowStyle Hidden
  20. if (-not (Test-Path -LiteralPath $screenshot)) { throw "x128 did not create $screenshot" }
  21. Write-Host ("x128 exit code: {0} (cycle-limit exit may be non-zero)" -f $process.ExitCode)
  22. Write-Host ("screenshot: {0}" -f $screenshot)

Powered by TurnKey Linux.