X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=bmw%2Fbmw_small-tinyasm.S;fp=bmw%2Fbmw_small-tinyasm.S;h=801331fbf3f9422c54debe4d0e590cd3131f2f3d;hp=de7ff5a2f62360952f9700b0d7fdc3020cf5f7d0;hb=82de0ec79b83ba107676269ec1feddabb4cfe456;hpb=7bc75db2cff11a8a8b347e27dec3f4e019418d52 diff --git a/bmw/bmw_small-tinyasm.S b/bmw/bmw_small-tinyasm.S index de7ff5a..801331f 100644 --- a/bmw/bmw_small-tinyasm.S +++ b/bmw/bmw_small-tinyasm.S @@ -419,7 +419,7 @@ expand1: */ expand2_rot_table: - .byte 0,3,0,7,0,13,0,16,0,19,0,23,0,27 + .byte 3,7,13,16,19,23,27,0 expand2: rcall expand_intro @@ -428,10 +428,11 @@ expand2: ldi r31, hi8(expand2_rot_table) 10: rcall load32_from_X - mov r20, r19 + sbrs r19, 0 + rjmp 12f lpm r20, Z+ rcall rotateleft32 - rcall add32_to_acc +12: rcall add32_to_acc dec r19 brne 10b ldi r20, 4