Skip to content

Commit

Permalink
Merge pull request #43 from DaniElectra/http-close-handle
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra authored Jul 2, 2024
2 parents 6376b0b + 36eb11e commit aa35b29
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions patches/http/src/frdu.s
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,21 @@ get_nasc_environment: ; 0x1accc
add r0, r0, #1 ; add 1 to distinguish uninitialized value 0
ldr r1, =nasc_environment ; load nasc environment address to r1
str r0, [r1] ; store the local nasc environment to memory
ldr r0, =frd_handle ; load frd_handle address to r0
ldr r0, [r0] ; load frd_handle
swi 0x23 ; close frd_handle since we dont need it anymore
ldr r1, =nasc_environment ; load nasc environment address to r1
ldr r0, [r1] ; restore nasc environment to r0
b get_nasc_environment_end ; jump to the end

get_nasc_environment_clear: ; 0x1ad4c
get_nasc_environment_clear: ; 0x1ad60
mov r0, #0

get_nasc_environment_end: ; 0x1ad50
get_nasc_environment_end: ; 0x1ad64
pop {r4, r11, lr}
bx lr

get_frd_u_handle: ; 0x1ad58
get_frd_u_handle: ; 0x1ad6c
push {r11, lr}

ldr r0, =frd_handle ; load frd_handle address to r0
Expand Down

0 comments on commit aa35b29

Please sign in to comment.