blob: 82bd0792cfdbf39b6d39335a6488706dc6f245b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#define SERIAL_PORT 0x70000000
#define SYS_EXIT 60
.global _start
.section .rodata
message:
.ascii "=====================\n"
.ascii "Hello everyone!\n"
.ascii "i'm nat, a physics student + hobby kernel dev\n"
.ascii "this is my website\n"
.ascii "it's a very big wip at the moment so please excuse the dust\n"
.ascii "if you would like to contact me, please email me@nwlee.tech with PGP\n"
.ascii "my public key is availale on openpgp keyservers and has a fingerprint of 6E66AD372BC7297B4DDC6260B840FDD90C082232\n"
.ascii "thanks for visiting!\n"
.asciz "=====================\n"
.section .text
_start:
la t0, message
li t1, SERIAL_PORT
mv s1, zero
1:
lbu s0, 0(t0)
beq s0, s1, 2f
sb s0, 0(t1)
addi t0, t0, 1
j 1b
2:
li a7, SYS_EXIT
mv a0, zero
ecall
|