diff --git a/code/graphics_system/dsl.s b/code/graphics_hello/dsl.s similarity index 100% rename from code/graphics_system/dsl.s rename to code/graphics_hello/dsl.s diff --git a/code/graphics_system/gp.s b/code/graphics_hello/gp.s similarity index 100% rename from code/graphics_system/gp.s rename to code/graphics_hello/gp.s diff --git a/code/graphics_system/hello_gouraud.s b/code/graphics_hello/hello_gouraud.s similarity index 97% rename from code/graphics_system/hello_gouraud.s rename to code/graphics_hello/hello_gouraud.s index bc1e0c0..be51c7b 100644 --- a/code/graphics_system/hello_gouraud.s +++ b/code/graphics_hello/hello_gouraud.s @@ -1,8 +1,8 @@ .psx .create "./build/hello_gouraud.bin", 0x80010000 -.include "./code/graphics_system/dsl.s" -.include "./code/graphics_system/gp.s" +.include "./code/graphics_hello/dsl.s" +.include "./code/graphics_hello/gp.s" ; Entry Point of Code .org 0x80010000 diff --git a/code/graphics_system/hello_gp_routines.s b/code/graphics_hello/hello_gp_routines.s similarity index 97% rename from code/graphics_system/hello_gp_routines.s rename to code/graphics_hello/hello_gp_routines.s index 74e1fa4..5ccf7dc 100644 --- a/code/graphics_system/hello_gp_routines.s +++ b/code/graphics_hello/hello_gp_routines.s @@ -1,8 +1,8 @@ .psx .create "./build/hello_gp_routines.bin", 0x80010000 -.include "./code/graphics_system/dsl.s" -.include "./code/graphics_system/gp.s" +.include "./code/graphics_hello/dsl.s" +.include "./code/graphics_hello/gp.s" ; Entry Point of Code .org 0x80010000 diff --git a/code/graphics_system/hello_image.s b/code/graphics_hello/hello_image.s similarity index 98% rename from code/graphics_system/hello_image.s rename to code/graphics_hello/hello_image.s index c3d5a79..47f5369 100644 --- a/code/graphics_system/hello_image.s +++ b/code/graphics_hello/hello_image.s @@ -1,8 +1,8 @@ .psx .create "./build/hello_image.bin", 0x80010000 -.include "./code/graphics_system/dsl.s" -.include "./code/graphics_system/gp.s" +.include "./code/graphics_hello/dsl.s" +.include "./code/graphics_hello/gp.s" Color_RedFF equ 0x0000FF Color_22 equ 0x222222 @@ -21,7 +21,7 @@ Display_HalfHeight equ 239 / 2 Image_SizeX equ 32 Image_SizeY equ 32 -Image_ByteSize equ Image_SizeX * Image_SizeY * gp_pixel +Image_ByteSize equ Image_SizeX * Image_SizeY * gp_pixel16 Image: ; 32 * 32 * 2 = 2048 bytes diff --git a/code/graphics_system/hello_logo.s b/code/graphics_hello/hello_logo.s similarity index 96% rename from code/graphics_system/hello_logo.s rename to code/graphics_hello/hello_logo.s index 1128f8c..80f49a0 100644 --- a/code/graphics_system/hello_logo.s +++ b/code/graphics_hello/hello_logo.s @@ -1,8 +1,8 @@ .psx .create "./build/hello_logo.bin", 0x80010000 -.include "./code/graphics_system/dsl.s" -.include "./code/graphics_system/gp.s" +.include "./code/graphics_hello/dsl.s" +.include "./code/graphics_hello/gp.s" Color_RedFF equ 0x0000FF Color_22 equ 0x222222 diff --git a/code/graphics_system/hellogpu.s b/code/graphics_hello/hellogpu.s similarity index 99% rename from code/graphics_system/hellogpu.s rename to code/graphics_hello/hellogpu.s index a901d90..b78d9af 100644 --- a/code/graphics_system/hellogpu.s +++ b/code/graphics_hello/hellogpu.s @@ -1,7 +1,7 @@ .psx .create "./build/hellogpu.bin", 0x80010000 -.include "./code/graphics_system/dsl.s" +.include "./code/graphics_hello/dsl.s" ; Entry Point of Code .org 0x80010000 diff --git a/psxdev_sample/readme.md b/psxdev_sample/readme.md new file mode 100644 index 0000000..7344621 --- /dev/null +++ b/psxdev_sample/readme.md @@ -0,0 +1,5 @@ +# PSX.DEV Sample Code + +Uses the vscode extension to setup a working C project with a pcsx-redux instance used with GDB server functionality. +Everything is built currently with make files which I want to simplify to not requiring if possible... +My goal was to do the pikuma course mostly in assembly with some sys calls to help but now this is in the way.. diff --git a/scripts/build_asm.ps1 b/scripts/build_asm.ps1 index 4a7dd9c..3b16afa 100644 --- a/scripts/build_asm.ps1 +++ b/scripts/build_asm.ps1 @@ -37,8 +37,8 @@ function build-program { param( # 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' +# build-program 'graphics_hello' 'hellogpu' +# build-program 'graphics_hello' 'hello_gouraud' +# build-program 'graphics_hello' 'hello_gp_routines' +# build-program 'graphics_hello' 'hello_image' +build-program 'graphics_hello' 'hello_logo'