diff options
| author | cheapie <no-email-for-you@example.com> | 2026-05-23 20:14:34 -0500 |
|---|---|---|
| committer | cheapie <no-email-for-you@example.com> | 2026-05-23 20:14:34 -0500 |
| commit | 85b5fde272be6ab543aa866baebabddc24566bdb (patch) | |
| tree | b4f2e3bb634effe51c2bdc5585ca4ea8b98d6dfa /fib.S | |
| download | rvcontroller-85b5fde272be6ab543aa866baebabddc24566bdb.tar rvcontroller-85b5fde272be6ab543aa866baebabddc24566bdb.tar.gz rvcontroller-85b5fde272be6ab543aa866baebabddc24566bdb.tar.bz2 rvcontroller-85b5fde272be6ab543aa866baebabddc24566bdb.tar.xz rvcontroller-85b5fde272be6ab543aa866baebabddc24566bdb.zip | |
Add initial content
Diffstat (limited to 'fib.S')
| -rw-r--r-- | fib.S | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +li t0,0 +li t1,1 +li t3,0x7fffffff +loop: +add t2,t1,t0 +mv t0,t1 +mv t1,t2 +li a7,1 +mv a0,t0 +ecall +li a7,11 +li a0,0x0a +ecall +bltu t2,t3,loop + +li a0,0xa +li a7,11 +ecall +li a7,1 +rdinstret a0 +ecall +la a0,instructions +li a7,4 +ecall + +li a7,10 +ecall + +instructions: .asciz " instructions\n" |
