Skip to content

A basic x86 disassembler + 8086 simulator written in Zig

License

Notifications You must be signed in to change notification settings

mtimbs/zig-8086-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Zig + CPUs more good

A simple x86 dissasembler + 8086 simulator in Zig

Goal:

  • Learn more about Zig so I can compare it to Odin
  • Learn more about Assembly and how CPUs work in general in the process

Tools

Resources

Aknowledgements

I am building this as I am following along with the course by C. Muratori at https://www.computerenhance.com

TODO

  • handle dynamically parsing number of bytes (e.g single byte instructions, hi/lo displacement, multiple instructions etc)
  • change diff to work on the machine code not .asm files (handles comments and signed integers)
  • handle movs from more_movs.asm
  • handle challenge_mov.asm

About

A basic x86 disassembler + 8086 simulator written in Zig

Topics

Resources

License

Stars

Watchers

Forks