از پارسکدرز بیشترین بهره را ببرید و رویای کاری خود را زندگی کنید.
سه سال پیش منتشر شده
تعداد بازدید: 154
کد پروژه: 388398
شرح پروژه
#پروژه_جدید
#کدپروژه : 51774
موضوع : پروژه اسمبلی ==
برای پروژه اسمبلی درسی هیتش
2.3 Assignment 2: subroutines and I/O
In this assignment you will write your first simple subroutine. You will also learn how to obtain
input from the user. The scanf subroutine from the C standard library can be used to obtain
input from users. It is discussed in paragraph 3.4.2 of the reference section. Paragraph 3.3.2
explains how to define your own subroutines.
Exercises:
1. Using the skeleton file provided in the framework and the coding steps learned in assignment
2, alter the printed message in such a way that it prints the correct assignment name (“As-
signment 2: inout”). Create a subroutine called inout and call it from within your my main
routine right after your message is displayed. At first, your subroutine should simply return
immediately. Build and test your program.
2. Add a subroutine my increment, that takes one number as an input and returns its incre-
ment.
3. Alter your inout subroutine in such a way that it asks the user for a number, uses the
my increment subroutine to increment it, and prints the result on the terminal. Build and
test your program and save it for later approval.
Important: For this assignment, you must have your submission checked by a Teaching
Assistant alongside Assignment 1. Only enter the submission queue when both assignments are
fully implemented and passing all CodeGrade tests.
اینم فایلش هست :
# *****
# * Program name: inout *
# * Description : *
# *****
#ifndef MACOS
.ifndef CODEGRADE
.global main
main: jmp my_main
.endif
#else
.global _main
_main: jmp my_main
printf: jmp _printf
scanf: jmp _scanf
exit: jmp _exit
#endif
.text
# your strings here
.global my_main # make my_main accessible globally
.global my_increment # make my_increment accessible globally
my_main:
# set up the stack frame
call inout
# clear the stack and return
inout:
# read input and increment it using my_increment
call my_increment
# output incremented number
my_increment:
# IMPLEMENT ME
مهارت ها و تخصص های مورد نیاز
مبلغ پروژه
230,000 تومان
مهلت برای انجام
1روز
وضعیت مناقصه
انجام شده
درباره کارفرما
عضویت سه سال پیش
نیاز به استخدام فریلنسر یا سفارش پروژه مشابه دارید؟
قادر به انجام این پروژه هستید؟
متأسفانه مهلت ارسال پیشنهاد این پروژه به پایان رسیده و پروژه بسته شده است؛ اما فرصتهای متعددی در سایت موجود میباشد.
به رایگان یک حساب کاربری بسازید
مهارتها و تخصصهای خود را ثبت کنید، رزومه و نمونهکارهای خود را نشان دهید و سوابق کاری خود را شرح دهید.
به شیوهای که دوست دارید کار کنید
برای پروژههای دلخواه در زمان دلخواه پیشنهاد قیمت خود را ثبت کنید و به فرصتهای شغلی منحصر به فرد دسترسی پیدا کنید.
با اطمینان دستمزد دریافت کنید
از زمان شروع کار تا انتهای کار به امنیت مالی شما کمک خواهیم کرد. وجه پروژه را از ابتدای کار به امانت در سایت نگه خواهیم داشت تا تضمین شودکه بعد از تحویل کار دستمزد شما پرداخت خواهد شد.
میخواهید شروع به کار کنید؟
یک حساب کاربری بسازید
بهترین مشاغل فریلنسری را پیدا کنید
رشد شغلی شما به راحتی ایجاد یک حساب کاربری رایگان و یافتن کار (پروژه) متناسب با مهارتهای شما
است.
پیدا کردن کار (پروژه)
تماشای دمو روش کار