Example: barber

Assembly Language: Step-by-Step - Petra Christian University

File:///E|/TEMP/ Assembly %20 LanguageChapt% Assembly language : Step-by-Step Jeff Duntemann file:///E|/TEMP/ Assembly %20 LanguageChapt% (1 of 23) [9/30/02 08:15:26 PM]file:///E|/TEMP/ Assembly %20 LanguageChapt% John Wiley & Sons, York Chichester Brisbane Toronto Singapore This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other profes-sional service.

tutorial on assembly language, or even close to it. What I want to do is get you familiar enough with the jargon and the assumptions of assembly language so that you can pick up your typical "introduction" to assembly language and not get lost by page 6. I specifically recommend Tom Swan's excellent book, Mastering Turbo Assembler, which will take

Tags:

  Language, Tutorials, Assembly, Assembly language

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Assembly Language: Step-by-Step - Petra Christian University

1 File:///E|/TEMP/ Assembly %20 LanguageChapt% Assembly language : Step-by-Step Jeff Duntemann file:///E|/TEMP/ Assembly %20 LanguageChapt% (1 of 23) [9/30/02 08:15:26 PM]file:///E|/TEMP/ Assembly %20 LanguageChapt% John Wiley & Sons, York Chichester Brisbane Toronto Singapore This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other profes-sional service.

2 If legal advice or other expert assistance is required, the services of a competent professional person should be sought. FROM A DECLARATION OF PRINCIPLES JOINTLY ADOPTED BY A COMMITTEE OF THE AMERICAN BAR ASSOCIATION AND A COMMITTEE OF 1992 by John Wiley & Sons, rights reserved. Published simultaneously in CanadaReproduction or translation of any part of this work beyond that permitted by section 107 or 108 of the 1976 United States Copyright Act without the written permission of the copyright owner is unlawful. Requests for permission or further information should be addressed to the Permissions Department, John Wiley & Sons, :///E|/TEMP/ Assembly %20 LanguageChapt% (2 of 23) [9/30/02 08:15:27 PM]file:///E|/TEMP/ Assembly %20 LanguageChapt% Kathleen M.

3 Duntemann, Godmother .. who gave me books when all I could do was put teeth marks inIt was a good the importance of preserving what has been written, it is a policy of John Wiley & Sons, Inc. to have books of enduring value published in the United States printed on acid-free paper, and we exert our best efforts to that of Congress Cataloging-in-Publication DataDuntemann, Jeff. 1952 - Assembly language : Step-by-Step / Jeff cm. Includes 0-471-57814-2 (paper : alk. paper) 1. Assembler language (Computer program file:///E|/TEMP/ Assembly %20 LanguageChapt% (3 of 23) [9/30/02 08:15:27 PM]file:///E|/TEMP/ Assembly %20 LanguageChapt% ) 1992 CIPP rinted in the United States of America93 10 9876543 Introduction:Agony in the Key of AX What astonishes me about learning how to program is not that it's so hard, but that it's so easy.

4 Am I nuts? Hardly. It's just that my curse is the curse of a perfect memory, and I remember piano lessons. My poor mother paid $600 in 1962 for a beautiful cherrywood spinet, and every week for two years I trucked off to Wilkins School of Music for a five dollar lesson. It wasn't that I was a reluctant student; I love music and I genuinely wanted to master the damned thing. But after two years, the best I could do was play "Camelot" well enough to keep the dog from howling. I can honestly say that nothing I ever tried file:///E|/TEMP/ Assembly %20 LanguageChapt% (4 of 23) [9/30/02 08:15:27 PM]file:///E|/TEMP/ Assembly %20 LanguageChapt% failed to achieve after that (including engineering school and sailboarding) was anything close to that 's why I say: if you can play the piano, you can learn to program in Assembly language .

5 Even if you can't play the piano, I hold that you can learn to program in Assembly language , if: You've ever done your own long-form taxes You've earned a degree in medicine, law, or engineering You've ever put together your kid's swing set You've ever cooked a five-course dinner for eight and gotten everything to the table, hot, at all the right timesStill, playing the piano is the acid test. There are a lot more similarities than there are differences. To wit:In both cases, you sit down in front of a big expensive machine with a keyboard. You try to memorize a system of notation that seems to have originated on Mars.

6 You press the keys according to incomprehensible instruc-tions in stacks of books. Ultimately, you sit there and grit your teeth while making so many mistakes your self-confidence dribbles out of your pores and disappears into the carpet padding. In many cases, it gets so bad that you hurl the books against the wall and stomp off to play Yahtzee with your little differences are fewer: mistakes committed while learning Assembly language won't make the dog howl. And, more crucially, what takes years of agony in front of a piano can be done in a couple of months in front of your average , I'll do my best to 's what this book is for: to get you started as an Assembly - language programmer from a dead stop.

7 I'll assume that you know how to run your machine. That is, I won't go through all that nonsense about flipping the big red switch and inserting a disk in a drive and holding down the Ctrl key while pressing the C key. Van Wolverton can teach you all that the other hand, I won't assume that you know anything about pro-gramming, nor very much about what happens inside the box itself. That means the first few sections will be the kind of necessary groundwork that will start you nodding off if you've been through it already. There's no helping that. Skip to Section 3 or so if you get also have to come clean here and admit that this book is not intended to be a complete tutorial on Assembly language , or even close to it.

8 What I want to do is get you familiar enough with the jargon and the assumptions of Assembly language so that you can pick up your typical "introduction" to Assembly language and not get lost by page 6. I specifically recommend Tom Swan's excellent book, Mastering Turbo Assembler, which will take file:///E|/TEMP/ Assembly %20 LanguageChapt% (5 of 23) [9/30/02 08:15:27 PM]file:///E|/TEMP/ Assembly %20 LanguageChapt% the rest of the way if you use Borland's assembler. A comparable book devoted to Microsoft's MASM has not yet been written, but even if you use MASM, Tom's book will still be valuable and you'll learn a lot from it.

9 Mastering Turbo Assembler can occasionally be found in bookstores, or you can order it by mail through PC TECHNIQUES language is almost certainly the most difficult kind of computer programming, but keep in mind that we're speaking in relative terms here. Five pushups are harder to do than five jumping jacks but compared to running the Marathon, both amount to almost nothing. Assembly language is more difficult to learn than Pascal, but compared to raising your average American child from birth to five years, it's a don't let the mystique get you. Assembly - language programmers feel pretty smug about what they've learned to do, but in our workaday lives we are forced to learn and do things that put even Assembly language to shame.

10 If you're willing to set aside a couple months' worth of loose moments, you can pick it up too. Give it a shot. Your neighbors will thank so will the dog. -Jeff Duntemann Scottsdale, AZ March 1992 A Note to People WhoHave Never Programmed BeforeMore than anyone else, this book was written for you. Starting with Assembly language would not be most people's first choice in a computer language , but it's been done; it can be done, and it can be done with less agony than you might think. Still, it's a novel aim for a computer book, and I'd like you to do a little quality control for me and tell me how I'm you're going through this book, ask yourself once in a while: is it working?


Related search queries