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

Sincere Flattery

  • Sincere Flattery
  • About
  • Contact
  • Blog

Search

Category: refactoring

Forth Interpreting Itself adDendum

December 13, 2021 by jeremy pereira, posted in forth, refactoring

Last weekend I eliminated the last Swift from the interpreting loop. There are now two pre-predefined words: an outer loop that reads a line of text and calls the the interpreter from the last post and the inner loop that interprets words from a line. The code for each looks something like this: : .readLoop … Continue reading Forth Interpreting Itself adDendum

Tagged forthLeave a comment

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 (3)
  • Computer Science (4)
  • decoding (2)
  • Emulation (12)
  • Evolution (2)
  • forth (29)
  • Lambda Calculus (9)
  • machine learning (2)
  • Metal (3)
  • pandemic (2)
  • Programming (12)
  • progress (4)
  • protocol oriented programming (2)
  • Puzzle cheats (1)
  • refactoring (6)
  • Simulation (3)
  • Spectrum (1)
  • Swift (4)
  • Uncategorized (2)
  • Z80 (7)
Blog at WordPress.com.
  • Follow Following
    • Sincere Flattery
    • Already have a WordPress.com account? Log in now.
    • Sincere Flattery
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...