Question
PLEASE EXPLAIN THOROUGHLY!!!!!!!!! I am trying to add Assembly Code to my Programming Language C file which I have shared below. I want to add
PLEASE EXPLAIN THOROUGHLY!!!!!!!!!
I am trying to add Assembly Code to my Programming Language C file which I have shared below.
I want to add big letters to my program which say "Welcome to the game"
May I please know how to add Assembly to my C File.
#include #include #include #include #include void red() { printf("\033[0;31m"); } void white() { printf("\033[0;37m"); } void blue() { printf("\033[0;34m"); }
void cyan() { printf("\033[0;36m"); }
void reset() { printf("\033[0m"); }
int main() {
char dummy; //It is a string asking for the user's first name char name[20], choice[20];
//The following printf statements that will print the title,date, day and year red(); printf(" A day in the life of a college student"); white(); printf(" It is April 19th, 1980");
blue(); printf(" Please enter your name: "); reset(); scanf(" %s", name); dummy = getchar();
char news, breakfast; printf(" The user called %s pondered on how best to start the morning ", name); printf(" news or breakfast: "); scanf("%s", choice); //dummy = getchar();
if (strcmp(choice, "news") == 0) { printf("The user called %s decided to start the morning with news about the Cold War", name); } else { printf("The user called %s decided to get some food in them", name); }
char run, sleep; printf(" The user called %s debated on what to do next ", name); printf(" run or sleep: "); scanf("%s", choice); //dummy = getchar();
if (strcmp(choice, "run") == 0) { printf("The user called %s decided to start the morninng right with a nice 5K run", name); } else { printf("The user called %s decided to be a lazy bug and start the morning w/o any energy or breakfast in them", name); }
char skip, attend; printf(" skip or attend: "); scanf("%s", choice); //dummy = getchar();
if (strcmp(choice, "skip") == 0) { printf("The user called %s didnt feel like going to class", name); } else { printf("The user called %s wanted to attend to do good in Calculus 2 class which wasnt going so well", name); }
char lunch, relax; printf(" lunch or relax: "); scanf("%s", choice); dummy = getchar(); if (strcmp(choice, "lunch") == 0) { printf("The user called %s was starving and wanted to chill ", name); } else { printf("The user called %s wanted to go back to their dorm and chill out for a while", name); }
cyan(); printf(" The day is already over !! Well, one less day in the life of a college student!!"); printf(" THE END !!!"); printf(" Hope you enjoyed this story!!"); reset(); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started