Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
keiravillekode committed Oct 19, 2024
1 parent bfae76f commit 2565060
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exercises/practice/grains/.meta/example.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
square:
sub x0, x0, #1
cmp x0, #64
bhs .invalid
bhs .invalid /* unsigned >= */

mov x1, #1
lsl x0, x1, x0
lsl x0, x1, x0 /* 1 << (number - 1) */
ret

.invalid:
Expand Down

0 comments on commit 2565060

Please sign in to comment.