Discussion
Loading...

Discussion

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

I am almost certainly going to add some kind of programmable computer to my game. Thinking of making it programmable with assembly and basically implementing something like a 6502 VM that runs a handful of instructions per game tick. But I'm not entirely sure whether to make it an *actual* 6502, or to just make a similar but simplified ISA

Kinda tempted to do the second one, because 1) making ISAs is fun and 2) standard 6502 assembly is ugly so I'd wanna make some changes anyway.. #gamedev

  • Copy link
  • Flag this post
  • Block
mort
mort
@mort@floss.social replied  ·  activity timestamp 3 months ago

Alright I have designed a little ISA: https://gist.github.com/mortie/d678c4663fe705219e5dfe90e0bbdc3d. It's somewhat 6502-inspiret, but I think it's cute.

Not done yet, but I think it's a decent starting point. Next step: writing a VM and an assembler...

#computerScience #cpu #cpudesign #assembly #retrocomputing

Screenshot of the linked gist, showings the instruction format section, parameter modes section and part of the instructions section
Screenshot of the linked gist, showings the instruction format section, parameter modes section and part of the instructions section
Screenshot of the linked gist, showings the instruction format section, parameter modes section and part of the instructions section
  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.44 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct