home.social

#assembly_language — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #assembly_language, aggregated by home.social.

  1. How two modes works. Exploring map vs building tracks.

    Binary is 5162 bytes.

  2. Low level UX:
    - mode 0: viewport panning
    - mode 1: cursor movement + tracks building

    For future there will be mode 2 for infrastructure placement/management.

    Current size: 5175 bytes.

  3. I'm starting implementing game-play elements. Slowly. This is now hand placed elements but the engine recognize carts (empty or resource type) and can draw one type of railroads.

    Binary is almost 5K at the moment.

  4. Implemented DawnBringer's 16 Color Palette!

    Current binary size: 4187 bytes

  5. Small but useful thing: added debug state. For now it shows all the decompressed sprites.

    Also added more sprites into the game.

  6. The Ember CPU — Initial Design Part 7: Interrupts
    medium.com/the-ember-project/t
    We only need a few more instructions to complete the basic ISA or Instruction Set Architecture for the Ember CPU. Rounding out those few remaining instruction types are interrupt handling instructions. Interrupts are a big topic, and while we can’t possibly cover every aspect of interrupts here, we can give a brief overview of the concept, and how it works at a high level for Ember...

  7. Only 7 sprites, 4 colors per sprite, 16x16
    64x64 procedural terrain. 2KB com file.

  8. PDP-8 instruction set is super minimal, so conditional branching has some unique quirks. It's handled by microcoded "skip"-type commands, e.g. SPA (skip if positive accumulator). If the test condition is true, it skips the next line. Sometimes, just skipping a line is convenient and you can get away with just jumping away if the test is negative. But as I write more complex programs, I find myself writing more spaghetti.

  9. I've just been looking at RISC-V assembly language, and...

    lw a0, 4(a1) # Load word from address in a1 + 4, result into a0.

    4(a1) ... seriously? Are you all right? Have you been at the mushrooms again?

    #riscv #assembly_language

  10. It's been ten years since my last official update to it, but there's been an official update to my Ophis assembler! A few bugfixes to some edge cases and easy installation via pip or pipx on anything running Python.

    michaelcmartin.github.io/Ophis

    #retrocomputing #assembly_language #python