We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c6620 commit 5062ecaCopy full SHA for 5062eca
CEdev/lib/src/std/shared/exit.asm
@@ -47,7 +47,7 @@ _exit:
47
ld de,_already_in_atexit
48
ld a,(de)
49
or a,a
50
- ret nz ; check to see if some idiot called exit()
+ jp nz,__exit ; check to see if some idiot called exit()
51
inc a
52
ld (de),a
53
push hl
@@ -68,4 +68,4 @@ _lexit: ld hl,___atexit_registered
68
jr _lexit
69
70
_end: pop hl
71
- ret
+ jp __exit
0 commit comments