Compare commits

..
1 Commits
Author SHA1 Message Date
Michał Isalski 78209d75e5 Removed one push-pop pair 2026-09-14 00:24:57 +02:00
+3 -2
View File
@@ -78,7 +78,7 @@ pub new_hashset:
add r1, r1, 4
store_32 [r1], r12 ; eq context is in r12
add r12, r1, 4 ; Now r12 is hashset pointer at data_ptr
mov r12, r1
load_32 r5, [r8] ; Loading the alloc function address
mov r1, 64
@@ -86,9 +86,10 @@ pub new_hashset:
add r13, r13, 12
jmp r5 ; allocating the space for the data
add r2, r12, 4 ; Now r1 is data pointer, r2 is hashset pointer at data_ptr
store_32 [r2], r1 ; data pointer saved
sub r1, r12, 28 ; Getting the pointer to start of the hashset
mov r1, r12 ; Getting the pointer to start of the hashset
pop r13 ; Everything's set up, return
pop r12