Does anyone know a good assembler textbook ?

  • Thread starter Klizja
  • Start date
  • Tags
    Textbook
In summary: REP MOVSB moves a string of length CX bytes from DS:ESI to ES:ESI. REP MOVSW moves a string of length CX bytes from DS:ESW to ES:EW. REP CMPSB compares two strings of length CX bytes. EDI and ESI are register pointer names in 32 bit mode. In 64 bit mode, the register pointer names would be RDI and RSI, in 16 bit mode, just DI and SI.
  • #1
Klizja
9
0
Does anyone know a good assembler textbook ?! :)

Hello , everyone :)

Could anyone suggest a good assembler textbook ? It would be nice , if it covered working with strings in detail , a tutorial about working with strings would also do nicely :)

Thank you in advance :)

P.S. Oh , and by the way , which assembler is the easiest to use if you are completely new to the area of assembler programming , however have some experience of coding in C and Pascal :)
 
Last edited:
Technology news on Phys.org
  • #2


There is no one assembler - each processor has its own set of instructions, so you have to be more specific.
 
  • #3


If you are learning say assembler for the AMD/Intel architectures you might be better off just downloading the architecture specifications from the respective vendors website.
 
  • #4


Do a search on "assembler textbook". I got a lot of hits, including some books that are published online.
 
  • #5


Granted, the last assembly I wrote was for an Analog Devices DSP, and before that 8086 assembly-- but ... strings? In assembly? Are there built-in handlers for string manipulation in assembly these days?

DaveE
 
  • #6


davee123 said:
Granted, the last assembly I wrote was for an Analog Devices DSP, and before that 8086 assembly-- but ... strings? In assembly? Are there built-in handlers for string manipulation in assembly these days?
x86 has instructions for Pascal type strings. REP MOVSB will move a string of length CX bytes from DS:ESI to ES:ESI. REPNE SCASB searches a string of length CX bytes at ES:ESI for the first occurance of a match with AL. REPE CMPSB wll compare two strings of length CX bytes at DS:ESI and ES:EDI. EDI and ESI are register pointer names in 32 bit mode. In 64 bit mode, the register pointer names would be RDI and RSI, in 16 bit mode, just DI and SI.
 
Last edited:
  • #7


rcgldr said:
x86 has instructions for Pascal type strings. REP MOVSB will move a string of length CX bytes from DS:ESI to ES:ESI.
Correction: From Intel® 64 and IA-32 Architectures
Software Developer’s Manual, Volume 2B:
(For legacy mode) REP MOVSB moves a string of (E)CX bytes from address DS:(E)SI to ES:(E)DI. For 64-bit mode move byte from address (R|E)SI to (R|E)DI.

The SI, ESI, and RSI registers (16 bits, 32 bits, and 64 bits, respectively) are source index registers, hence their name. The DI, EDI, and RDI registers are destination index registers.
rcgldr said:
REPNE SCANSB searches a string of length CX bytes at ES:ESI for the first occurance of a match with AL.
The instruction names are SCASB, SCASW, and SCASD - no N in the name.
rcgldr said:
REPE CMPSB wll compare two strings of length CX bytes at DS:ESI and ES:EDI. EDI and ESI are register pointer names in 32 bit mode. In 64 bit mode, the register pointer names would be RDI and RSI, in 16 bit mode, just DI and SI.
 

Related to Does anyone know a good assembler textbook ?

1. What is an assembler textbook?

An assembler textbook is a type of educational resource that teaches the fundamentals of assembly language programming. It typically covers topics such as instruction sets, registers, memory management, and program structure.

2. What makes a good assembler textbook?

A good assembler textbook should have clear and concise explanations, relevant examples and exercises, and a well-organized structure. It should also cover the latest versions of commonly used assembly languages.

3. How can I find a good assembler textbook?

You can find a good assembler textbook by researching online or asking for recommendations from experienced assembly language programmers. It's also helpful to read reviews and sample chapters before making a decision.

4. Is there a specific assembler textbook that is recommended for beginners?

There are several assembler textbooks that are recommended for beginners, such as "Assembly Language for x86 Processors" by Kip R. Irvine and "Programming from the Ground Up" by Jonathan Bartlett. It ultimately depends on your personal learning style and the specific assembly language you are interested in.

5. Can I learn assembly language programming without a textbook?

While a textbook can be a valuable resource, it is not the only way to learn assembly language programming. There are also online tutorials, video courses, and other educational materials available. However, a textbook may provide a more comprehensive and structured approach to learning.

Similar threads

Replies
6
Views
1K
  • Programming and Computer Science
Replies
16
Views
2K
  • Computing and Technology
Replies
9
Views
2K
  • Programming and Computer Science
Replies
14
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
  • Science and Math Textbooks
Replies
6
Views
1K
  • Programming and Computer Science
Replies
2
Views
2K
  • Science and Math Textbooks
Replies
15
Views
2K
  • Science and Math Textbooks
Replies
1
Views
3K
Replies
7
Views
2K
Back
Top