# NOTES: 
# This is RISC-V version; 2020
# Use simulator RARS: https://github.com/TheThirdOne/rars/releases (Download only: rars1_4.jar)
# If unsure about an instruction or system-call (i.e., environment-call), always check:
# [instructions]  https://github.com/TheThirdOne/rars/wiki/Supported-Instructions 
# [system calls]  https://github.com/TheThirdOne/rars/wiki/Environment-Calls 

.data

greet: .asciz "Hello world from Cris!\n"

.text

main:

  # print a message using system (or also referred to as environment) call;
  # see: https://github.com/TheThirdOne/rars/wiki/Environment-Calls 
  # for details on available system calls!
  li a7, 4
  la a0, greet
  ecall  

  # exit the program
  li  a7, 10 
  ecall
