Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Colin McMillen
@colin_mcmillen@piaille.fr  ·  activity timestamp 2 days ago

Coding for speed on 6502

(1st version: ~200 cycles)
(2nd version: 38 cycles)
(3rd version: 12 cycles)
(4th version: 4 cycles, but requires 256 bytes of memory)
#RetroComputing

A "cosmic brain" meme showing how one goes from a naive to a fast approach to get three-quarters of an 8bits value. 
- A = X*3/4
- A = (2X+X)/4
- A = (X+X/2)/2
- A = three_quarters_table,X
A "cosmic brain" meme showing how one goes from a naive to a fast approach to get three-quarters of an 8bits value. - A = X*3/4 - A = (2X+X)/4 - A = (X+X/2)/2 - A = three_quarters_table,X
A "cosmic brain" meme showing how one goes from a naive to a fast approach to get three-quarters of an 8bits value. - A = X*3/4 - A = (2X+X)/4 - A = (X+X/2)/2 - A = three_quarters_table,X
  • 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.2.11 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct