Skip to content

Commit 90cc0cc

Browse files
committed
Use USER_CODE_BASE here to ease maintainance.
1 parent 4219818 commit 90cc0cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ void timer1_isr_forward() __naked {
149149
jnz timer1_isr_forward_bootloader
150150
; Bootloader not running, jump into the payload ISR
151151
pop acc
152-
ljmp #(0x1400+0x4B)
152+
ljmp #(USER_CODE_BASE+0x4B)
153153
timer1_isr_forward_bootloader:
154154
pop acc
155155
ljmp _timer1_isr
156156
__endasm;
157157
#else
158158
__asm
159-
ljmp #(0x1400+0x4B)
159+
ljmp #(USER_CODE_BASE+0x4B)
160160
__endasm;
161161
#endif
162162
}

0 commit comments

Comments
 (0)