frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Which processor to pick for learning assembly?

8•shivajikobardan•1d ago
I am doing a course on Computer Organization and Architecture from YT. And following John P Hayes's textbook. I think programming things could help me up.

PS: I saw that there are courses on udemy regarding CPU design. And I am planning to take that course as well.

Comments

d_tr•1d ago
IMHO just use whatever CPU you have available. x86-64, ARM... No need to overthink it.
actionfromafar•1d ago
Different assembly have different delights:

If you use whatever your computer can execute, it's fun to make actual, real programs for your operating system in assembly. That means likely, x86-64. (Even if you are on ARM, you computer will emulate x86-64 just fine, most likely.)

Or use ARM, if you are on a not-old Mac or whatever.

The simplest architecture which is still 32 bit and has real hardware, is probably MIPS.

If you want to feel what it's like to control a complete system from end-to-end, you could dive into embedded platforms (AVR/ARM), or emulators of classic machines like the Commodore Amiga with the m68k line of processors. It has a sweet-spot in my heart because on the one hand it's modern enough to have great graphics, sound and even network capability, on the other hand it's simple enough to completely understand.

Either way you choose, you'll have great fun.

dansmyers•1d ago
We use ARM in our computer organization classes. It's more accessible than x86 and allows you to get a feel for the important concepts of assembly: register-to-register operations, conditional branching, and how the stack is used to manage function calls and returns.

I like the CPUlator as a platform. It lets you step through the program one instruction at a time and observe all of the registers and memory locations.

https://cpulator.01xz.net/?sys=arm

This set of lessons is a good starting point:

https://thinkingeek.com/series/arm-assembler-raspberry-pi/

My course repository has several example programs with explanatory comments:

https://github.com/dansmyers/ComputerOrganizationAndArchitec...

sloaken•1d ago
If your objective is to get a gentile introduction to assembly, with no practical use: PDP-11 (on a simulator) or Motorola 68K. Both are very simple and straight forward. As opposed to many others that seem to live on confusion.

To aid in learning, you can always write in C and then output in assembly. Typically you would turn off optimization. The optimizer will often scramble the results to make it better but harder to read.

Have you thought about the class NAND to Tetris? It builds a tetris game but starts and the gate level.

giantg2•1d ago
I'd probably get a Pi and use ARM. I feel like assembly is more useful on resource constrained systems, which usually means ARM.
markus_zhang•1d ago
I’d recommend anything that has a practical use.

What is your objective? If it’s just for a hobby, maybe try some old consoles programming, like Gameboy or NES, or NeoGeo if you want something a bit more complicated? Anything 32-bit and above might be too much for a beginner.

sim7c00•13h ago
pick the platform that is either accessible to you or that you want to develop also other things of.

assembly is a trip into the machine. if the machine is not interesting it'll not be worth it.

there is nothing wrong with diving head first into intel/amd, but its hard.

mips is good to learn if you want to do embedded afaik. arm is used alot in phones. some embedded too

Ask HN: What toolchains are people using for desktop app development in 2025?

46•lincoln20xx•4h ago•54 comments

ChatGPT 5 is slow and no better than 4

28•iwontberude•3h ago•22 comments

Ask HN: How can ChatGPT serve 700M users when I can't run one GPT-4 locally?

495•superasn•1d ago•323 comments

Ask HN: OpenAI GPT-5 API seems to be significantly slower – is this expected?

4•tlogan•2h ago•3 comments

Ask HN: In which programming language is it better to make your own language?

7•Forgret•6h ago•15 comments

Why Boring Businesses Outlast AI Hype Cycles

3•Taikhoom10•4h ago•1 comments

Ask HN: How do you find honest tech reviews?

7•bjourne•5h ago•4 comments

Ask HN: What trick of the trade took you too long to learn?

373•unsupp0rted•5d ago•647 comments

Exposing Satcom in the Sky: Aircraft Systems Vulnerable to Remote Attacks

2•hacker_might•8h ago•0 comments

Countries with most GPT-5 users, esp. in advanced computation and reasoning?

2•mzk_pi•8h ago•1 comments

Ask HN: Has any of the Pivotal Tracker replacement attempts succeeded?

44•admissionsguy•5d ago•34 comments

Tell HN: Chrome and Spotify dropping support for macOS11

8•Kalanos•9h ago•6 comments

Tell HN: Anthropic expires paid credits after a year

270•maytc•4d ago•135 comments

Ask HN: Claude Code vs. Codex vs. GitHub Coding Agent?

2•endorphine•12h ago•1 comments

Ask HN: How would you build second brain in the AI era?

8•divan•1d ago•4 comments

ChatGPT-5 Can't Do Basic Math

14•MarcellusDrum•1d ago•11 comments

GPT-5 streaming requires submission of biometric data

29•binarymax•1d ago•7 comments

Ask HN: Are you running local LLMs? What are your key use cases?

12•briansun•1d ago•12 comments

Ask HN: What do you dislike about ChatGPT and what needs improving?

32•zyruh•3d ago•123 comments

Ask HN: What are you working on this weekend?

10•lagniappe•12h ago•15 comments

Tell HN: Charles Irby has passed away

30•steven123•2d ago•4 comments

Ask HN: Should brain implants be available for everyone as a productivity boost?

2•amichail•23h ago•4 comments

Ask HN: Which processor to pick for learning assembly?

8•shivajikobardan•1d ago•7 comments

White Paper: Contribution-Based Governance for Developer Communities

4•ff12wq111•1d ago•2 comments

Ask HN: Recommendations for specification management software?

7•gusmally•1d ago•1 comments

What's Your Favorite LLM –and Why?

5•zyruh•22h ago•3 comments

Ask HN: Why Did Mercurial Die?:(

29•sergiotapia•4d ago•32 comments

Tell HN: Thing I learned this year was keeping a work journal

11•Muromec•1d ago•7 comments

Flycrypto – Book Flights and Hotels with Bitcoin and Crypto

3•flycrypto•1d ago•3 comments

Ask HN: What change enabled you to consistently finish your side projects?

49•pillefitz•5d ago•39 comments