1. examples
      1. fibonacci.s
      2. ansi.s
    2. hello.s
    3. kernel
      1. stack.s
      2. endian.s
      3. util.s
      4. memory.s
      5. stdlib.s
      6. virtio.s
      7. console.s
      8. const.s
      9. start.s
      10. elf.s
      11. paging.s
      12. trap.s
      13. rtc.s
      14. fdt.s
      15. syscall.s
      16. kmain.s
      17. random.s
    Console output. When you assemble something and stub your toe slightly, those errors will appear here.
    
    pc0x0000000000000000
    ra0x0000000000000000
    sp0x0000000000000000
    gp0x0000000000000000
    tp0x0000000000000000
    t00x0000000000000000
    t10x0000000000000000
    t20x0000000000000000
    t30x0000000000000000
    t40x0000000000000000
    t50x0000000000000000
    t60x0000000000000000
    s00x0000000000000000
    s10x0000000000000000
    s20x0000000000000000
    s30x0000000000000000
    s40x0000000000000000
    s50x0000000000000000
    s60x0000000000000000
    s70x0000000000000000
    s80x0000000000000000
    s90x0000000000000000
    s100x0000000000000000
    s110x0000000000000000
    a00x0000000000000000
    a10x0000000000000000
    a20x0000000000000000
    a30x0000000000000000
    a40x0000000000000000
    a50x0000000000000000
    a60x0000000000000000
    a70x0000000000000000
    1. AddressCodeDisassemblyLineSource
    2. AddressValue (+0)Value (+4)Value (+8)Value (+12)Value (+16)Value (+20)Value (+24)Value (+28)Printed
    1. RISC-V Assembler and Runtime Simulator (RARS)

      Logo

      RARS is a learning tool designed to help teach architecture concepts through the writing of assembly language. The language used is RISC-V, an up-and-coming open RISC architecture based on MIPS. RARS itself is loosely modeled after its own namesake, MARS, which is an equivalent learning solution for MIPS assembly.

      RARS is built off of entirely free and open software and is designed to be easy to deploy to any modern environment as a static website. It uses emscripten to compile the free and open toolchain that RARS uses to assemble and inspect application binaries all within the web browser's native JavaScript engine.

      The simulator (or emulator if you must) that runs the RISC-V application and kernel is TinyEmu by Fabrice Bellard, and is itself permissively licensed and open. Without this, the modifications required to make it work in an educational environment would not have been possible. And in the same spirit, RARS is offered, along with the educational RISC-V kernel written alongside it, completely openly and free.

      License

      The main web application and program content is licensed under the terms of the GNU AGPLv3.0 license.

      Development

      • RARS Programming and Design: wilkie
      • TinyEmu RISC-V System Emulator: Fabrice Bellard, modifications by wilkie
      • GNU Binutils: Nick Clifton, Sebastian Huber, Simon Marchi, Eric Botcazou, Francois H. Theron, Maciej W. Rozycki, Stafford Horne, Alan Modra, Matt Rice, Andrew Jenner, Josh Conner, Doug Evans, Yan-Ting Lin, Walter Lee, Cary Coutant, H.J. Lu, Tristan Gingold, Yaakov Selkowitz, John David Anglin, Mike Frysinger, Max Ostapenko, Ed Schouten, James Bowman, Anthony Green, Andrew Pinski, Hans-Peter Nilsson, Jan-Benedict Glaw, Jing Yu, Andrew Bennett, Kuan-Lin Chen, Joel Brobecker, Will Newton, Joel Sherrill, Samuel Bronson, Sandra Loosemore, Jakub Jelinek, Richard Sandiford, Rainer Orth, Keven Boell, Francois-Xavier Coudert, Thomas Schwinge, Balaji V. Iyer, Jason Merrill, Jeff Law, Jeff Johnston, George Thomas, Yufeng Zhang, Ian Lance Taylor, Ben Elliston, Roland McGrath, Richard Henderson, Dodji Seketeli, David Edelsohn, Wei Mi, Robert Mason, Corinna Vinschen, David Holsgrove, Diego Novillo, Georg-Johann Lay, Richard Guenther, Steve Ellcey, Jiong Wang, Steven Bosscher, Christophe Lyon, Olivier Hainque, Janne Blomqvist, Andreas Tobler, Catherine Moore, Joern Rennecke, DJ Delorie, Yao Qi, Doug Kwan, Joseph Myers, Ralf Wildenhues, John Marino, Paolo Bonzini, Sebastian Pop, Alexandre Oliva, Andreas Schwab, Tobias Burnus, Matthias Klose, Tobias Grosser, Andreas Simbuerger, Michael Eager, Iain Sandoe, Bernd Schmidt, Dave Korn, Naveen.H.S, Jack Howarth, Kaveh R. Ghazi, Ozkan Sezer, Kai Tietz, Rafael Avila de Espindola, Simon Baldwin, Loren J. Rittle, Jie Zhang, Christopher Faylor, Ryan Mansfield, Jerome Guitton, Eli Zaretskii, Tom Tromey, Douglas B Rupp, Daniel Jacobowitz, Stefan Schulze Frielinghaus, Peter O'Gorman, Aaron W. LaFramboise, Nicolas Roche, Julian Brown, David S. Miller, M R Swami Reddy, NightStrike, Andreas Krebbel, Florian Krohm, Marc Gauthier, Patrick Mansfield, Benjamin Kosnik, David Daney, Rask Ingemann Lambertsen, Andrew Haley, Paul Brook, Brooks Moses, Eric Christopher, Matt Kraai, Mark Mitchell, Dave Brolley, Matt Fago, Kazu Hirata, Mike Stump, Thiemo Seufer, David Ayers, Mark Shinwell, Carlos O'Donell, Leif Ekblad, Nathan Sidwell, James E Wilson, Geoffrey Keating, Phil Edwards, Richard Earnshaw, Christian Groessler, Kelley Cook, Jim Blandy, Zack Weinberg, Tobias Schlüter, Aldy Hernandez, Jörn Rennecke, Manfred Hollstein, Paul Schlie, Andrew Cagney, Andrew Stubbs, Eric B. Weddington, Ulrich Weigand, Tomer Levi, Michael Roth, Roger Sayle, Daniel Berlin, Jan Beulich, Robert Millan, Nathanael Nerode, Stan Shebs, Arnaud Charlet, Bernardo Innocenti, Thomas Fitzsimmons, Mohan Embar, Michael Chastain, Alexandre Duret-Lutz, Bob Wilson, Keith Seitz, Andreas Jaeger, Chris Demetriou, Gerald Pfeifer, Franz Sirl, Uwe Stieber, Sean McNeil, Keith R Seitz, Frank Ch. Eigler, Christian Cornelssen, Bruce Korb, Kevin Buettner, Svein E. Seldal, Jason Thorpe, Federico G. Schwindt, Denis Chertykov, Olaf Hering, Marek Michalkiewicz, Krister Walfridsson, Adam Megacz, Douglas B. Rupp, Joseph S. Myers, Will Cohen, Graham Stott, Stephane Carrez, Jeffrey Oldham, Colin Howell, Laurynas Biveinis, Nicola Pero, Chandrakala Chavva, Bryce McKinlay, Alexandre Petit-Bianco, Fred Fish, Michael Meissner, Andris Pavenis, Jeffrey A Law, Loren James Rittle, Mo DeJong, Mark Salter, Laurent Guerby, Jeff Holcomb, Simon Patarin, Tom Rix, Philip Blundell, Martin Schwidefsky, Michael Sokolov, Per Lundberg, Jim Wilson, Koundinya K, Timothy Wall, Phillip Thomas, Dave Pitts, Linas Vepstas, Geoff Keating, Steve Chamberlain, Mumit Khan, Cort Dougan, Stephen L Moshier, Drew Moseley, Donn Terry, Philipp Thomas, Gavin Romig-Koch, Mark Elbrecht, Geoffrey Noer, Marc Espie, Robert Lipe, Rodney Brown, Bob Manson, Niall Smart, Syd Polk, Felix Lee, Michael Hayes, John Hughes, Lutz Wohlrab, Mark Klein, Per Bothner, Brendan Kehoe, Klaus Kämpf, John Metzler, Mark Alexander, Paul Eggert, Jason Molenda, J. Kean Johnston, Philippe De Muyter, Eric Mumpower, Dave Love, Bruno Haible, Lassi A. Tuura, Pieter Nagel, Lee Iverson, Rob Savoye, Gavin Koch, Aaron Jackson, Stu Grossman, Ulrich Drepper, Chris Provenzano, Robert Hoehne, Stephen Peters, Martin M. Hunt, Michael Snyder, Per Fogelstrom, Niklas Hallqvist, Martin Hunt, Martin, Ken Raeburn, Peter Schauer, Kim Knuttila, David J. MacKenzie, Angela Marie Thomas, James G. Smith, J.T. Conklin, Harlan Stenn, Marilyn E. Sander, Dawn Perchik, Christian Bauernfeind, Tom Horsley, Raymond Jou, Torbjorn Granlund, Stan Cox, Jeffrey A. Law, steve chamberlain, Jim Kingdon, Kung Hsu, Dean Messing, Bill Cox, D. V. Henkel-Wallace, Michael Tiemann, Karen Christiansen, Tom Lord, David J. Mackenzie, Hisashi MINAMINO, Richard Kenner, david d 'zoo' zuhn, Mark Eichin, Jeffrey Wheat, K. Richard Pixley, John Gilmore, Mike Werner, Minh Tran-Le

      Localization

      • English: wilkie

      Artwork

      Documentation

      • General: wilkie
      • Tutorials: wilkie

      Open Source Software

      This program would not be possible if not for the existing and ongoing effort provided by the community at large within these independently developed and maintained projects.