System ServiceObjectives● Students will learn to use Assembly to call Linux System Services○ Console Output○ Console Input○ File Open/Create○ File Read○ File WriteReading:Chapter 7:...

this is Assembly language homework it doing with 64bit


System Service Objectives ● Students will learn to use Assembly to call Linux System Services ○ Console Output ○ Console Input ○ File Open/Create ○ File Read ○ File Write Reading: Chapter 7: Linux Operating System Services Directions Go the the downloaded repository cd CS12-ARM cd Assignments cd template ./createProject Syscalls Open the Syscalls.s file in your editor of choice Starting with the samples in the lecture code ~/CS12-ARM/LectureCode/syscalls create a program that: Queries the user for a file name (you may limit this file to 25 characters to make it easier, but do not forget the final 0xa character from the return key being hit) Set the final character of the input file name to a 0x0 (Null) from the 0xA (LF) or you will experience an interesting file name Queries the user for a message to put into the file (you may limit this file to 100 characters to make it easier, but do not forget the final 0xa character from the return key being hit) Writes the message to the file using the file name and message given by the user You will Open the file, write the file, close the file Reads the file and outputs what is read from the file to the stdout You will Open the file, read the file, close the file Then double check to ensure the file is in the current directory, has the correct name and holds the correct contents (see below for an example) The output of your code should look like this Enter a file name to write to (max 100 characters)! test.me Enter a message to write to the file (max 100 characters)! this is my message to test this is my message to test The file should be on the system too, you can cat the file using the syntax below $ cat test.me this is my message to test Descustion Hello Assembly, C Calling 23 When might you call Assembly from C or other high level languages? what advantage might there be? What about calling C functions from Assembly, what advantages might there be?
Dec 15, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here