Skip to content
  • Facebook
  • LinkedIn
  • Twitter
  • Instagram
Sincere Flattery

Sincere Flattery

  • Sincere Flattery
  • About
  • Contact
  • Blog

Search

Category: refactoring

The Forth Protocol

November 7, 2020 by jeremy pereira, posted in forth, refactoring

In which I accidentally discover a performance enhancement I'm really not a fan of the massive switch statement at the heart of the execution loop, so I have decided to see if I can do something with virtual functions or closures on a WordList. The execute function would be reduced to running a particular function … Continue reading The Forth Protocol

Tagged forth, optimisation, performanceLeave a comment

Forth and the Furious

June 8, 2020June 9, 2020 by jeremy pereira, posted in forth, refactoring

In which we go faster This is a bit of an interlude. At this point, I've built a serviceable computing engine that's not quite a Forth implementation but is capable of any computation. We can now look at refactoring some parts of it with respect to increasing performance. At the same time, we want to … Continue reading Forth and the Furious

Tagged forth, optimisationLeave a comment

Metal And Emulation

September 24, 2018September 26, 2018 by jeremy pereira, posted in 6502, Emulation, Metal, refactoring

I thought it was time to learn how to do programming using the GPU. On macOS, that means Metal. I started by following this tutorial. Once I got to about tutorial number 11, I started wondering if I could apply Metal to my emulators. I thought, it would be cool if all of the graphics … Continue reading Metal And Emulation

Leave a comment

The Refactoring Results

June 5, 2017June 20, 2017 by jeremy pereira, posted in refactoring

So I completed the refactoring of the instruction decoding to allow two sources and two destinations. I'm pretty pleased with the results.  It's allowed me to completely eliminate several operations from the decoding code. All the jumps, calls and returns (except RETI, which is not implemented yet and RET cc which requires the stack to … Continue reading The Refactoring Results

Leave a comment

Some Refactoring

June 2, 2017June 5, 2017 by jeremy pereira, posted in decoding, Emulation, refactoring

Whilst I was writing my post about instruction decoding, a thought struck me about improving the structure of decoding. In the existing decoder, I do four things: Get the displacement, if needed Get the source operand, if needed Do the operation Save the result to the destination if needed This works fine but the "do … Continue reading Some Refactoring

Leave a comment

Categories

  • 6502 (3)
  • Armchair Universe (1)
  • C64 (1)
  • Code Snippets (2)
  • decoding (2)
  • Emulation (12)
  • Evolution (2)
  • forth (25)
  • machine learning (2)
  • Metal (3)
  • pandemic (2)
  • progress (3)
  • refactoring (5)
  • Simulation (3)
  • Spectrum (1)
  • Swift (2)
  • Uncategorized (1)
  • Z80 (7)
Blog at WordPress.com.
Cancel