All Projects → Mati365 → I8086.js

Mati365 / I8086.js

16bit Intel 8086 / 80186 + X87 emulator written in TypeScript with REPL assembly compiler and tiny C compiler

Programming Languages

typescript
32286 projects
assembly
5116 projects
es6
455 projects
assembler
53 projects

Projects that are alternatives of or similar to I8086.js

ts-c99-compiler
ANSI C 16bit Compiler + NASM Assembler + Intel 8086 / 80186 + X87 emulator written entirely in TypeScript
Stars: ✭ 78 (+44.44%)
Mutual labels:  emulator, simulator, repl, preprocessor, x86
Rv8
RISC-V simulator for x86-64
Stars: ✭ 476 (+781.48%)
Mutual labels:  emulator, simulator
Flingos
An educational operating system written in C#. A great stepping stone from high to low level development.
Stars: ✭ 451 (+735.19%)
Mutual labels:  compiler, x86
Emu
cybozu labs youth 7th
Stars: ✭ 51 (-5.56%)
Mutual labels:  x86, emulator
Dosbox Staging
DOS/x86 emulator focusing on ease of use
Stars: ✭ 412 (+662.96%)
Mutual labels:  x86, emulator
Winrepl
x86 and x64 assembly "read-eval-print loop" shell for Windows
Stars: ✭ 424 (+685.19%)
Mutual labels:  x86, repl
Bddisasm
bddisasm is a fast, lightweight, x86/x64 instruction decoder. The project also features a fast, basic, x86/x64 instruction emulator, designed specifically to detect shellcode-like behavior.
Stars: ✭ 540 (+900%)
Mutual labels:  x86, emulator
PokemonBattleEngine
A C# library that can emulate Pokémon battles.
Stars: ✭ 92 (+70.37%)
Mutual labels:  emulator, simulator
Bic
A C interpreter and API explorer.
Stars: ✭ 719 (+1231.48%)
Mutual labels:  compiler, repl
Elm Platform
Bundle of all core development tools for Elm
Stars: ✭ 775 (+1335.19%)
Mutual labels:  compiler, repl
Assembler Simulator
Simple 8-bit Assembler Simulator with Angular.js
Stars: ✭ 792 (+1366.67%)
Mutual labels:  emulator, simulator
Mini C
Dr Strangehack, or: how to write a self-hosting C compiler in 10 hours
Stars: ✭ 372 (+588.89%)
Mutual labels:  compiler, x86
Lbforth
Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
Stars: ✭ 293 (+442.59%)
Mutual labels:  compiler, x86
Unicorn
Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, X86)
Stars: ✭ 4,934 (+9037.04%)
Mutual labels:  x86, emulator
Rascal
The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
Stars: ✭ 284 (+425.93%)
Mutual labels:  compiler, repl
Red
Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!
Stars: ✭ 4,725 (+8650%)
Mutual labels:  compiler, repl
Dustbox Rs
DOS emulator (work in progress)
Stars: ✭ 34 (-37.04%)
Mutual labels:  x86, emulator
emu
cybozu labs youth 7th
Stars: ✭ 50 (-7.41%)
Mutual labels:  emulator, x86
FEX
A fast usermode x86 and x86-64 emulator for Arm64
Stars: ✭ 650 (+1103.7%)
Mutual labels:  emulator, x86
Inc
an incremental approach to compiler construction
Stars: ✭ 702 (+1200%)
Mutual labels:  compiler, x86

i8086.js

Codacy Badge License: MIT GitHub code size in bytes GitHub issues HitCount PRs Welcome Known Vulnerabilities

16 bit x86 virtual machine and assembler simulator written in TypeScript. It is designed to help with prototyping small bootsector (or bigger) real mode games 🎮 and apps 💻.

Used libs:

  • Express.JS
  • NestJS
  • React
  • Ramda
  • TypeORM

Running

yarn run develop

Testing

yarn run test

Status

  • [x] ASM Compiler
    • [x] NASM syntax instruction compiler matcher with expression eval mov ax, byte [ds:label+bx+12+(1/3)]
    • [x] Instruction prefix support rep movsw
    • [x] Compiler bits/org config [bits 16], [org 0x7C00]
    • [x] Labels support jmp_label:
    • [x] Data define support db, dw, dd, dq, dt
    • [x] EQU, times support
    • [x] Floating point numbers support
    • [x] Preprocessor
      • [x] Basic lang keywords support: %if, %ifn, %ifdef, %ifndef, %else, %elif, %elifndef, %elifdef, %elifn, %define, %undef
      • [x] Macros support: %macro, %define, %imacro
      • [x] Predefined macros like __TIMES__
      • [x] Inline expressions calls %[__TIMES__]
    • [x] Output logger
      • [x] Basic logger binary blob serializer helpers
      • [x] Diassembler binary view
      • [x] Branch arrows (for jmp, call, jz etc.)
  • [ ] CPU Emulator
    • [x] Magic breakpoint support xchg bx, bx
    • [x] Interrupts handlers support
    • [x] Basic Intel ~80186 instructions set
    • [x] ALU instructions support
    • [x] FPU Support
      • [x] Assembler
      • [x] Emulator
    • [ ] Basic PIT/PIC support
      • [x] PIT
      • [ ] PIC
      • [ ] IDE
      • [ ] PS2
    • [ ] Graphics mode
      • [x] Basic canvas graphics driver
      • [x] Text Mode
      • [x] Graphics VGA
      • [x] VGA IO ports bindings
    • [ ] BIOS
      • [x] Basic bios interrupt handlers
  • [ ] App frontend
    • [ ] Basic front CSS UI
    • [ ] Debugger
  • [ ] Nano C compiler
    • [ ] Frontend
      • [ ] Syntax parser
    • [ ] Backend
      • [ ] X86-16 Code generator

Screens

Pillman Space invaders Prototype Prototype Tetris ASM Preprocessor ASM Compiler

Docs

https://books.google.pl/books?id=Lq4yDwAAQBAJ&pg=PA120&lpg=PA120&dq=chain4+mode&source=bl&ots=Eun_wNFE7b&sig=ACfU3U37tSXE7qOZn0AKGeFwaaNLS4nrKg&hl=pl&sa=X&ved=2ahUKEwjlupT5-u_pAhVNxhoKHVfRA7YQ6AEwAnoECAoQAQ#v=onepage&q=chain4%20mode&f=false

https://bellard.org/otcc/otccn.c

https://bellard.org/otcc/

https://gist.github.com/nikAizuddin/0e307cac142792dcdeba

http://www.plantation-productions.com/Webster/www.artofasm.com/Windows/HTML/RealArithmetica3.html

https://gist.github.com/mikesmullin/6259449

http://teaching.idallen.com/dat2343/10f/notes/040_overflow.txt

http://ece425web.groups.et.byu.net/stable/labs/8086Assembly.html

http://dsearls.org/courses/C391OrgSys/IntelAL/8086_instruction_set.html

https://pdos.csail.mit.edu/6.828/2008/readings/i386/s17_02.htm

https://xem.github.io/minix86/manual/intel-x86-and-64-manual-vol1/o_7281d5ea06a5b67a-194.html

https://johnloomis.org/ece314/notes/fpu/fpu.pdf

https://www.felixcloutier.com/x86/index.html

https://c9x.me/x86/html/file_module_x86_id_87.html

http://www.osdever.net/FreeVGA/vga/graphreg.htm#06

http://www.osdever.net/FreeVGA/vga/vgamem.htm

http://www.osdever.net/FreeVGA/home.htm

License

The MIT License (MIT) Copyright (c) 2020 Mateusz Bagiński

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].