Live data from Hacker News

Some Assembly Required: An approachable introduction to assembly

github.com

81–90 of 131 posts

Re: Some Assembly Required: An approachable introduction to assembly

#81

It was so fun working with Hack Clubbers on this project! Hack Club is a group of teenagers from all over the world, and we decided to learn assembly together from scratch and see what happened. We ended up making this guide as we learned, since a lot of the resources we were working with weren't the easiest to parse. Happy to answer any questions :)

>Happy to answer any questions :)

what happens when a member hits 20?

Re: Some Assembly Required: An approachable introduction to assembly

#84

It was so fun working with Hack Clubbers on this project! Hack Club is a group of teenagers from all over the world, and we decided to learn assembly together from scratch and see what happened. We ended up making this guide as we learned, since a lot of the resources we were working with weren't the easiest to parse. Happy to answer any questions :)

Hey that's awesome! When I was a teenager I learnt C++ so I could code on a Zelda fan game engine. Why did you guys want to learn assembly?

Re: Some Assembly Required: An approachable introduction to assembly

#85
Great work, very methodical!

In using assembler I find the hardest part is to represent the task at hand into a form of a sequence of elementary operations over the dynamic set of data pieces and their locations.

Perhaps, when the problem scope is on a lower level with a limited sets of data and operations, this maps easier. But when the task is on a macro level, that extra step of mapping the context onto a lower level scope is just too much effort.

In a way, in a higher level scope the programmers create their specific 'assembler' with a different set of registers and opcodes and sequences of operation, and even busses.

Re: Some Assembly Required: An approachable introduction to assembly

#86

Good job. Some constructive criticism: There's quite a big difficulty spike so to speak in the later section as you go towards the code examples. The beginning explains relatively simple concepts like binary, then basically jmps into an instruction table which won't make sense to anyone who hasn't done some form of programming (they would know binary then, right?). The tone is also a bit off putting, although I might…

> Learning assembly is not actually that fun, it's rather painful. It's what you do with it that is fun. As a teen, I taught myself assembler circa 1982 on my Radio Shack Color Computer (with 4k of RAM!). It was indeed painfully challenging, especially due to the complete lack of information available and the fact I didn't know anyone else who knew anything about it. The only reason I persisted was that the BASIC int…

> I succeeded only because my teenage self somehow pulled off a phone call to Motorola sales where I claimed to be an engineer "evaluating" the 6809 CPU and they sent me the manual and a quick reference card.

lol that is such a nice story

Re: Some Assembly Required: An approachable introduction to assembly

#88

Love this! Must admit, my favourite part of doing a CS degree was creating a CPU core from scratch (a cut down ARM, running on a FPGA), then writing asm to run on it. So satisfying knowing I made the actual CPU (at gate level) and ran my own code on it. I’d be happy to do a YouTube series covering how to do this if anyone is interested.

This MIT OCW takes a student from basically nothing to an almost compliant RV32i, complete with videos, worked examples and lecture notes.

https://ocw.mit.edu/courses/6-004-computation-structures-spr...

Re: Some Assembly Required: An approachable introduction to assembly

#89

Good job. Some constructive criticism: There's quite a big difficulty spike so to speak in the later section as you go towards the code examples. The beginning explains relatively simple concepts like binary, then basically jmps into an instruction table which won't make sense to anyone who hasn't done some form of programming (they would know binary then, right?). The tone is also a bit off putting, although I might…

> When I was learning asm as a teen I learned it from grungy 1337 h4x0r sites (well, they didn't actually use 1337speak except ironically, much like today) which were at least a great deal.. meaner? less nice?.. than the tone of the article. Which ones?

Phrack & hackthissite mostly
Post reply on HN