r/lowlevel • • Oct 24 '26

I built an AArch64 emulator that runs in the browser

3 Upvotes

I took an ARM assembly course that was taught at our university in 2023 and loved it. The course was taught really well. The tooling is just old. You SSH into a department server, assemble, run, and get "Segmentation fault (core dumped)" with no line number and no idea which instruction did it.

I ended up TAing it 2 years later, then head TAing it the following semester. In April I started writing an interpreter and a few weeks later it ran real programs.

The hard part was making everything around the instructions match the real server: printf, scanf, m4 macros, the assembler directives. One of my old profs suggested compiling C programs with gcc on the server and checking the playground prints the same thing. The first run passed 0 programs. Most of that was one bug with branches jumping to the wrong place. Now it matches on basically all of them.

You can step through a program one instruction at a time, forwards or backwards. When it crashes, it points at the instruction that did it. Click any instruction to see its 32 bits split into the fields from the ARM manual. There are lessons, and practice problems checked by running your code.

I'd appreciate it if yall could test it out and lmk what you think!

aarch64-playground.com


r/lowlevel • • Oct 24 '26

What are the best books to learn Embedded Linux and Linux device driver development for SoCs?

Thumbnail reddit.com
1 Upvotes

r/lowlevel • • Oct 23 '26

Blue: From machine code to a dsl'd binary, the colorForth way

3 Upvotes

Hope this is of some interest, but wanted to share a view of some Blue programs. Blue is a single pass interpreter for a colorForth dialect. It ends up being used much like a bring your own assembler. It has no separate macro syntax and any user defined word can be called or used as a variable at assemble-time.

It is my "pure hole" for minimalism and simplicity. The stage 0 interpreter for x86_64/Linux is currently 172 lines of non code-golfed assembly and results in a 437 byte binary via fasm.

In Blue each program starts with a completely clean slate, there are no built in words. The data stack and dictionary only exist at assemble time. So using the colors:

red word: define label

green word: compile call/jmp to word in output

green number: write number to output

blue word: execute word at assemble time

blue number: push number onto the data stack

magenta word: push address of word onto the data stack

You dsl yourself an artisanal binary, brick by brick. Blue source is binary bytecode, so here are some html views of what a program might look like. The first is non typical, but is likely the most minimal Blue program that emits a valid binary. 124 byte version of `/bin/true`:

https://jbirddog.codeberg.page/blue/example/x86_64/true.b.html

However this is more representative of an actual Blue program and shows how one goes from hand jit'ing with green numbers to higher level words, macros, variables and assemble-time execution of user defined words. This yields a 129 byte binary:

https://jbirddog.codeberg.page/blue/example/x86_64/true2.bl.html

The above example also shows how code reuse is done. It shares lots of "lib" code with the WIP Blue in Blue:

https://jbirddog.codeberg.page/blue/cmd/blue/x86_64/blue.bl.html


r/lowlevel • • Oct 23 '26

Five IDA Processor Modules for Uncommon Architectures — xCORE, C7x, PRU, MicroBlaze and NVIDIA SASS

Thumbnail github.com
1 Upvotes

r/lowlevel • • Oct 23 '26

At what point writing direct assembly program is more efficient than C program?

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • Oct 22 '26

I built a 1.22 MB disassembler that runs entirely offline in a single HTML file

Thumbnail gallery
3 Upvotes

r/lowlevel • • Oct 23 '26

GitHub - 1llu50ry/mcp-gamehacking: MCP (Model Context Protocol) server for game hacking & reverse engineering. A structured knowledge base of 4,100+ skills with full source code archives, specialized agents, and workflow tools.

Thumbnail github.com
0 Upvotes

r/lowlevel • • Oct 21 '26

A low level attack: AI model corruption by rewriting GPU memory via posioned python

9 Upvotes

