You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal here is just to replace the highlighted instruction sequences with snez a0, a0 and seqz a0, a0 respectively. This works because at either of these points in time a0 will just be either zero or nonzero. Really the only issue I see with this would be alignment for the rest of the start of packet_type_loop, but that's fixable.
While looking at the rv32e instruction set i found these 2 which can be very useful:
which can be used here to save 3 instructions:
rv003usb/firmware/rv003usb.S
Lines 142 to 144 in 4cfe820
and this
which can be used here as an alternative:
rv003usb/firmware/rv003usb.S
Line 285 in 4cfe820
with both of those changes combined you may even be able to drop the requirements of having D- before D+
The text was updated successfully, but these errors were encountered: