Lab Assignment 6 - CP Command Write Up
Lab Assignment 6 - CP Command Write Up
Problem Statement
Write X86 Assembly Language Program (ALP) to simulate OS command ‘cp’
using file operations.
Objective
Theory
Algorithm
Write an algorithm to copy the contents from the source file to destination file.
Input
Source file (abc.txt) & destination file (pqr.txt) name as command line arguments
Output
Source file content copied into destination file.
Environment -
OS - 64bit Ubuntu 12.01/Ubuntu 18
CPU – 64bit Core 2 Duo
Conclusion:
FAQ’s –
1. Explain Mode and Flags used in the File operations in Nasm.
2. Explain Pathname in the File operations in Nasm.