CODE and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $2.00 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading CODE on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Code: The Hidden Language of Computer Hardware and Software [Paperback]

Charles Petzold
4.7 out of 5 stars  See all reviews (137 customer reviews)

List Price: $17.99
Price: $11.19 & FREE Shipping on orders over $25. Details
You Save: $6.80 (38%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $9.44  
Hardcover --  
Paperback $11.19  
More to Explore
Continue browsing in the Microsoft Press Resource Center for books on everything from essential skills for beginners to technical references for IT professionals and developers.

Book Description

November 11, 2000

What do flashlights, the British invasion, black cats, and seesaws have to do with computers? In CODE, they show us the ingenious ways we manipulate language and invent new means of communicating with each other. And through CODE, we see how this ingenuity and our very human compulsion to communicate have driven the technological innovations of the past two centuries.

Using everyday objects and familiar language systems such as Braille and Morse code, author Charles Petzold weaves an illuminating narrative for anyone who’s ever wondered about the secret inner life of computers and other smart machines.

It’s a cleverly illustrated and eminently comprehensible story—and along the way, you’ll discover you’ve gained a real context for understanding today’s world of PCs, digital media, and the Internet. No matter what your level of technical savvy, CODE will charm you—and perhaps even awaken the technophile within.


Frequently Bought Together

Code: The Hidden Language of Computer Hardware and Software + The Elements of Computing Systems: Building a Modern Computer from First Principles + How Computers Work: Processor And Main Memory (Second Edition)
Price for all three: $42.99

Buy the selected items together


Editorial Reviews

Amazon.com Review

Charles Petzold's latest book, Code: The Hidden Language of Computer Hardware and Software, crosses over into general-interest nonfiction from his usual programming genre. It's a carefully written, carefully researched gem that will appeal to anyone who wants to understand computer technology at its essence. Readers learn about number systems (decimal, octal, binary, and all that) through Petzold's patient (and frequently entertaining) prose and then discover the logical systems that are used to process them. There's loads of historical information too. From Louis Braille's development of his eponymous raised-dot code to Intel Corporation's release of its early microprocessors, Petzold presents stories of people trying to communicate with (and by means of) mechanical and electrical devices. It's a fascinating progression of technologies, and Petzold presents a clear statement of how they fit together.

The real value of Code is in its explanation of technologies that have been obscured for years behind fancy user interfaces and programming environments, which, in the name of rapid application development, insulate the programmer from the machine. In a section on machine language, Petzold dissects the instruction sets of the genre-defining Intel 8080 and Motorola 6800 processors. He walks the reader through the process of performing various operations with each chip, explaining which opcodes poke which values into which registers along the way. Petzold knows that the hidden language of computers exhibits real beauty. In Code, he helps readers appreciate it. --David Wall

Topics covered: Mechanical and electrical representations of words and numbers, number systems, logic gates, performing mathematical operations with logic gates, microprocessors, machine code, memory and programming languages. --This text refers to an out of print or unavailable edition of this title.

About the Author

Charles Petzold wrote the classic Programming Windows®, which is currently in its fifth edition and one of the best-known and widely used programming books of all time. He was honored in 1994 with the Windows Pioneer Award, presented by Microsoft® founder Bill Gates and Windows Magazine. He has been programming with Windows since first obtaining a beta Windows 1.0 SDK in the spring of 1985, and he wrote the very first magazine article on Windows programming in 1986. Charles is an MVP for Client Application Development and the author of several other books including Code: The Hidden Language of Computer Hardware and Software.


Important Information

Ingredients
Example Ingredients

Directions
Example Directions

Product Details

  • Paperback: 396 pages
  • Publisher: Microsoft Press; y First paperback edition edition (November 11, 2000)
  • Language: English
  • ISBN-10: 0735611319
  • ISBN-13: 978-0735611313
  • Product Dimensions: 7.1 x 0.6 x 9.1 inches
  • Shipping Weight: 1.4 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (137 customer reviews)
  • Amazon Best Sellers Rank: #4,208 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

I recommend this highly to anyone with a technical interest in computers. Lorgan  |  41 reviewers made a similar statement
So, if you want to know how any computer really works, read this book. Lynn P Richard  |  33 reviewers made a similar statement
I found this book very well written. Jaron  |  36 reviewers made a similar statement
Most Helpful Customer Reviews
235 of 239 people found the following review helpful
5.0 out of 5 stars Best Book I've Read This Year November 27, 1999
Format:Hardcover|Amazon Verified Purchase
I think that this is the best book that I have read all year. In some sense this is the book that I have been looking for for twenty-five years--the book that will enable me to understand how a computer does what it does. And--given the centrality of computers in our age--it has been a long wait. But now it is over. Charles Petzold (1999), Code: The Hidden Language of Computer Hardware and Software does a much better job than anything else I have ever seen in explaining computers--what they really are, and how they really work.

Have you ever wondered just how your computers really work? I mean, really, really work. Not as in "an electrical signal from memory tells the processor the number to be added," but what the electrical signal is, and how it accomplishes the magic of switching on the circuits that add while switching off the other circuits that would do other things with the number. I have. I have wondered this a lot over the past decades.

Yet somehow over the past several decades my hunger for an explanation has never been properly met. I have listened to people explain how two switches wired in series are an "AND"--only if both switches are closed will the lightbulb light. I have listened to people explain how IP is a packet-based communications protocol and TCP is a connection-based protocol yet the connection-based protocal can ride on top of the packet-based protocol. Somehow these explanations did not satisfy. One seemed like answering "how does a car work?" by telling how in the presence of oxygen carbon-hydrogen bonds are broken and carbon dioxide and water are created. The other seemed like anwering "how does a car work" by telling how if you step on the accelerator the car moves forward.

Charles Petzold is different. He has hit the sweet spot exactly. Enough detail to satisfy anyone. Yet the detail is quickly built up as he ascends to higher and higher levels of explanation. It remains satisfying, but it also hangs together in a big picture.

In fact, my only complaint is that the book isn't long enough. It is mostly a hardware book (unless you want to count Morse Code and the interpretation of flashing light bulbs as "software." By my count there are twenty chapters on hardware, and five on software. In my view only five chapters on software--one on ASCII, one on operating systems, one on floating-point arithmetic, one on high-level languages, and one on GUIs--is about ten too few. (Moreover, at one key place in his explanation (but only one) he waves his hands. He argues that it is possible to use the operation codes stored in memory to control which circuits in the processor are active. But he doesn't show how it is done.)

Charles Petzold's explanatory strategy is to start with the telegraph: with how opening and closing a switch can send an electrical signal down a wire. And he wants to build up, step by step, from that point to end with our modern computers. At the end he hopes that the reader can look back--from the graphical user interface to the high-level language software constructions that generate it, from the high-level language software constructions to the machine-language code that underlies it, from the machine-language code to the electrical signals that load, store, and add bits into the computer's processor and into the computer's memory.

But it doesn't stop there. It goes further down into how to construct an accumulator or a memory bank from logic gates. And then it goes down to how to build logic gates--either out of transistors or telegraph relays. And then deeper down, into how the electrons actually move through a transistor or through a relay and a wire.

And at the end I could look back and say, yes, I understand how this machine works in a way that I didn't understand it before. Before I understood electricity and maybe an AND gate, and I understood high level languages. But the whole vast intermediate realm was fuzzy. Now it is much clearer. I can go from the loop back to the conditional jump back to the way that what is stored in memory is fed into the processor back to the circuits that set the program counter back to the logic gates, and finally back to the doped silicon that makes up the circuit.

So I recommend this book to everyone. It is a true joy to read. And I at least could feel my mind expanding as I read it.

Was this review helpful to you?
98 of 100 people found the following review helpful
Format:Hardcover
The average person who uses a computer to surf the web or type letters has so little knowledge of the underlying technology he or she is using that it may as well be magic. Even programmers, who typically spend their days solving problems with the high-end abstractedness of object-orientation, may be more than a little unclear about what's actually going on inside the box when their compiled code is running.

