r/asm • u/JaguarMoe • 6d ago
General There should probably be a rule against pure AI code.
I recently made a post about my project and it was mostly met with criticism about just using AI. I feel like this sub is about human learning and people want to keep it that way. The only way to prevent these post in the future would be a rule. I know enforcing it might sometimes be difficult.
r/asm • u/JaguarMoe • 7d ago
x86-64/x64 A 14 KB HTTPS server OS in x86-64 assembly: boot sector, virtio-net, TCP, TLS 1.3 and HTTP
I wanted to see how good Claude is at sizecoding, so this code is Claude's, not mine. After 5 days there was a static web server that is its own operating system, in 13,859 bytes of NASM:
- boot sector, long mode, up to 4 processors
- virtio-net driver, ARP, TCP
- TLS 1.3 with X25519, ECDSA P-256 and AES-128-GCM (AES-NI, PCLMULQDQ, BMI2, ADX)
- HTTP GET and HEAD, with the site packed behind the code in the same image
On a 2-vCPU cloud server it does two to three times nginx's new TLS connections and small pages per second. It is clunky on purpose: to renew the certificate you build a new image.
Source: https://github.com/FileSherlock/k15 (start at `src/os.asm`)
It runs at https://15kb.org with a $200 bounty: the server's TLS key is also the private key of the Bitcoin address on the page, until 18 February 2027. No denial of service, please.
Tell me where the assembly is bad.
RISC Guest Speaker Simone Shawn Cazzaniga Created an Interactive Digital Model of RISC-V
r/asm • u/gandalf458 • 18d ago
General I created an assembly language and then a playground
Having nothing better to do recently, I developed a simple assembly language and an online playground for it. If anyone fancies having a play, please do: https://www.compassion-in-business.co.uk/learning/assembler.php
r/asm • u/Ayushkool • 19d ago
ARM I made a MARS-style simulator for ARMv7 assembly
General I've updated my Linux System Call website after a long time (originally released in 2020). Includes more platforms now, kernel diffs and other things. The API was also updated
r/asm • u/aabalke • Oct 23 '26
ARM queso: disassembling 40+ years of arm 🧀
queso is an arm disassembler prioritizing historical accuracy on older versions for emulation and retro computing. There are cli, web, vendorable Golang, and vendorable C versions available, hex string and file inputs, and a ton of customizable options including custom register names, address offsets, and arm versions (ARMv1 - ARMv5TE).
https://github.com/aabalke/queso
https://guacemulator.com/queso
A big thank you to everyone who documents, builds, and provides support!
r/asm • u/Specy_Wot • Oct 09 '26
General Asm Editor, educational assembly IDE on the web, now with C/C++ compilation and peripherals
Hello everyone! For the past few years I've been working on ASM editor (github), an IDE for assembly running completely on the web with many architectures available (x86, mips, risc-v, m68k, z80 and more to come) with a lot of debugging features like step by step execution, undo, memory and registers viewers, breakpoints, observability of what each instruction did and much more!
Recently I've added a feature I had dreamed of adding for a long time, C and C++ compilation! It allows you to write C and C++ code (with a subset of libc available), compile it to assembly to see how each line was compiled, to then execute it with all the debugging tools available in the IDE.
I've also added peripherals like a screen, terminal, keyboard, mouse and file system. All of them can also undo to previous steps.
The IDE is used by my university and a few others to teach low level programming and has a lot of useful tools to teach. I've also published a paper about it in an IEEE conference.
It can be embedded in other websites as part of interactive courses or be used to do exams in schools and universities.
I'd love to get opinions/suggestions/feedback about it, please let me know in the comments!
r/asm • u/Cartman1994 • Oct 03 '26
x86-64/x64 What is the best way to learn x86_64 assembly?
I am a Java programmer, and as a hobby, I want to learn C with a focus on operating systems—specifically to modify existing open-source operating systems like GNU/Linux or BSD.
However, I understand that before learning C, it is a good idea to learn some assembly language. What is the best way to learn x86_64 assembly?
r/asm • u/Hell__Mood • Oct 03 '26
x86 "8-pinski" - sierpinski animation + bytebeat in EIGHT bytes x86 code
r/asm • u/External_Student5498 • Sep 28 '26
ARM64/AArch64 I built an AArch64 emulator that runs in the browser
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!
r/asm • u/Some-Comparison4863 • Sep 28 '26
General Comprehensive Architecture Registers Reference Bank (Intel/AMD MSRs, ARM/RISC-V Core Registers) for Bare-Metal & OS Dev
r/asm • u/EndpaperDev • Sep 23 '26
General 26 years ago I read assembly on backbone router NPUs for a living. I have spent the last year making the detective game about that job
I started out writing C for the network processors in backbone routers. A lot of that job was not writing anything: it was reading a listing, watching registers, and working out which instruction was not doing what everyone believed it was doing. I liked it more than was reasonable.
I have built a game that is only that. A fictional load/store ISA, fourteen instructions, six registers, a memory grid, memory-mapped ports with settling time. A program written by someone who is now dead. A full recorded trace, which you can step, breakpoint and rewind, and which exists in its entirety the moment you open the case, so you can read the listing, form a theory and jump straight to the tick that proves it.
The design constraint I set myself was that you never write or change anything. The moment you can edit the program it stops being an investigation and becomes a puzzle box. So every tool is read-only, including the one that lets you re-run the tape against sensor values the machine never actually saw, which is marked off the record so it cannot corrupt what you are proving.
The part I would most like this sub's opinion on is the proof. Naming the faulty line is not enough. You also have to classify the mistake and point at the tick where the harm first shows in machine state. That third clause is where everyone struggles, and I am still not sure whether it is too much to ask or just badly explained.
Free, seven cases, about an hour, no download: https://endpaperdev.itch.io/faultfinder-demo
Steam: https://store.steampowered.com/app/5120330/Faultfinder_Demo/
r/asm • u/Tack1234 • Sep 17 '26
General Custom assembler for CHIP-8 in C++
I'm writing a custom assembler for CHIP-8 and just finished adding support for the DB/.byte directive so I can embed sprites in the ROM and finally get something drawn on the screen. It SHOULD support all OG CHIP-8 instructions, but still a ton of rough edges that I'm ironing out.
This is my first ever C++ project, just like the CHIP-8 emulator was my first ever C (and emudev) project. It's so satisfying to write assembly and have your program spit out a ROM that actually runs in the emulator you wrote.
All code is written by me (a lot of it livestreaming) as evident by the quality, no AI.