Live data from Hacker News

Assembly Language for Beginners [pdf]

yurichev.com

61–70 of 101 posts

Re: Assembly Language for Beginners [pdf]

#61
post #56

Earlier quoted context omitted.

Forgive me, but I'm struggling to understand how much useful work one could extract from a computer with only 32k of RAM. A microcontroller for an appliance, sure, but a mainframe? Could you tell us more about the work you were doing?

In 1970, a company named Telemed built an Electrocardiograph analysis service where hospitals would call in from all around the country and send ECGs over the telephone line with analog FM signals, three channels at a time. The computer located near Chicago would accept the incoming call, digitize the three analog signals every 2ms to 10 bits, write them to disk, and decode the touch-tone patient ID. When the call wa…

Thank you, that's brilliant! It is unfortunate that the source code is lost to humanity, as an example of what is possible.

Re: Assembly Language for Beginners [pdf]

#62
post #27

Maybe too much content? 1000+ pages, many architectures... Probably too much content for a beginner book? Btw, a great book imho is "Assembly Language Step By Step - Programming with Linux - 3rd ed" ( https://musho.tk/l/d2d56a34 ). The great things is that it is an easy read and really starts from the basic and explains how the i386 architecture works, and then explains how to program it using assembly. The sad thing…

[deleted]

Re: Assembly Language for Beginners [pdf]

#63
post #56

Earlier quoted context omitted.

In 1970, a company named Telemed built an Electrocardiograph analysis service where hospitals would call in from all around the country and send ECGs over the telephone line with analog FM signals, three channels at a time. The computer located near Chicago would accept the incoming call, digitize the three analog signals every 2ms to 10 bits, write them to disk, and decode the touch-tone patient ID. When the call wa…

Thank you, that's brilliant! It is unfortunate that the source code is lost to humanity, as an example of what is possible.

If you want examples of how far you can go packing way too many things in too little code, you may be interested in the demoscene!

Re: Assembly Language for Beginners [pdf]

#64

Earlier quoted context omitted.

Forgive me, but I'm struggling to understand how much useful work one could extract from a computer with only 32k of RAM. A microcontroller for an appliance, sure, but a mainframe? Could you tell us more about the work you were doing?

(An aside: do terms like "mainframe" and "microcomputer" have any meaning any more, when a Raspberry Pi Zero has orders of magnitude greater RAM and power than a '70s piece of "big iron"?)

Yes. Mainframes still exist. IBM still sells them, and you can do things like hotswap CPUs and RAM or setup an geographically distributed HA cluster that can swap which mainframe the VMs or databases are "running" on without dropping connections, requests, or other interruptions.

https://en.wikipedia.org/wiki/IBM_Z

Re: Assembly Language for Beginners [pdf]

#65

Earlier quoted context omitted.

Forgive me, but I'm struggling to understand how much useful work one could extract from a computer with only 32k of RAM. A microcontroller for an appliance, sure, but a mainframe? Could you tell us more about the work you were doing?

You could land a spaceship in the moon with a computer with less RAM. https://en.wikipedia.org/wiki/Apollo_Guidance_Computer

> with a computer with less RAM

And a team of scientists who had done all the difficult calculations beforehand...

Re: Assembly Language for Beginners [pdf]

#67

Earlier quoted context omitted.

Forgive me, but I'm struggling to understand how much useful work one could extract from a computer with only 32k of RAM. A microcontroller for an appliance, sure, but a mainframe? Could you tell us more about the work you were doing?

The original gameboy has 8K of RAM and the first and second gen pokemon games run on it. Most of the hard work is done by the graphics and sound hardware. Fairly large games though.

The original NES had 2K of RAM (but cartridges could expand that).

Re: Assembly Language for Beginners [pdf]

#68

My god, 1000+ pages. What a great submission though. I wonder what kind of things keep such people motivated to write one fuckin' thousand and eighty two pages about assembly!? This is nuts.

A couple of points come to mind:

1. Assembly language needs more lines of code to achieve the same task than higher level languages, by its very nature.

2. What I call Pascal's Amendment :) - very loosely like claiming the Fifth Amendment (to the US Constitution):

https://en.wikipedia.org/wiki/Fifth_Amendment_to_the_United_...

https://www.brainyquote.com/quotes/blaise_pascal_386732

"I have made this letter longer than usual, only because I have not had the time to make it shorter."

- Blaise Pascal

As a writer, I can corroborate that. In fact, if he "had the time to make it shorter", it implies that he spent even more time to write those 1000+ pages than it would seem on first glance. Plus even more than for the same 1000+ pages if in a higher level language, since assembly is a lot more error-prone.

Re: Assembly Language for Beginners [pdf]

#69
post #27

Maybe too much content? 1000+ pages, many architectures... Probably too much content for a beginner book? Btw, a great book imho is "Assembly Language Step By Step - Programming with Linux - 3rd ed" ( https://musho.tk/l/d2d56a34 ). The great things is that it is an easy read and really starts from the basic and explains how the i386 architecture works, and then explains how to program it using assembly. The sad thing…

I have the first or second edition of "Assembly Language Step By Step", and it's the best intro I know of. It must be difficult to write a good assembly book. On one hand there's a lot of basics to cover, like memory addressing, segmentation registers, etc. But on the other hand, the main use case for it today is hand optimized functions for when the compiler can't optimize enough, which is inherently an advanced top…

There is another use: Understanding compiler behavior and reverse engineering. Those mostly need reading skills.

Re: Assembly Language for Beginners [pdf]

#70
DiffPDF 2.1.3 finds only two tiny (if weird) differences in the appearance of the two versions of the books (https://yurichev.com/writings/AL4B-EN.pdf and https://beginners.re/RE4B-EN.pdf) besides the title, author and build date: two page references at pages 1075 and 1078.

Since both sites appear to be owned by the book's author this is most likely just a change that has not yet been pushed to github (or mentioned in the author's sites), but it would be better if the author clarified it (would that be you, dennis714?)

Post reply on HN