Skip to content

Commit e99291d

Browse files
ZERICO2005mateoconlechuga
authored andcommitted
format unconditional jumps in crt0.S
1 parent 9b14449 commit e99291d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/crt/crt0.S

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ __start:
9696
ldir
9797
ld a, ti.kClear
9898
jp ti.JForceCmd
99+
99100
.local ___app_start
100101
___app_start:
101102
#else
@@ -133,6 +134,7 @@ __start:
133134
#if HAS_LIBLOAD
134135
call ti.PushRealO1 ; save running program name
135136
jr .L.tryfind
137+
136138
.L.inram:
137139
call ti.Arc_Unarc
138140
.L.tryfind:
@@ -151,6 +153,7 @@ __start:
151153
pop hl ; start of loader (required to be in hl)
152154
ld de, ___libload_libs ; start of relocation data
153155
jp (hl) ; jump to the loader -- it should take care of everything else
156+
154157
.L.notfound:
155158
call ti.PopRealO1 ; restore running program name
156159
call ti.ClrScrn
@@ -218,6 +221,7 @@ ___libload_libs_ret:
218221
inc hl
219222
ld b, (hl)
220223
jr .L.parse_ans_next
224+
221225
.L.parse_ans_loop:
222226
inc hl
223227
dec bc
@@ -296,6 +300,7 @@ ___libload_libs_ret:
296300
#if HAS_INIT_ARRAY
297301
ld hl, __init_array_start
298302
jr .L.init_array_start
303+
299304
.L.init_array_loop:
300305
push hl
301306
ld hl, (hl)
@@ -345,6 +350,7 @@ _exit:
345350
#if HAS_ATEXIT
346351
; input: (sp + 0) = exit status
347352
jr .L.exit_function_start
353+
348354
.L.exit_function_loop:
349355
ld hl, (ix + 1 + 0 * 3)
350356
ld (__atexit_functions), hl
@@ -374,6 +380,7 @@ _exit:
374380
#if HAS_FINI_ARRAY
375381
ld hl, __fini_array_end
376382
jr .L.fini_array_start
383+
377384
.L.fini_array_loop:
378385
dec hl
379386
dec hl

0 commit comments

Comments
 (0)