No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

25 líneas
1.1KB

  1. # E04-S05: build the print/fault runtime test 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\print-test"
  8. New-Item -ItemType Directory -Force -Path $out | Out-Null
  9. $link = Invoke-Nova128Link -Name "print-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\faults.s"),
  13. (Join-Path $project "tests\runtime\print-test.s"))
  14. if ((Get-Nova128Label $link.Labels "test_entry") -ne 0x1C0D) { throw "test_entry is not at `$1C0D" }
  15. $end = Get-Nova128Label $link.Labels "test_end"
  16. if ($end -ge 0x4000) {
  17. throw ("print-test ends at `$" + $end.ToString("X4") + "; it must stay below `$4000 for the CR=`$00 mapping")
  18. }
  19. New-Nova128Disk -Path (Join-Path $out "print-test.d81") -Files @(
  20. @{ Name = "print-test"; Path = $link.Program; Type = "prg" })
  21. Write-Host ("built {0} (end {1:X4})" -f $link.Program, $end)

Powered by TurnKey Linux.