Skip to content

Commit

Permalink
Format zasm
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Jun 25, 2024
1 parent 2ea64de commit 374a4f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions programs/rol_sets_eq_flag.zasm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
__entry:

.func_begin0:
; EQ is set if the result is zero
; EQ is set if the result is zero
add 0, r0, r1
add 0, r0, r2
rol! r1, r2, r1
rol! r1, r2, r1
sstore r0, r1
ret

Expand Down
4 changes: 2 additions & 2 deletions programs/ror_sets_eq_flag.zasm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
__entry:

.func_begin0:
; EQ is set if the result is zero
; EQ is set if the result is zero
add 0, r0, r1
add 0, r0, r2
ror! r1, r2, r1
ror! r1, r2, r1
sstore r0, r1
ret

Expand Down
4 changes: 2 additions & 2 deletions programs/shl_sets_eq_flag.zasm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
__entry:

.func_begin0:
; EQ is set if the result is zero
; EQ is set if the result is zero
add 0, r0, r1
add 0, r0, r2
shl! r1, r2, r1
shl! r1, r2, r1
sstore r0, r1
ret

Expand Down
4 changes: 2 additions & 2 deletions programs/shr_sets_eq_flag.zasm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
__entry:

.func_begin0:
; EQ is set if the result is zero
; EQ is set if the result is zero
add 0, r0, r1
add 0, r0, r2
shr! r1, r2, r1
shr! r1, r2, r1
sstore r0, r1
ret

Expand Down

0 comments on commit 374a4f9

Please sign in to comment.