Giter VIP home page Giter VIP logo

stpe / jniosemu Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 9.0 1.1 MB

JNiosEmu is an educational Nios II based development environment and emulator with the purpose of making it easy to learn programming in assembler. Assemble your source with a single button click, immediately see how values change in a register or memory. All this without any prior knowledge of assembler programming or complex tool chains.

Home Page: http://stpe.github.io/jniosemu/

Assembly 5.33% Shell 0.11% Java 93.22% Batchfile 0.45% NSIS 0.90%
assembler emulator nios altera java

jniosemu's Introduction

jniosemu's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jniosemu's Issues

Program freeze after NumberFormatException

NumberFormatExceptions are thrown sometimes when immediate values or variable initializers are too big to be stored. This makes all buttons have no effect when clicked and not being able to save or exit the program.

I am running Linux with OpenJDK version 1.8.0_322.

Steps to reproduce:
assemble the following program

.data
	a: .byte 0xFFFFFFFFFFFFFFFF
.end

This will result in the following exception:

Exception in thread "Thread-0" java.lang.NumberFormatException: For input string: "FFFFFFFFFFFFFFFF"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:592)
	at jniosemu.emulator.compiler.Compiler.parseValue(Compiler.java:165)
	at jniosemu.emulator.compiler.Compiler.parseValue(Compiler.java:93)
	at jniosemu.emulator.compiler.Variable.<init>(Variable.java:37)
	at jniosemu.emulator.compiler.Compiler.parseLine(Compiler.java:323)
	at jniosemu.emulator.compiler.Compiler.parseLine(Compiler.java:278)
	at jniosemu.emulator.compiler.Compiler.compile(Compiler.java:448)
	at jniosemu.emulator.EmulatorManager.compile(EmulatorManager.java:306)
	at jniosemu.emulator.EmulatorManager.update(EmulatorManager.java:413)
	at jniosemu.events.EventManager$EventSender.sendEvent(EventManager.java:294)
	at jniosemu.events.EventManager$EventSender.run(EventManager.java:254)

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.