Data movement from a register to a stack, from a stack to register push and pop Instruction syntax of OUT and IN command, assembly language Instructions for data operations basics of assembly move data from one memory location to another MOVS Instructions

Data Recovery Software
Software Development Home Contact us Support

Data Recovery | Data Recovery Software | Partition Recovery | Undelete Partition | Password Recovery | Keylogger | File Recovery | Undelete Software

Data movement

I am listing some assembly language Instructions for data operations here for your knowledge and convenience, when we’ll be doing programming with the help of interrupts and other BIOS operations we’ll need its basics.

Detailed introduction and thorough study of assembly language is beyond the limit of this book. Though the knowledge of basics of assembly is necessary to proceed in the further important programming chapters yet if you feel it difficult to understand all the Instructions, you need not to worry but it is recommended that you should gain the basic idea of Instructions.

In any program it is necessary to move the data in the memory and in the CPU registers and there are several ways to do this. it can copy data in the memory to some register, from register to register, from a register to a stack, from a stack to a register, to transmit data to external devices as well as vice versa.

This movement of data is subject to rules and restrictions. The following are some of them:

  • It is not possible to move data from one memory location to another directly. It is necessary to first move the data of the source location to a register and then from the register to the destination locality.
  • It is not possible to move a constant directly to a segment register; it first must be moved to a register in the CPU.
  • It is possible to move data blocks by means of the MOVS Instructions, which copies a chain of bytes or words. MOCSB which copies n bytes from one location to another and MOVSW copies n words from one location to another. The last two Instructions take the values from the defined addresses by DS:SI as a group of data to move and ES:DI as the new localization of the data.
Data Recovery
Data Retrieval Software File Recovery Software Data Recovery Services Data Recovery Utilities
Data Recovery Utility USB Drive Data Recovery Windows Data Recovery Pen Drive Data Recovery
Undelete Files Files Recovery iPod Data Recovery Digital Camera Data Recovery

To move data there are also structures called batteries, where the data is introduced with the push Instruction and are extracted with the pop Instruction. In a stack the first data to be introduced is the last one we can take, this is, if in our program we use these Instructions:

PUSH AX
PUSH BX
PUSH CX

To return the correct values to each register at the moment of taking them from the stack it is necessary to do it in the following order:

POP CX
POP BX
POP AX


For the communication with external devices the out command is used to send information to a port and the in command to read the information received from a port.

The syntax of the OUT command is:

OUT DX,AX

Where DX contains the value of the port which will be used for the communication and AX contains the information which will be sent.

The syntax of the IN command is:

IN AX,DX

Where AX is the register where the incoming information will be kept and DX contains the address of the port by which the information will arrive.

Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi
Data Recovery with & without Programming


Publishers of the Book
Number of Pages
ISBN
Price of the Book


BPB Publications, New Delhi, India
540
81-7656-922-4
$69.00 (Including Shipping Charges, Cost of Book and Other expenses, Free Source Code CD included with the Book)





Buy Data recovery Book

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20

 
 

page 21 | 22 | 23 | 24 | 25 | 26

Next page
System Utilities System Utilities
Keylogger Keylogger
Secure Data Wiper Secure Data Wiper

Data recovery software Data recovery software
Windows Data Recovery Software Windows Data Recovery Software
iPod Data Recovery Software iPod Data Recovery Software
Memory Card Data Recovery Software Memory Card Data Recovery Software
Pen Drive Data Recovery Software Pen Drive Data Recovery Software
Digital Camera Data Recovery Software Digital Camera Data Recovery Software
Removable Media Data Recovery Software Removable Media Data Recovery Software
FAT Data Recovery Software

FAT Data Recovery Software

NTFS Data Recovery Software NTFS Data Recovery Software
Zune Music Recovery Software Zune Music Recovery Software
Sim Card Data Recovery Software Sim Card Data Recovery Software
Digital Pictures Recovery Software Digital Pictures Recovery Software

Data Retrieval

Data Retrieval

File Recovery Tools

File Recovery Tools

Files Recovery

Files Recovery

Memory Stick Data Recovery

Memory Stick Data Recovery

iPod Restore

iPod Restore

Hard Drive Data Recovery

Hard Drive Data Recovery

Data Recovery Tools

Data Recovery Tools

Mobile Phone Data Recovery

Mobile Phone Data Recovery

Mobile Website Design

Mobile Website Design

Software Development

Software Development

Link Exchange

Link Exchange

Live Chat Online

Live Chat Online

Web Services

Web Services

Website Design

Website Design

Real Estate Ghaziabad

Real Estate Ghaziabad

Real Estate Noida

Real Estate Noida

© Copyright 2002-2005 DataDoctor.Biz

Home | Contact us | Downloads | Services | Resources | Terms and conditions | Site map

Languages: English Spanish French German italian portuguese Japanese Korean Chinese Russian Dutch Greek
Data Recovery Book: English Spanish French German Italian Portuguese Japanese Korean Chinese Russian Dutch Greek