r/Assembly_language • • 9h ago

Project show-off Forth interpreter for the ZX Spectrum

8 Upvotes

r/Assembly_language • • 2d ago

How can I start programming an ARM processor completely from scratch?

Thumbnail
reddit.com
5 Upvotes

r/Assembly_language • • 3d ago

Should I learn

18 Upvotes

Hey guys, should I learn ASM? I have pretty decent skill in c and c++, im better at memory stuff then complex math, and I wrote a basic malloc using windows and linux ram allocator.


r/Assembly_language • • 3d ago

Sources for good assembly tutorials/begginers?

10 Upvotes

I am looking specifically for something like Geekforgeeks or Sololearning. Obviously for assembly it would be a more niche one but you get the idea. If its a book it would be okay too. Also can assembly be useful for cyber security/ red teaming since its attacking the base code of it all?


r/Assembly_language • • 3d ago

Nuevo en assembly

7 Upvotes

Estoy queriendo aprender assembly pero no se por donde empezar ni que deberia de hacer para practicarlo (que instalar o que pagina ir para aprenderlo), alguna recomendacion? Gracias


r/Assembly_language • • 3d ago

Que opciones laborales puedo tener si aprendo Assembly?

0 Upvotes

Lo que dice el título, busco una forma de ganarme la vida.


r/Assembly_language • • 3d ago

My first assembly program

2 Upvotes

// Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // The algorithm is based on repetitive addition.

@R0 
D=M
@10
M=D  // counter

@R2
D=0
M=0

(START) @10 D=M @END D;JLE // end the loop if counter <= 0

// R1 + R2
@R1  
D=M
@R2
D=D+M
@R2
M=D // current result

@10
D=M
M=D-1

// jump back to the loop start for new iteration
@START
0;JMP

(END) @END 0;JMP


r/Assembly_language • • 3d ago

Help Can someone help with a program?

4 Upvotes

I’m not good at assembly but I want to learn it and have been trying to make a program with it. The program is just supposed to square a number (read user input, multiply the input with itself, and print the result).

I’m on Linux and have no idea how to fully accomplish this. My biggest struggle is figuring out how to multiply the user input and work it into a write syscall. Help would be appreciated.


r/Assembly_language • • 4d ago

Question Embarking on OS-development, any tips?

11 Upvotes

My goal is to go through the strenuous journey of creating an entire operating system within x86 assembly, no higher level of programming language; just assembly.

This started as a hobby when I learned C a year back and ended up branching off and learning more about how C compiled to assembly and I have been doing handwritten compilation attempts of C on paper. This has ranged from typical notebook activity to as far as writing down these sequences of programming on spare receipt paper at my job during dead times on a shift. From time to time as my knowledge is practiced or when it drifts out of practice, I may tend to write out the opcodes in hexadecimal then write it additionally in binary just to feel a little bit less bored.

I ended up watching a few YouTube videos for being able to form something greater with the little bit of assembly and computing knowledge I have, and learned how to make my first boot loader with netwide assembler and QEMU!

I do not have an incredible amount of knowledge in assembly despite my description of what I do in my free time, and so I ask; where can I look to find more resources or "hidden-gems" of knowledge regarding OS development?

Thanks!


r/Assembly_language • • 5d ago

My first day on assembly

Post image
203 Upvotes

Im raw dogging assembly

No python or some beta shi

Im going to do it like our forefathers

Wish me luck or dont

I will succeed either way.

EDIT: I am suppriesd at the positive support and helpful messages from this community. And now i carey your spirits to succeed i wont let you guys and your expectations down. Most importantly I wont betray myself.


r/Assembly_language • • 5d ago

Help Looking for resources to learn Assembly Language from absolute zero (Books, YouTube tutorials, tools/emulators)

32 Upvotes

I'm interested in learning assembly language purely out of curiosity and for the love of understanding how computers actually work beneath the software layer.

I have some basic Python programming knowledge, but I don't know C, C++ (learnt bare basic CPP recently to read a book but I won't consider it), or any assembly. I'm not looking to rush into systems programming or make this a career requirement. I want to explore it as a long-term learning hobby, understand how CPUs execute instructions, how memory and registers work, and eventually get comfortable reading and writing assembly.

I'm using an Apple Silicon Mac (M4 Pro), so I'm particularly interested in learning ARM64/AArch64 assembly, although I'm open to understanding x86-64 as well if there's a good reason to learn it.

I'd appreciate recommendations in three categories:

1. YouTube tutorials / video courses

  • Good beginner-friendly video series that start from absolute zero.

  • Courses that explain registers, memory, stack, instructions, addressing modes, calling conventions, etc.

  • Ideally, tutorials that explain what's happening inside the processor rather than just teaching syntax.

2. Books

  • Beginner-friendly books that don't assume prior knowledge of C or assembly.

  • Books that progressively introduce computer architecture, machine code, and assembly programming.

  • More advanced books worth keeping for the long term.

