Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

26 lines
1.1KB

  1. # E06-S01: build the interface value ABI fixture and its D81.
  2. [CmdletBinding()]
  3. param()
  4. $ErrorActionPreference = "Stop"
  5. $project = Split-Path $PSScriptRoot -Parent
  6. Import-Module (Join-Path $PSScriptRoot "lib\Nova128Test.psm1") -Force
  7. $out = Join-Path $project "build\interface-test"
  8. New-Item -ItemType Directory -Force -Path $out | Out-Null
  9. $link = Invoke-Nova128Link -Name "interface-test" -BuildDir $out `
  10. -Config (Join-Path $project "cfg\compiler.cfg") -Sources @(
  11. (Join-Path $project "src\runtime\print.s"),
  12. (Join-Path $project "src\runtime\frames.s"),
  13. (Join-Path $project "src\runtime\interfaces.s"),
  14. (Join-Path $project "tests\runtime\interface-test.s"))
  15. if ((Get-Nova128Label $link.Labels "test_entry") -ne 0x1C0D) { throw "test_entry is not at `$1C0D" }
  16. $end = Get-Nova128Label $link.Labels "test_end"
  17. if ($end -ge 0x4000) {
  18. throw ("interface-test ends at `$" + $end.ToString("X4") + "; it must stay below `$4000")
  19. }
  20. New-Nova128Disk -Path (Join-Path $out "interface-test.d81") -Files @(
  21. @{ Name = "interface-test"; Path = $link.Program; Type = "prg" })
  22. Write-Host ("built {0} (end {1:X4})" -f $link.Program, $end)

Powered by TurnKey Linux.