frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: the Hand-Rolled Assembly Machine

https://hram.dev/indexb.html
4•90s_dev•9h ago

Comments

90s_dev•9h ago
Hi again HN. You said I should release early and release often so here I am.

HRAM is a computer simulator that runs real native assembly in the context of a 128x72 pixel screen with 8-bit colors (4 bits for red, 4 for green, no blue).

The idea is that you program it using your own assembly, in the same way they might have had to 50 years ago. It's almost like love2d but with assembly. You write an asm function that responds to events like mouse/keyboard/etc.

It takes your code, located at appdata\hram\hsig.s (it creates one for you on the first run) and runs it when it loads. I plan to add hot reloading soon, maybe later today.

And it's not an interpreter! It uses asmjit under the hood to compile your code into actual assembly and then just runs it. Which means this is literally as close to the metal as you can get writing games!

This is maybe the coolest and most exciting thing I've ever built. I'm really excited to see what you all think of it!

The manual is at https://hram.dev/indexb.html and the beta download file is at https://hram.dev/hram-100.zip so please let me know what you think!

90s_dev•2h ago
Shorter description:

It's like love2d but with a pico8 style screen and the code is entirely asm.

Download at https://hram.dev/hram-110.zip for version with hot code reloading.

Write event handler function in native assembly at appdata\hram\hsig.s that interacts with keyboard/mouse and 128x72 8-bit screen (red/green only).

Uses native jit, no interpreter. So if you write bad assembly it will segfault! But it's okay, just restart hram.exe (~360 kb) and try again.

90s_dev•2h ago
Got one report on reddit that it's not creating the default file in appdata and just using the one in memory that it thinks it's writing. If you have the same issue, here's the whole sample asm file that you can write to appdata\hram\hsig.s before you open hram.exe:

    ; switch on arg
    cmp cl, 4
    je MouseDown
    cmp cl, 5
    je MouseUp

    ; if mouse not down then just skip
    mov al, byte [0x33000]
    test al, 1
    jz Skip

    ; draw green at mouse
    mov rax, 0
    mov rbx, 0
    mov al, [0x30007]
    mov bl, 128
    mul bl
    add al, [0x30006]
    mov byte ptr [rax+0x30100], 0x0f

    ; call blit()
    sub rsp, 24
    call [0x30030]
    add rsp, 24

    Skip:
    ret

    ; store mouse-down info

    MouseDown:
    mov byte ptr [0x33000], 1
    ret

    MouseUp:
    mov byte ptr [0x33000], 0
    ret
Fwiw I do not know assembly! This is the most complicated asm I've ever written! So if it's got dumb errors, please let me know and I'd be glad to fix them in the sample code!

Show HN: Cant, rust nn lib for learning

https://github.com/TuckerBMorgan/can-t
1•TuckerBMorgan•1m ago•0 comments

Neovim plugin to prompt any model from Markdown files

https://github.com/robcmills/prompt.nvim
1•robcmills•2m ago•0 comments

Chemical Process Produces Critical Battery Metals with No Waste

https://spectrum.ieee.org/nmc-battery-aspiring-materials
1•stubish•7m ago•0 comments

Elon Musk opened a diner in Hollywood. What could go wrong?

https://www.theguardian.com/us-news/2025/jul/26/elon-musk-tesla-diner-hollywood
1•rob74•11m ago•0 comments

Doge is suggesting an AI tool that puts half of federal regs on a 'delete list'

https://www.engadget.com/big-tech/doge-is-reportedly-pushing-an-ai-tool-that-would-put-half-of-all-federal-regulations-on-a-delete-list-212053871.html
2•Incipient•13m ago•1 comments

Company developing Paducah laser uranium enrichment hits regulatory milestone

https://www.wkms.org/energy/2025-07-02/company-developing-paducah-laser-uranium-enrichment-facility-hits-key-regulatory-milestone
1•perihelions•14m ago•0 comments

Texas Is Getting Tough on Data Protection

https://www.adexchanger.com/data-privacy-roundup/texas-is-getting-tough-on-data-protection/
1•dotcoma•16m ago•0 comments

