diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-10-28 16:05:43 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-10-28 16:06:50 -0500 |
| commit | 5a0619780e4ae647307136f533d666be15bb9843 (patch) | |
| tree | 017225eba0fe70a0e0c24eef35d3cfb73d7e9812 /aarch64/mariokartwii_ch07.S | |
| parent | 20b5138d377f81aa642c2537c64ff711ff954157 (diff) | |
| download | demos-5a0619780e4ae647307136f533d666be15bb9843.tar.gz demos-5a0619780e4ae647307136f533d666be15bb9843.zip | |
aarch64 -> arm64
Diffstat (limited to 'aarch64/mariokartwii_ch07.S')
| -rw-r--r-- | aarch64/mariokartwii_ch07.S | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/aarch64/mariokartwii_ch07.S b/aarch64/mariokartwii_ch07.S deleted file mode 100644 index fa1c082..0000000 --- a/aarch64/mariokartwii_ch07.S +++ /dev/null @@ -1,46 +0,0 @@ -// ================================================================================================ -// Code written while following chapter 7 of the MarioKart Wii ARM64 assembly tutorial: -// https://mariokartwii.com/arm64/ch7.html -// -// License: -// Copyright (c) 2026 Hunter Kvalevog -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -// WITH REGARD TO THIS SOFTWARE. -// ================================================================================================ - -#include "../_/aarch64/common.S" - -TEXT_SEGMENT - -.global SYM(main) - -SYM(main): - // Add - mov x0, #1 - mov x1, #2 - add x2, x0, x1 - - // Add immediate - add x3, x2, #0x100 - - // Subtract immediate - mov x4, x3 - sub x4, x4, #0x100 - - // Multiply - mov x5, #5 - mul x5, x4, x5 - - // Divide - udiv x6, x5, x4 - mov x7, #-1 - sdiv x7, x6, x7 - - neg x8, x7 - - brk #0 // (lldb) register read - |
