Skip to content

Instantly share code, notes, and snippets.

@wit543
wit543 / gist:0dd728330164d9a7ae3836bcc6550624
Created January 23, 2020 07:12
How to add partition and mount
root@v01 /home/w
# fdisk /dev/sda # drive to create partition !770
-----------------------------------------------------------------------------------------------------------------
Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
.data
helloworld: .asciiz "Hello World"
line: .asciiz "\n"
.text
main:
j looping
print_hello_world:
la $a0, helloworld
li $v0, 4 # 4 print_string
syscall