fix branch condition for non multiple of 4Byte size

This commit is contained in:
Chiharu Shirasaka 2022-01-23 04:28:21 +09:00
parent 3744630abf
commit 17cc2d2278

2
main.S
View File

@ -34,7 +34,7 @@ _start:
cmp r2, r1 cmp r2, r1
str r0, [r3] str r0, [r3]
mov r3, r2 mov r3, r2
bne copy_loop blt copy_loop
//RAM clear //RAM clear
ldr r2,=0x60200000 //clear start ldr r2,=0x60200000 //clear start