Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
mort
@mort@floss.social  ·  activity timestamp 3 weeks ago

Look, my VM computes! I wrote a simple program to first initialize the accumulator to the value 15, then repeatedly increment the accumulator forever.

I don't have an assembler yet, but I *did* write a python script which lets me create a file with the bits I want more easily... With an ISA as simple as mine, that's almost as good as an assembler

I also made my repository public: https://github.com/mortie/scisa

#assembly #cpudesign #computers #programming

Screenshot showing my simple program, and the VM executing the program. Before executing every instruction, the VM prints the state of its registers.

The program is a bit string representing the following assembly program:
MVA $15
ADD $1
B $-2
Screenshot showing my simple program, and the VM executing the program. Before executing every instruction, the VM prints the state of its registers. The program is a bit string representing the following assembly program: MVA $15 ADD $1 B $-2
Screenshot showing my simple program, and the VM executing the program. Before executing every instruction, the VM prints the state of its registers. The program is a bit string representing the following assembly program: MVA $15 ADD $1 B $-2
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login