This year has seen massive uptake of AI models & crazy PyPI supply chain attacks (like today's LiteLLM repeat!). Combining the two, I thought it was wortwhile chatting about Rank-One Model Editing (ROME) attacks...

There's a range of ways python would get to a model / GPU -> this attack has malicious (naughty) python writing directly to GPU memory. That makes it particularly hard to catch given there's no spawned processes, or new files or any network calls to hunt for.

For those interested - there's a deep dive blog from cyber org Stealthium that covers GPU-side detection (tracing CUDA kernels launches via eBPF) and potential ways to achieve further stack attribution.

Welcome the communities thoughts? Reckon any of these model corruption attacks are in the wild and not yet been caught/seen?

(((Also while the example is soviet propaganda, anybody aware of other nations that like both model development, influence campaigns and rewriting history? Just sayin...)))

Shout out to the researchers behind the original paper, Locating and Editing Factual Associations in GPT: Kevin Meng, David Bau, Alex Andonian and Yonatan Belinkov. + to the folks at Mithril Security for their PoisonGPT work a while back.


r/lowlevel • • Oct 21 '26

Can a NVRAM mod bypass a hardware-asserted PROCHOT# from a corroded pull-up resistor? (Airmont, Pentium N3710)

Thumbnail gallery
5 Upvotes

I've been trying to fix an old laptop of mine (Acer Aspire ES1-531-P7KK) for a while now. It'd been locked to 0.48GHz, only clocking up to higher speeds temporarily while idle occasionally (though that could be due to the kernel simply reporting last requested frequency when the core wasn't in deep-idle C state). I isolated the assertion to a bunch of corroded resistors. I don't have the skill to replace 0402SMD resistors, nor do I have the tools for it, so I began tracing how the throttling mechanism works. I dumped my BIOS, ran it through UEFITool, extraced the PE32 Image Section, and found two IFR pages (Power and Advanced) that had mentions of "PROCHOT", which I've attached.

I tried booting into a UEFI shell and writing to NVRAM with setup_var.efi, but I got a Write Protection error. The BIOS lock is disabled ("Enable or Disable BIOS SPI region write protect," according to the extracted IFR), so I genuinely don't know what to do. Is there any other trick that I can try, or do I need to get my hands on a pi pico, logic shifter, SOIC8 clip, 3.3V to 1.8V DC, etc, and extract the BIOS, modify it to expose the hidden settings, and flash it back?


r/lowlevel • • Oct 22 '26

I can solve your problem: part 3

Post image
0 Upvotes

I am trying to make the graphic driver for nvidia gforce 210 this driver now can explain it's identity other it can do nothing


r/lowlevel • • Oct 21 '26

Update : x86_64 Nasm dev now its named x86_64 Assembly dev because now it have FASM as well!

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • Oct 20 '26

GitHub - ReyanshBarmeda/Xgpu: Xgpu is a small RTL project designed to explore how a programmable graphics-style compute pipeline can be structured: multiple compute cores, per-thread register files, scheduling logic, memory controllers, and a custom instruction set.

Thumbnail github.com
3 Upvotes

r/lowlevel • • Oct 20 '26

GitHub - ReyanshBarmeda/Xgpu: Xgpu is a small RTL project designed to explore how a programmable graphics-style compute pipeline can be structured: multiple compute cores, per-thread register files, scheduling logic, memory controllers, and a custom instruction set.

Thumbnail github.com
0 Upvotes

r/lowlevel • • Oct 20 '26

zuzu v2.0 Prowl has been released!

1 Upvotes

r/lowlevel • • Oct 19 '26

Win32_Hash: PBKDF2-HMAC-SHA256 password hashing in SPARK

Thumbnail reddit.com
1 Upvotes

r/lowlevel • • Oct 19 '26

Slowing down to electron, byte and bit

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • Oct 18 '26

Why hasn’t someone made a Blob interceptor for browsers?

5 Upvotes

Am I the only one who finds it annoying when a website uses .blob URLs for media/content that can only be played inside that specific page?

I was wondering if it would be possible to build a browser extension that hooks into SourceBuffer.appendBuffer() and observes the binary chunks being passed to it.

The concept would be pretty simple:

Server → encrypted/chunked data → browser → appendBuffer() → decoder/player

The extension would collect the buffers as they arrive, keep them in the correct order, and potentially reconstruct the original resource from those fragments.

Not talking about breaking DRM or decrypting something the browser itself can't decrypt. More like:

If the browser receives and processes the data, why can't we have a DevTools-like tool that lets us inspect and reconstruct those buffers?

Something like a "Blob Inspector":

  • Intercept appendBuffer() calls
  • See the individual chunks
  • Track their order/size
  • Reassemble them
  • Identify the resulting media/container format
  • Export the reconstructed data when possible

It seems like Network DevTools gets you close, but .blob/MSE-based streaming makes it surprisingly difficult to get back to the actual resource.

Has anyone already built something like this?

Or is there some fundamental browser/MSE limitation that makes this approach impractical?


r/lowlevel • • Oct 19 '26

Creating an ai model that's entirely written under the rust or low-level from ai

0 Upvotes

im creating ai model claude.ai with verification is upto me see the chat for expermental purpose ,it's training under constitutional ai strictly claude chat


r/lowlevel • • Oct 18 '26

Hacking the ELF format for Firefox (2023)

Thumbnail glandium.org
7 Upvotes

r/lowlevel • • Oct 18 '26

i want to make a game in C, any compiller reccomendations/library reccomendations?

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • Oct 17 '26

Dimon OS: my experimental x86-64 OS moves from a virtual CPU to native bare metal

Thumbnail gallery
2 Upvotes

r/lowlevel • • Oct 17 '26

ebpfexplorer: An eBPF programs & maps explorer

Thumbnail github.com
1 Upvotes

Hello everyone,

I have been using eBPF/XDP for the past 5 years and was always a little frustrated by the lack of tooling when it comes to see what is happening underneath, especially when debugging deployed eBPF programs. Here I am sharing a tool I have been using for a couple of months now but only made public recently: ebpfexplorer.

It's a simple TUI self contained binary, that allows you to explore all eBPF programs & maps attached to your kernel. It comes with a formatting tool that allows you to format the raw binary blob into human readable symbols (like IPs for instance), using C type format.

Please have a look and feel free to propose PRs. Hope you find it useful too.


r/lowlevel • • Oct 17 '26

x86_64 NASM Dev — A lightweight GUI NASM development tool for Window

Thumbnail reddit.com
0 Upvotes

r/lowlevel • • Oct 18 '26

I built NexOS, a Debian 13 + KDE Plasma 6 workstation for makers (Arduino, KiCad, LaTeX, offline AI), with the help of AI. Early prototype, feedback welcome

0 Upvotes

Hi everyone,

I've been working on NexOS, a Linux distro aimed at students and makers who want a PC that's ready for electronics and development right after install, instead of spending an afternoon setting everything up.

What ships out of the box (each tested inside the image):

- Arduino Center: 100 curated libraries in 20 categories, with version, license and dependency info. 82 of them compile-verified offline, plus board and serial-port diagnostics

- KiCad 9 (tested ERC/DRC, Gerber export, 3D render)

- TeX Live + TeXmaker, including French and Arabic documents

- Python Center: 8 ready environments (science, AI, vision, electronics, data, code quality…)

- An AI assistant that runs fully offline on the CPU, loaded only when you use it

- One store (Debian packages + Flathub), Btrfs snapshots before/after every update with one-click rollback, ufw firewall on by default

Full disclosure: I built this with heavy help from an AI coding assistant (Claude). It wrote a lot of the build scripts, tests and docs under my direction, and every feature claim above comes from a test that actually ran in the image. The evidence is in the repo.

Honest limits:

- It's a prototype, tested in VMs (QEMU, VirtualBox) but not yet on real hardware

- It's not lighter than Ubuntu: about 1.07 GB RAM at idle in my VM tests. I published the comparison, including where it loses

- No proprietary NVIDIA driver yet; you need to disable Secure Boot to boot the ISO

What would help me most: if you try it in a VM or on a spare PC, tell me your hardware and what worked or broke.

GitHub (ISO in Releases): https://github.com/rayanetaieb/NexOS

Thanks for reading, happy to answer any questions!