Skip to content

Emulator for the MIX computer from The Art Of Computer Programming.

Notifications You must be signed in to change notification settings

harrybraviner/mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MIX Emulator

This emulator is for a binary MIX machine. Each 'byte' is 6 bits in size. The A and X registers, and the main memory, are all 31 bits wide (5 bytes plus a sign bit). The sign bit is 1 for negative, 0 for positive. These are stored in the emulator as u32. The I1, I2, ..., I6 and J registers are 13 bits wide, and are stored as u16.

Notes

ToDo

  • Refactor to remove the Result< , > wrapper on some of the internal calls that never fail. (And possibly on ones where failure is an error of the mix machine).
  • Add peripherals.
  • Refactor code s.t. the register branches are less biolerplate.
  • Refactor the 'helper functions' to convert from 5 byte to 2 byte registers etc. into separate helper module.
  • Add print functionality for the registers? As a helper function?

About

Emulator for the MIX computer from The Art Of Computer Programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages