Deleted dead code
This commit is contained in:
parent
a63046569d
commit
868c032cbc
1 changed files with 0 additions and 16 deletions
16
hello.s
16
hello.s
|
@ -1,16 +0,0 @@
|
|||
.section .text
|
||||
.globl _hello
|
||||
|
||||
_hello:
|
||||
# Write the string "Hello, World!\n" to stdout
|
||||
la a0, msg # Load the address of the string into a0
|
||||
li a7, 4 # syscall number for write
|
||||
li a1, 13 # Length of the string
|
||||
li a2, 1 # File descriptor: stdout
|
||||
ecall # Make the system call to write
|
||||
|
||||
ret # Return from the function
|
||||
|
||||
.section .data
|
||||
msg:
|
||||
.ascii "Hello, World!\n"
|
Loading…
Reference in a new issue