diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f49d31 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +toolchain/pcsx-redux +build diff --git a/code/fillmem/fillmem.s b/code/fillmem/fillmem.s new file mode 100644 index 0000000..36ec044 --- /dev/null +++ b/code/fillmem/fillmem.s @@ -0,0 +1,20 @@ +.psx +.create "fillmem.bin", 0x80010000 + +; Entry Point of Code +.org 0x80010000 + +; Constant declaration +BASE_ADDR equ 0x0000 + +Main: + li $t0, 0xA000 ; $t0 = 0xA000 + li $t1, 0xA0FF ; $t1 = 0xA0FF + li $t2, 0x11 ; $t2 = 0x11 + +Loop: + sb $t2, BASE_ADDR($t0) ; $Store byte at 0x0000 + t0 + addi $t0, $t0, 1 ; ++ t0 + blt $t0, $t1, Loop ; while (t0 < t1) keep looping + +.close diff --git a/splash.jpg b/docs/assets/splash.jpg similarity index 100% rename from splash.jpg rename to docs/assets/splash.jpg diff --git a/docs/assets/system_info.png b/docs/assets/system_info.png new file mode 100644 index 0000000..5df16d0 Binary files /dev/null and b/docs/assets/system_info.png differ diff --git a/example.asm b/example.asm new file mode 100644 index 0000000..fe1933c --- /dev/null +++ b/example.asm @@ -0,0 +1,17 @@ +; Entry Point of Code +.org 0x80010000 + +; Constant declaration +BASE_ADDR equ 0x0000 + +Main: + li $t0, 0xA000 ; $t0 = 0xA000 + li $t1, 0xA0FF ; $t1 = 0xA0FF + li $t2, 0x11 ; $t2 = 0x11 + +Loop: + sb $t2, BASE_ADDR($t0) ; $Store byte at 0x0000 + t0 + addi $t0, $t0, 1 ; ++ t0 + blt $t0, $t1, Loop ; while (t0 < t1) keep looping + +.close diff --git a/readme.md b/readme.md index d771693..3194f31 100644 --- a/readme.md +++ b/readme.md @@ -2,4 +2,15 @@ A rest from the usual. -![img](./splash.jpg) +![img](./docs/assets/splash.jpg) + +## Dependencies + +![system_info](./docs/assets/system_info.png) + +```ps1 +scoop bucket add extras +scoop install armips +``` + +[pscx-redux](https://github.com/grumpycoders/pcsx-redux/): A collection of tools, research, hardware design, and libraries aiming at development and reverse engineering on the PlayStation 1. diff --git a/scripts/build.ps1 b/scripts/build.ps1 new file mode 100644 index 0000000..654486a --- /dev/null +++ b/scripts/build.ps1 @@ -0,0 +1,16 @@ +$path_root = split-path -Path $PSScriptRoot -Parent +$path_build = join-path $path_root 'build' +$path_code = join-path $path_root 'code' + +if ((test-path $path_build) -eq $false) { + new-item -itemtype directory -path $path_build +} + +$armips = 'armips' + +$path_fillmem = join-path $path_code 'fillmem' +$src_fillmem = join-path $path_fillmem 'fillmem.s' + +push-location $path_build +& $armips $src_fillmem +pop-location