For project #1, you will ask the user to input 2 strings and concatenate the two. Both strings will have at most 12 ASCII characters. You will ask the user to enter the first string after which they will hit enter. If the number of characters exceeds the 12-character limit, you will print an error and exit the program with a 7 return code. If the number of characters is less than or equal to 12 characters, you will ask them to enter another string. If the second string exceeds the character limit, your program should print an error message and exit with an 8 return code. If both strings meet the requirements, you will then output the concatenated string to stdout and return an error code that consists of the total number of characters in the concatenated string.
- Download the bash script using curl:
curl https://raw.githubusercontent.com/jakekali/compArchProject1/main/runme --output runme
- Change the permissions on the bash script file - runme
chmod +x runme
- Run the runme bash file:
./runme
- Download the assembly file from GitHub using curl:
curl https://raw.githubusercontent.com/jakekali/compArchProject1/main/jag.s --output jag.s
- Download the Makefile from GitHub using curl:
curl https://raw.githubusercontent.com/jakekali/compArchProject1/main/Makefile --output Makefile
- Run the Makefile in the directory downloaded: (it might throw an error, but it can ignored, the file still generates)
make
- Run the exectutable generated:
./jag.out
The Design Document can be found here