Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsoox committed Nov 18, 2019
1 parent 9dcd5ac commit a77aea4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions asm/branch.s
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# After the completing the execution, the x31 register should have the
# value of 12 (= 0x0c).

.text
.align 2
.globl _start
.text
.align 2
.globl _start
_start: # code entry point
li t0, 1
li t1, 2
Expand Down
14 changes: 7 additions & 7 deletions asm/fib.s
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
# have the value fib(5) = 8.


.text
.align 2
.globl _start
.text
.align 2
.globl _start
_start: # code entry point
lui sp, 0x80020 # set the stack pointer to 0x80020000
li a0, 5 # set the argument
call fib # call fib(5)
ecall # terminate the program
lui sp, 0x80020 # set the stack pointer to 0x80020000
li a0, 5 # set the argument
call fib # call fib(5)
ecall # terminate the program

fib:
li a5, 1 # a5 <- 1
Expand Down
6 changes: 3 additions & 3 deletions asm/forward.s
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# After successful completion, the x31 register should have the
# value of 9.

.text
.align 2
.globl _start
.text
.align 2
.globl _start
_start: # code entry point
li x31, 0
li t0, 1
Expand Down
6 changes: 3 additions & 3 deletions asm/loaduse.s
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# After the completing the execution, the x31 register should have the
# value of 1.

.text
.align 2
.globl _start
.text
.align 2
.globl _start
_start: # code entry point
lui t0, 0x80010
li x31, 3
Expand Down
6 changes: 3 additions & 3 deletions asm/sum100.s
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# This program computes the sum of integers from 1 to 100.
# The x31 register should have the value of 5050 (= 0x13ba).

.text
.align 2
.globl _start
.text
.align 2
.globl _start
_start: # code entry point
li t0, 1
li t1, 100
Expand Down

0 comments on commit a77aea4

Please sign in to comment.