From: Edward Delaporte Date: Tue, 18 May 2021 15:39:34 +0000 (-0500) Subject: Merge PATH X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/e738426da601f5495ab95a28cbcd5c5ddfba42c4?hp=09835a123eb4e1e010c551057f4f8203dfd66b15 Merge PATH --- diff --git a/.gitignore b/.gitignore index 1ff3e1c..59557ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ + +*.gif + *.log DONE.md .github_access_token diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 45ca75a..6be7ab9 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -26,6 +26,7 @@ if($IsWindows){ $ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all $ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice. $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice. + $ENV:PATH+=";C:\bin\x16emu" # Package management is nice. $ENV:PATH+=";C:\Program Files (x86)\GnuWin32\bin" # GNU Utils - i.e. rm $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. } @@ -78,6 +79,14 @@ function Enable-PoshGit { New-Alias pg Enable-PoshGit Write-Host "+ Type 'pg' to enable PoshGit" +function Invoke-X16Emu { + param( + [string]$File + ) + x16emu.exe -bas $File -keymap en-us +} + +New-Alias x16 Invoke-X16Emu if((Get-Location).Path -eq $HOME){ cd $env:src diff --git a/basic/Makefile b/basic/Makefile new file mode 100644 index 0000000..7cfde26 --- /dev/null +++ b/basic/Makefile @@ -0,0 +1,7 @@ + +all: + x16emu.exe -bas app.txt -keymap en-us + +gif: + x16emu.exe -bas app.txt -gif out.gif + diff --git a/basic/app.txt b/basic/app.txt new file mode 100644 index 0000000..8c9c286 --- /dev/null +++ b/basic/app.txt @@ -0,0 +1,24 @@ +6 GOSUB 2000 +7 HI = 191 +8 LOW = 185 +9 Y = 0 +10 FOR X = 1 TO 42 +20 PRINT CHR$(HI); +25 GOSUB 1000 +27 PRINT CHR$(150+RE); +30 NEXT X +35 PRINT CHR$(HI) +40 Y = Y + 1 +80 GOTO 10 +1000 REM MOD +1005 Z = X + Y +1010 RE = Z - (INT(Z/10)*10) +1040 RETURN +2000 REM LIST CHARS +2005 FOR CH = X TO 20+X +2008 PRINT CH; +2010 PRINT CHR$(CH) +2020 NEXT CH +2025 PRINT CHR$(CH) +2030 RETURN + diff --git a/psmodules/drivespace.psm1 b/psmodules/drivespace.psm1 index 361ee23..19fdc5e 100644 --- a/psmodules/drivespace.psm1 +++ b/psmodules/drivespace.psm1 @@ -38,5 +38,4 @@ Get-Job -Name "FileCollection" | Remove-Job } Export-ModuleMember -Function Show-Drivespace -Export-ModuleMember -Function Show-DrivespacePretty Export-ModuleMember -Function Show-LargeFiles