summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
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`