Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Bare metal RISC-V assembly examples for Spike (no pk)

License

Notifications You must be signed in to change notification settings

ilya-sotnikov/riscv-asm-spike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riscv-asm-spike

Bare metal RISC-V assembly examples for Spike (no pk)

Structure

  • src -- various examples written in assembly
  • minimal -- minimal example (just terminate with exit code 0)

Examples

  • mtime
  • interrupts (timer)
  • exceptions
  • calling a C function from asm
  • calling an asm subroutine from C
  • simple asm printing subroutines
  • makefile

Usage

To assemble, link and run:

make run