Assembly Language Computer Org Problem Problem 1 Write Function Printline Mimics System Ca Q37298114

This is an assembly language/computer org.problem.

Problem 1: Write a function print_line thatmimics system call 4. The only input parameter to this functionshould be the memory address of the start of a null terminatedcharacter array (appropriately stored on the stack). The functionshould utilize MMIO to print out the characters in the array one byone. Once the null terminator is reached, print out a newlinecharacter.

Problem 2: Write a function read_int thatmimics system call 5 (but only for non-negative integers). Thefunction needs no input parameters but should return the integergenerated by the user key presses (appropriately stored onto thestack). To read in an

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.