ChatGPT Gave Instructions for Murder, Self-Mutilation

https://www.theatlantic.com/technology/archive/2025/07/chatgpt-ai-self-mutilation-satanism/683649/
1•jrflowers•16m ago•0 comments

The future is not self-hosted, but self-sovereign

https://www.robertmao.com/blog/en/the-future-is-not-self-hosted-but-self-sovereign
1•robmao•17m ago•0 comments

Is Australia's bloated property market destroying the middle class?

https://www.theguardian.com/australia-news/2025/jul/13/great-job-good-education-no-home-is-australias-bloated-property-market-destroying-the-middle-class
1•PaulHoule•20m ago•0 comments

Show HN: I built a tool to fight YouTube clickbait with AI summaries

https://www.peekatube.com/en
1•project_stain•22m ago•0 comments

Show HN: Explore GitHub via What Stargazers Also Starred

https://github.com/fengkan/GitHub-Stargazer-Constellation
1•fengkan•28m ago•0 comments

Trump's AI Action Plan is a blueprint for dystopia

https://www.bloodinthemachine.com/p/trumps-ai-action-plan-is-a-blueprint
3•dotcoma•29m ago•0 comments

Are prompts the new unit of work?

https://www.archgw.com/blogs/are-prompts-the-new-unit-of-work
1•honorable_coder•33m ago•1 comments

How to expose Kubernetes OIDC JWKS endpoints

https://gawsoft.com/blog/kubernetes-oidc-expose-without-anonymous/
1•gawsoft•34m ago•1 comments

William Cowper's pet hares [1784]

https://cowperandnewtonmuseum.org.uk/the-history-of-my-three-hares/
2•quuxplusone•36m ago•0 comments

Post to HN

https://blog.cloudflare.com/zero-trust-warp-with-a-masque/
1•sawoo•49m ago•0 comments

$Lei – Aesthetic Computer

https://prompt.ac/$lei
1•justanothersys•1h ago•1 comments

Verify Identities During Self-Service Registration

https://fusionauth.io/blog/identity-verification-before-registration
1•mooreds•1h ago•0 comments

Fast and cheap bulk storage: using LVM to cache HDDs on SSDs

https://quantum5.ca/2025/05/11/fast-cheap-bulk-storage-using-lvm-to-cache-hdds-on-ssds/
10•todsacerdoti•1h ago•0 comments

Measuring Engineering

https://fffej.substack.com/p/measuring-engineering
1•mooreds•1h ago•0 comments

The Electron E1 Processor

https://www.efficient.computer/announcing-electron-e1-processor
3•bane•1h ago•1 comments

Smallest particulate matter sensor revolutionizes air quality measurement

https://www.bosch-sensortec.com/news/worlds-smallest-particulate-matter-sensor-bmv080.html
2•Liftyee•1h ago•0 comments

An Interview with Alex Ward

https://ciamweekly.substack.com/p/an-interview-with-alex-ward
1•mooreds•1h ago•0 comments

eSports for Engineers: course syllabus bridging gaming and STEM education [pdf]

https://github.com/sim-museum/esports-for-engineers/blob/master/files/syllabusFor_eSportsForEngineers.pdf
1•fifteenth•1h ago•0 comments

Voice AI for medical/premed students

https://www.codyliu.com/blog/rt-anki-voice-flashcards
1•codexliu•1h ago•0 comments

The Sputnik vs. Deep Seek Moment: The Answers

https://marginalrevolution.com/marginalrevolution/2025/07/the-sputnik-vs-deep-seek-moment-the-answers.html
1•ksec•1h ago•0 comments

Yixiang 16kWh Battery for $1,899? What in the world [video]

https://www.youtube.com/watch?v=7bShGUPU3TQ
3•xbmcuser•1h ago•1 comments

Chat Test Reporter – Google Chat Alerts for Test Runs in CI

https://chat-test-reporter.vercel.app/
1•jjuliobit•1h ago•1 comments

Show HN: Open-source "God mode killer" IGA in Keycloak

https://github.com/tide-foundation/keycloak-IGA
2•SaltNHash•1h ago•3 comments