Code Monkey home page Code Monkey logo

armsimulator's Introduction

๐Ÿ”ฅ๐Ÿ‘‹ Welcome to the chaos ๐Ÿ‘‹๐Ÿ”ฅ

If you found your way to this place then you must be a lost soul. You now have the chance to turn back before you get lost in code straight from hell.

๐ŸŒน Current Language Favorites

  • Haskell ๐Ÿ”ฅ
  • Rust ๐ŸŒ
  • C++

Languages for the Future ๐Ÿง‘โ€๐Ÿš€

  • APL
  • R
  • Go

Favorite Hardware Forever

  • ESP8266 ๐Ÿฅณ ESP32 ๐Ÿซ

System Favorite

  • Distribution: Archlinux ๐Ÿ˜Ž
  • Shell: fish ๐ŸŸ
  • Desktop: Plasma5 | XMonad
  • Fileexplorer: pcmanfm ๐Ÿ“‚
  • Editor: Vim | Code-Oss ๐Ÿ’™

Interests

  • Robotics ๐Ÿค–
  • Simulation ๐Ÿงฎ
  • Graphics ๐Ÿ”บ
  • Artificial Intelligence
  • Functional Programming

Favorite Projects

Sim

Checker

image

armsimulator's People

Contributors

mrdiver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

armsimulator's Issues

Support for asciz data type

Is your feature request related to a problem? Please describe.
The feature request is related to being unable to simulate code that uses asciz in the data section.

Describe the solution you'd like
Code that uses the asciz data type to be simulatable.

Describe alternatives you've considered
None.

Additional context
None

Crash with "terminate called after throwing an instance of 'std::out_of_range'"

Describe the bug
Hitting "Compile" causes AsmEditor to crash with message

terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 1)
[1]    34863 abort (core dumped)  ./AsmEditor

To Reproduce
Steps to reproduce the behavior:

  1. Enter source code below
  2. Click on 'Compile'
  3. See error in Terminal.

Expected behavior
Compile source

Source code pasted into editor

.global main 

main:
	mov r0, #10		/* a -> R0	*/
	mov r1, #16		/* b -> R1	*/
	mov r2, #4		/* c -> R2	*/

	sub r0, r0, r2		/* d -> R0, d = a - c	*/
	
	mul r2, r0, r2		/* a -> R2, a = 3 + c * d	*/
	add r2, r2, #3  	/* c =+ 3	*/

	lsr r1, r1, #1		/* b = b/2	*/
	add r1, r1, r2		/* c -> R1, c = b / 2 + a	*/
	
	mul r0, r2, r0 		/* d =* a	*/
	sub r0, r0, r1		/* a = d - c*/

end:
	bx lr

This works on the RBG ARM-Server, so I suspect it's not me crashing the emulator.

Desktop (please complete the following information):

  • OS: Linux Manjaro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.