mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-06-01 18:41:13 -07:00
don't know what I'm going todo with this spinning cube example...
This commit is contained in:
+7
-4
@@ -1,5 +1,8 @@
|
||||
toolchain/pcsx-redux
|
||||
# toolchain/armips
|
||||
build
|
||||
toolchain/armips
|
||||
build
|
||||
psxdev_sample
|
||||
toolchain/pcsx_redux
|
||||
toolchain/armips
|
||||
|
||||
*.o
|
||||
*.exe
|
||||
*.ps-exe
|
||||
|
||||
@@ -12,33 +12,4 @@ $armips = join-path $path_toolchain 'armips/build/Debug/armips.exe'
|
||||
$bin2exe_lua = join-path $path_scripts 'bin2exe.lua'
|
||||
$bin2exe_py = join-path $path_scripts 'bin2exe.py'
|
||||
|
||||
function build-program { param(
|
||||
[string]$module,
|
||||
[string]$unit
|
||||
)
|
||||
$path_module = join-path $path_code $module
|
||||
$src = join-path $path_module "$unit.s"
|
||||
$bin = join-path $path_build "$unit.bin"
|
||||
$exe = join-path $path_build "$unit.exe"
|
||||
|
||||
push-location $root
|
||||
write-host "Assembling: $src`n"
|
||||
& $armips $src
|
||||
|
||||
write-host 'Generating executable..'
|
||||
# & lua $bin2exe_lua $bin $exe
|
||||
& py $bin2exe_py $bin $exe
|
||||
|
||||
write-host 'Done!'
|
||||
pop-location
|
||||
}
|
||||
# build-program 'fillmem' 'fillmem'
|
||||
# build-program 'warmup' 'exercise_1'
|
||||
# build-program 'warmup' 'exercise_2'
|
||||
# build-program 'warmup' 'exercise_3'
|
||||
# build-program 'factorial' 'factorial'
|
||||
# build-program 'graphics_system' 'hellogpu'
|
||||
# build-program 'graphics_system' 'hello_gouraud'
|
||||
# build-program 'graphics_system' 'hello_gp_routines'
|
||||
# build-program 'graphics_system' 'hello_image'
|
||||
build-program 'graphics_system' 'hello_logo'
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
$path_root = split-path -Path $PSScriptRoot -Parent
|
||||
$path_build = join-path $path_root 'build'
|
||||
$path_code = join-path $path_root 'code'
|
||||
$path_scripts = join-path $path_root 'scripts'
|
||||
$path_toolchain = join-path $path_root 'toolchain'
|
||||
|
||||
if ((test-path $path_build) -eq $false) {
|
||||
new-item -itemtype directory -path $path_build
|
||||
}
|
||||
|
||||
$armips = join-path $path_toolchain 'armips/build/Debug/armips.exe'
|
||||
$bin2exe_lua = join-path $path_scripts 'bin2exe.lua'
|
||||
$bin2exe_py = join-path $path_scripts 'bin2exe.py'
|
||||
|
||||
function build-program { param(
|
||||
[string]$module,
|
||||
[string]$unit
|
||||
)
|
||||
$path_module = join-path $path_code $module
|
||||
$src = join-path $path_module "$unit.s"
|
||||
$bin = join-path $path_build "$unit.bin"
|
||||
$exe = join-path $path_build "$unit.exe"
|
||||
|
||||
push-location $root
|
||||
write-host "Assembling: $src`n"
|
||||
& $armips $src
|
||||
|
||||
write-host 'Generating executable..'
|
||||
# & lua $bin2exe_lua $bin $exe
|
||||
& py $bin2exe_py $bin $exe
|
||||
|
||||
write-host 'Done!'
|
||||
pop-location
|
||||
}
|
||||
# build-program 'fillmem' 'fillmem'
|
||||
# build-program 'warmup' 'exercise_1'
|
||||
# build-program 'warmup' 'exercise_2'
|
||||
# build-program 'warmup' 'exercise_3'
|
||||
# build-program 'factorial' 'factorial'
|
||||
# build-program 'graphics_system' 'hellogpu'
|
||||
# build-program 'graphics_system' 'hello_gouraud'
|
||||
# build-program 'graphics_system' 'hello_gp_routines'
|
||||
# build-program 'graphics_system' 'hello_image'
|
||||
build-program 'graphics_system' 'hello_logo'
|
||||
Reference in New Issue
Block a user