Rust character drawing
This commit is contained in:
6
bench/programs/pixel.s
Normal file
6
bench/programs/pixel.s
Normal file
@@ -0,0 +1,6 @@
|
||||
_start:
|
||||
li x1, 0x80000000
|
||||
li x2, 0xFFFFFFFF
|
||||
sw x2, 0(x1)
|
||||
stop:
|
||||
jal x0, stop
|
||||
10
bench/programs/test.s
Normal file
10
bench/programs/test.s
Normal file
@@ -0,0 +1,10 @@
|
||||
.text
|
||||
_start:
|
||||
addi sp,sp,-16
|
||||
li a0,1
|
||||
sb a0,15(sp)
|
||||
addi a0,sp,15
|
||||
lui t6,0x6f569
|
||||
slli t6,t6,0x15
|
||||
addi t6,t6,-1 # 0x6f568fff
|
||||
j 0x1c
|
||||
Reference in New Issue
Block a user