3. Tools, emulators and development environments

  • What assemblers, debuggers, simulators or emulators should I install on macOS?

  • Are there safe ways to experiment with assembly without directly interacting with or modifying actual hardware?

  • Would QEMU, CPU simulators, or virtual machines be useful?

  • What tools would you recommend for inspecting registers, memory, and instruction execution step by step?

I'm particularly interested in experimenting in an isolated environment. I don't want to accidentally damage my Mac or mess with its operating system while learning.

One more thing: Would you recommend learning some C before starting assembly, or is it perfectly reasonable to learn assembly directly and pick up C concepts along the way?

I'm not looking for a shortcut. I want to understand the machine from the ground up.

Any recommendations, learning paths, books, channels or personal experiences would be greatly appreciated.

Thanks 🫡

UPDATE: Does anyone have a roadmap to this.

UPDATE 2: Other Posts & replies in this sub reg same which I find interesting. ay update with more links as I find them

[If your memory was WIPED, how would you re-learn x86 assembly?](https://www.reddit.com/r/Assembly_language/comments/1rlq6ux/if_your_memory_was_wiped_how_would_you_relearn/)

https://www.reddit.com/r/Assembly_language/comments/1rx5cyi/where_can_i_learn_x8664_assembly/

Try Jeff Duntemann's Assembly Language Step by Step.

I learned from Ray Seyfarth's book on Windows/Linux assembly. It's pretty good, but you'll need the install the ebe IDE if you want to get the most out of it

[For those starting to learn Assembly - step-by-step, how to create a flight simulator for DOS](https://www.reddit.com/r/Assembly_language/comments/1wxda05/for_those_starting_to_learn_assembly/)

https://www.reddit.com/r/Assembly_language/comments/sp50sx/hello_i_really_want_to_learn_asm_but_i_am_not/

https://www.nandgame.com/
____

MartinAncher

•2y ago

I recommend Usborne's children's book: Machine Code for Beginners, which teaches you 6502 and Z80 machine code. These are simple 8-bit CPUs used in most of the micro computers of the 80's.

This is how most people have learned machine code, when you understand the simple principles here, you can move on to your desired architecture.

Machine Code for Beginners
____

Kalex8876

•2y ago

https://learnxinyminutes.com/docs/mips/

https://uweb.engr.arizona.edu/~ece369/Resources/spim/QtSPIM_examples.pdf

____

https://github.com/mschwartz/assembly-tutorial

___

https://www.felixcloutier.com/x86/

____

[I'm looking for a high level overview as to how Object Oriented Programming is "implemented"](https://www.reddit.com/r/Assembly_language/comments/1x5f916/im_looking_for_a_high_level_overview_as_to_how/)

____________

GPT Suggested books resources

3. These are tools worth investigating eventually:

ToolPurpose
GNU Assembler (GAS)Assemble programs
LLDBInspect registers, memory and execution
QEMUEmulate different architectures
GhidraDisassemble and analyse binaries
Compiler ExplorerSee how C/C++ becomes assembly
RipesVisually understand CPU execution

B. Reverse engineering and binary analysis

OrderBookPurpose and when to study
6Practical Reverse EngineeringConnect assembly, debugging, operating systems and reverse-engineering workflows.
7Reverse Engineering for BeginnersFree online resource for assembly, compilers, calling conventions and program behaviour across architectures.
8Practical Binary AnalysisExecutable formats, binary instrumentation, analysis tools and program behaviour at the binary level.

C. Malware analysis and exploitation

OrderBookPurpose and when to study
9Practical Malware AnalysisMalware-analysis methods and practical investigation in an isolated lab. Some examples and tools are dated.
10The Shellcoder's HandbookAdvanced exploitation concepts. Study after memory, assembly and operating systems. Older techniques need comparison with modern mitigations.

r/Assembly_language • • 5d ago

I created an assembly language and then a playground

11 Upvotes

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/Assembly_language • • 4d ago

Need some suggestions !

0 Upvotes

I consider myself as slightly above from beginner. I can read assembly instructions fairly. My main motive was to learn how executables run under the hood from the perspective of cybersecurity. I did some crackmes challenges. They were easy to solve upto where anti-debugging, control-flow flattening, opaque predicates, api hashing, and more upto 1-3 difficulty rated. I got to know about packers and virtual instructions. I learned how packers operate to minimize the .exe size. I built my toy packer also which just compresses and stores the main executable sections with custom name. Forget about UPX, AsPACK, MEW11, i am unable to unpack even my own packer. Is this skill issue or do someone really gets stuck in this section ? I need some guidance, the last time i unpacked was upx after watching some youtube video because i was supposed to put breakpoint to tail jump... Suggestions are kindly welcomed.


r/Assembly_language • • 5d ago

How to create Z80 ASM games for TI-83+ Part 2

Thumbnail
youtu.be
25 Upvotes

r/Assembly_language • • 5d ago

Help C to ASM

0 Upvotes

Hello everyone!

I am currently working on a side project where a python script takes a C source file and converts it into ASMx86_64 (Intel syntax) and I am just trying to find resources for type conversions without making some kind of script where I automate generating a program and compiling it for ASM in GCC.

Does a list like this exist? And if so, are there separate ones for Windows and Linux? (As I think there’s a difference, not completely sure)

Thanks, have a good one frens


r/Assembly_language • • 5d ago

Introducing Tech Haven Studios – An independent software studio building operating systems and AI projects

0 Upvotes

Hi everyone!
I’d like to introduce Tech Haven Studios, an independent software development studio where I’m working on several technology projects.
Our current projects include:
HavenDOS
A 32-bit operating system developed in C and x86 Assembly. It’s one of our main development projects.
MorrowOS
A desktop operating system project focused on creating a different desktop computing experience.
HavenAI
An experimental AI development project.
I’m building these projects independently and documenting the development process along the way.
I’m interested in connecting with other developers, operating system enthusiasts and people interested in independent software development.
I’d appreciate honest feedback, technical discussions and potential collaboration.
Website: https://techhavenstudios.lovable.app
Thanks for checking out the project!
Posted by the developer behind Tech Haven Studios.


r/Assembly_language • • 6d ago

I made a MARS-style simulator for ARMv7 assembly

10 Upvotes

The computer org class at UCF teaches ARMv7, and the tool everyone uses for ARM is CPUlator. It works, but for beginners it's a lot to take in. I kept wishing there was something like MARS for ARM, so I built one.

It's called ARES (ARM Educational Simulator). Basically MARS, but for ARMv7:

- edit, assemble, run, step, backstep and breakpoints

- registers, memory and the floating point registers update as you step

- SVC calls for printing and reading numbers and strings, numbered like the MARS syscalls

- a Tools menu like MARS has: data cache sim, bitmap display, BHT sim, and an ARM X-Ray that animates the single-cycle datapath for each instruction

It uses the real GNU assembler, so programs written for CPUlator's DE1-SoC setup assemble fine (instructions and registers need to be in capitals, and there's a menu option that does that for you).

Windows and Apple Silicon Mac downloads are on the releases page, Linux is coming. It's free and open source (GPL).

https://github.com/ay199x/ARES

Feedback, bug reports or ideas for what to add next would be really appreciated.


r/Assembly_language • • 7d ago

How to create Z80 ASM games for TI-83+ Part 1

Thumbnail
youtu.be
36 Upvotes

r/Assembly_language • • 6d ago

assembly question (8086, dos)

Thumbnail reddit.com
1 Upvotes

r/Assembly_language • • 7d ago

Project show-off I ran Qwen3.5-0.8B in pure Assembly.

50 Upvotes

On an AMD EPYC 7B12, it generated 6.51 tokens/sec on one CPU thread. The Transformers reference reached 4.34.

All 32 generated tokens matched in both runs.

Code: https://github.com/suayptalha/qwen3_5-assembly

X Post: https://x.com/suayptalha/status/2119254536283906205

Tokenization, model inference and sampling all run in Assembly. No libc or Python at runtime; Python prepares the tokenizer tables at build time.

Benchmark: 19 input tokens, greedy decoding, 2 runs. Assembly reads BF16 weights; Transformers loaded them as FP32 and used PyTorch fallback kernels.


r/Assembly_language • • 7d ago

Project show-off i built gpt-2 in pure assembly

0 Upvotes

i built gpt-2 in pure assembly.

124m params. zero libc calls. the tokenizer, matmuls, attention, softmax, even exp(): all arm64 asm.

~100 tok/s on a single m1 core. 4 kb of machine code.

output matches pytorch token for token.

github: https://github.com/ArneshBanerjee/gpt2.s


r/Assembly_language • • 8d ago

Pre assembly languages

3 Upvotes

Let us discuss all languages ( programming

) before the first assembly language run that is before 1949

Tell me how many languages and what are the languages


r/Assembly_language • • 10d ago

printing commandline arguments returns gibberish

5 Upvotes

program:

file.asm

section .text
global main
extern exit, printf
main:
pop rsi
pop rsi
pop rsi

xor rax, rax
mov rdi, rsi
call printf

xor rdi, rdi
call exit

nasm -f elf64 file.asm -o file.o

gcc -no-pie file.o -o file

./file arg1 arg2 arg3

output:

�� �[

how do I fix this?

OS: Arch Linux (btw) x86_64
NASM version 3.02
gcc (GCC) 16.2.1

GNU ld (GNU Binutils) 2.47


r/Assembly_language • • 11d ago

Help what's the best way to start learning NASM x86_64?

7 Upvotes

i can of course learn it as I come across it, but I don't want to waste my time. For those who are already familiar, could you share some advice/sources/etc?


r/Assembly_language • • 12d ago

I am interested in how loops and array iteration work at a lower level like assembly.

1 Upvotes

Implementing a small VM-based programming language in C. Its source code is compiled into bytecode instructions (opcodes), which are then executed by the VM.

define numbers = [10, 20, 30];

for (number in numbers) {
    print(number);
}