Skip to content

Instantly share code, notes, and snippets.

@yarysh
Last active March 2, 2026 12:13
Show Gist options
  • Select an option

  • Save yarysh/56da57d6fcf3aeb95d1babc7aad1b2ba to your computer and use it in GitHub Desktop.

Select an option

Save yarysh/56da57d6fcf3aeb95d1babc7aad1b2ba to your computer and use it in GitHub Desktop.

Revisions

  1. yarysh revised this gist Mar 2, 2026. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions cycle.8bit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    LDI 1
    STA 15
    LDI 0
    OUT
    ADD 15
    JC 7
    JMP 3
    SUB 15
    OUT
    JZ 3
    JMP 7
  2. yarysh created this gist Mar 2, 2026.
    13 changes: 13 additions & 0 deletions fibonacci.8bit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    LDI 0
    STA 14
    LDI 1
    STA 15
    LDA 14
    STA 13
    LDA 15
    STA 14
    ADD 13
    STA 15
    JC 0
    OUT
    JMP 4