summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-02-14 20:08:44 +1100
committerkitty <nepeta@canaglie.net>2026-02-14 20:08:44 +1100
commit7ff5ac1840a86e4f70a945e11bc54fa9246cf000 (patch)
treeec08b5e93b1321c77b61bf28432511294bb12958 /jefs.s
parent8f339f837f5a6a38d47691327f32d1f5a3675930 (diff)
0branch (untested)
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s12
1 files changed, 10 insertions, 2 deletions
diff --git a/jefs.s b/jefs.s
index 05598a0..6eb5a80 100644
--- a/jefs.s
+++ b/jefs.s
@@ -633,8 +633,16 @@ defword "branch", branch, 0
mov qword [here], r12
ret
-; defword "0branch", zerobranch, 0
-; ret
+defword "0branch", zerobranch, 0
+ mov r12, [here]
+ mov r11, 0x4d08768d4d1e8b4d ; pspop r11, first bit of test r11, r11
+ mov qword [r12], r11
+ add r12, 8
+ mov dword [r12], 0x840fdb85 ; rest of ^, je
+ add r12, 4
+ ; include 32bit offset yourself
+ mov qword [here], r12
+ ret
; TEMPORARY HORRIBLE DEBUGGING BULLSHIT {{{
; debugging word; outputs raw bytes so needs to be piped through `x(x)d`