All Projects → parraman → asm-simulator

parraman / asm-simulator

Licence: MIT license
16-bit Assembler Simulator

Programming Languages

typescript
32286 projects
CSS
56736 projects
HTML
75241 projects
assembly
5116 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to asm-simulator

Physics
experimenting with physics simulation
Stars: ✭ 53 (+15.22%)
Mutual labels:  simulator
CarAiSimulator
Selfdriving car AI and a simulator to drive in
Stars: ✭ 15 (-67.39%)
Mutual labels:  simulator
quackle
Quackle crossword game artificial intelligence and analysis tool
Stars: ✭ 126 (+173.91%)
Mutual labels:  simulator
8800-simulator
A JavaScript simulator to demonstrate the front panel operations of Altair 8800.
Stars: ✭ 65 (+41.3%)
Mutual labels:  simulator
teknowledge
A basic CS curriculum for coding in Python.
Stars: ✭ 26 (-43.48%)
Mutual labels:  computer
sar2
Search and Rescue II. Helicopter flight simulator for Linux and OSX.
Stars: ✭ 20 (-56.52%)
Mutual labels:  simulator
FluentSimulator
A fluent syntax .NET REST/HTTP API simulator for automated unit and UI testing.
Stars: ✭ 23 (-50%)
Mutual labels:  simulator
Werk
High-throughput / low-latency C++ application framework
Stars: ✭ 30 (-34.78%)
Mutual labels:  simulator
COVIDstats
COVID-19 Statistical Analysis Simulator App using R deployed on shinyapps.io a John Hopkins University COVID count clone and simulator
Stars: ✭ 13 (-71.74%)
Mutual labels:  simulator
GlucoSym
GlucoSym is an open-source simulator aimed to help in the testing and development of insulin delivery automation systems.
Stars: ✭ 33 (-28.26%)
Mutual labels:  simulator
iBeacon-Android
iBeacon scanner and simulator - Android application example
Stars: ✭ 28 (-39.13%)
Mutual labels:  simulator
simple-playgrounds
Simulator for Reinforcement Learning and AI. 2D environments with physics and interactive entities. Agents with rich sensors and actuators.
Stars: ✭ 18 (-60.87%)
Mutual labels:  simulator
DesignSPHysics
Module for FreeCAD intended to use with DualSPHysics fluid simulator.
Stars: ✭ 65 (+41.3%)
Mutual labels:  simulator
continuous Bernoulli
There are C language computer programs about the simulator, transformation, and test statistic of continuous Bernoulli distribution. More than that, the book contains continuous Binomial distribution and continuous Trinomial distribution.
Stars: ✭ 22 (-52.17%)
Mutual labels:  simulator
mano-simulator
🖥️ An assembler and hardware simulator for the Mano Basic Computer, a 16 bit computer.
Stars: ✭ 20 (-56.52%)
Mutual labels:  simulator
XWorld
A C++/Python simulator package for reinforcement learning
Stars: ✭ 82 (+78.26%)
Mutual labels:  simulator
SLAM Qt
My small SLAM simulator to study "SLAM for dummies"
Stars: ✭ 47 (+2.17%)
Mutual labels:  simulator
ramssd
Open-Channel SSD emulator using memory
Stars: ✭ 18 (-60.87%)
Mutual labels:  simulator
rcj-soccer-sim
The RoboCupJunior Soccer Simulator, based on Webots
Stars: ✭ 16 (-65.22%)
Mutual labels:  simulator
rmua19 ignition simulator
Gazebo Simulator for RoboMaster University AI Challenge 2019
Stars: ✭ 15 (-67.39%)
Mutual labels:  simulator

16-bit Assembler Simulator

A simulator of a 16-bit CPU. This project has been developed for educational purposes to support the teaching of operating systems.

The simulator is based on a previous project made by Marco Schweighauser. This project reuses the instruction parsing mechanism, based on the use of regular expressions, and extends the original instruction set with new instructions to handle byte-mode accesses, interrupts, dual-mode execution, system calls and exceptions. It has been fully written in Typescript using Angular 2+ and PrimeNG and uses CodeMirror as a component for code editing. It also uses the angular-split module to split the different panel views. The GitHub link icon on the uppermost right corner of the application is a GitHub corner.

You can try it online here.

Features

  • A 16-bit big-endian CPU.
  • Two modes of operation: supervisor & user. Each mode of operation has its own SP register.
  • 4 general purpose registers, which can be accessed in word or byte modes.
  • 1024 bytes of memory.
  • A Memory Protection Unit (MPU).
  • 16-bit input/output address map which can be accessed using IN/OUT instructions.
  • An interrupt controller that supports up to 16 interrupt sources.
  • A programmable 16-bit timer.
  • Three input/output devices:
    • Visual display with a resolution of 16x16.
    • Textual display of 2x16 characters.
    • 3x4-keys numeric keypad.
  • Inline memory editing.
  • Execution breakpoints.

Simulator's architecture

The architectural description of the simulator comprises the following components:

Core components
  • CPU (CPUService): simulates the Central Processing Unit.
  • Memory (MemoryService): simulates the memory map. It allows the different input/output devices to map memory regions (e.g. framebuffers).
  • I/O Registers Map (IORegMapService): simulates the input/output registers map. The different devices can use it to define different registers and map them.
  • IRQ Controller (IRQCtrlService): simulates the interrupt controller.
  • Timer (TimerService): implements the 16-bits timer.
Input/Output
  • Visual Display (VisualDisplayComponent): visual display of 16x16 pixels. It can be accessed through a framebuffer defined as a memory region.
  • Keypad (KeypadComponent): a numeric keypad.
  • Textual Display (TextualDisplayComponent): a 16 characters textual display.
View components
  • CPU Registers View (RegistersViewComponent): component that displays the contents of the CPU registers.
  • Memory view (MemoryViewComponent): component that visualizes the contents of the memory map. It also allows to edit the value of the cells inline.
  • I/O Registers View (IORegistersViewComponent): component that displays the I/O registers map.

License

The MIT License

Copyright (c) 2017-2018 Pablo Parra

Original ISA Copyright (c) 2015 Marco Schweighauser

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].