From cd4c7ac4fcedc532d0c925008b61989c3ba19337 Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Sun, 27 Oct 2024 18:54:41 -0400 Subject: [PATCH] wok --- .gitea/workflows/build.yml | 3 +-- build.bat | 1 + src/main.asm | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 build.bat create mode 100644 src/main.asm diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 114e125..42fbfa0 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -37,8 +37,7 @@ jobs: run: ./src/build/ActionsTesting.exe - name: Prepare artifacts run: | - pwd - ls + echo "Current working directory: $PWD" Get-ChildItem -Path .\artifacts\ -Recurse | Remove-Item -force -recurse Remove-Item .\artifacts\ -Force $version = (Select-String -Path "build.gradle" -Pattern "version" | Where-Object { $_ -notmatch "id" -and $_ -notmatch ":" } | ForEach-Object { [regex]::Match($_, "'(.*?)'").Groups[1].Value }) diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..83cb140 --- /dev/null +++ b/build.bat @@ -0,0 +1 @@ +@echo off diff --git a/src/main.asm b/src/main.asm new file mode 100644 index 0000000..5807af6 --- /dev/null +++ b/src/main.asm @@ -0,0 +1,17 @@ +section .data +msg: DB 'Hello, World!', 10 +msgSize EQU $ - msg + +global start + +section .text + start: + mov rax, 4 ; function 4 + mov rbx, 1 ; stdout + mov rcx, msg ; msg + mov rdx, msgSize ; size + int 0x80 ; intercept (run) + mov rax, 1 ; function 1 + mov rbx, 0 ; code + int 0x80 ; intercept (run) + ret \ No newline at end of file