Petzold attempts, and largely succeeds at, writing a book that leaves the reasonably intelligent layperson with a thorough comprehension of each layer that comprises a modern electronic computer (binary coding -> electronic representation -> transistors -> logic gates -> integrated circuits -> microprocessors -> opcodes -> assembly language -> high-level language -> applications). At times, the reader must follow along carefully, but Petzold tries to avoid needless complication.

Code is a well written and very entertaining explanation of the digital electronic technology that has become an integral part of our daily lives. Short of getting a degree in electrical engineering, this book is your best bet to understand how it works.

Comment | 
Was this review helpful to you?
31 of 32 people found the following review helpful
Format:Hardcover
Charles Petzold a does an outstanding job of explaining the basic workings of a computer. His story begins with a description of various ways of coding information including Braille, Morse code, and binary code. He then describes the development of hardware beginning with a description of the development of telegraph and relays. This leads into the development of transistors and logic gates and switches. Boolean logic is described and numerous electrical circuits are diagramed showing the electrical implementation of Boolean logic. The book describes circuits to add and subtract binary numbers. The development of hexadecimal code is described. Memory circuits are assembled by stringing logic gates together. Two basic microprocessors are described - the Intel 8080 and the Motorola 6800. Machine language, assembly language, and some higher level software languages are covered. There is a chapter on operating systems. This book provides a very nice historical perspective on the development of computers. It is entertaining and only rarely bogs down in technical detail.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Great Breakdown of Computer Concepts
This is a great book for someone who isn't familiar with how digital electronics work. Petzold takes you from Morse code and Braille up to complex computer systems.
Published 1 month ago by kyork
5.0 out of 5 stars how it really works under the hood
there are a two main approaches to teach computer architecture:

- the most popular is to show you pictures of a processor, hard disk or monitor with some comments;... Read more
Published 1 month ago by Ilya Rudyak
5.0 out of 5 stars Great Reading...
Enjoyed the reading... I would recommend this book to anyone who would seek to find out more about how electrical engineering meets code construction to create an efficient... Read more
Published 1 month ago by dveenk
5.0 out of 5 stars thoughtful
It is a good book because it talks about code and numbers. It teaches us to look at the process. It's is a little boring, but if you let it sink in. It will help you.
Published 1 month ago by Truman Swann
4.0 out of 5 stars Misleading title of cool book
It's not really about the coding systems, which I thought it is. It's about the deepest hardware internals of the very computer you use right now. Read more
Published 2 months ago by Mark
2.0 out of 5 stars I don't recommend it
I didn't enjoy this book. It's okay, I guess, if you've had pretty much zero introduction to coding, and know just a bit of math. Read more
Published 2 months ago by Max
5.0 out of 5 stars Want to learn how computers work from the bottom up? Read this book!
Best introduction to how a computer works that I have found. I thought I would have to write my own book until I found this one. Read more
Published 3 months ago by John Chauncey Busby
5.0 out of 5 stars Very Interesting Read
Charles Petzold has actually succeeded at writing a book about computer hardware and software that can be read in bed at night. Read more
Published 3 months ago by Tom
4.0 out of 5 stars Truly Great
This is a fantastic book for anyone who wants to understand how computers really work. Lots of folks can use a computer. A much smaller number can program a computer. Read more
Published 3 months ago by Peter D. Schaeffer
5.0 out of 5 stars Unique
More That You Really Need To Know, but in the spirit of "leaky abstractions" ([...]) - that's not always a bad thing.
Published 3 months ago by Steve Brorens
Search Customer Reviews
Only search this product's reviews





Forums

Search Customer Discussions
Search all Amazon discussions

Topic From this Discussion
Still Accurate? Be the first to reply
Where is the Kindle edition?
Yeah, where is it? I want to buy a copy.
Jan 23, 2012 by Carlos Santiviago |  See all 2 posts
Thoughts on the the Kindle edition?
The kindle formatting is fine. I don't have a printed copy to compare it to but the diagrams are reproduced clearly and you can zoom in on them if you need to. A few of the circuit diagrams would probably benefit from color but it's not a huge deal.
Jan 3, 2012 by A. Pushkin |  See all 3 posts
Start a new discussion
Topic:
First post:
Prompts for sign-in
 






Look for Similar Items by Category


Want to discover more products? You may find many from best language software shopping list.