Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jean-Baptiste "JBQ" Quéru
@jbqueru@floss.social  ·  activity timestamp 2 weeks ago

Z80:
modify address in register: inc hl
modify data pointed by register: inc (hl)
use constant: ld a, 42
read constant address: ld a, (42)

68k:
modify address in register: addq #1, a0
modify data pointed by register: addq #1, (a0)
use constant: move #42, d0
read constant address: move 42, d0

There's a good reason why 68k created that inconsistency around immediate data and absolute addresses, but it's annoying that I keep making mistakes when moving between CPUs

#Z80 #mc68000 #RetroComputing

  • 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 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login