Question: Translate psudo code to its appropriate C-code void-returning Writechar that's given a char as its argument: { declare: static unsigned short *cursor - (typecast)VIDEO START

Translate psudo code to its appropriate C-code
void-returning Writechar that's given a char as its argument: { declare: static unsigned short *cursor - (typecast)VIDEO START if 'cursor' is at the beginning of a row, erase that row (with spaces) if ch is neither CR nor LF { // it's a regular character apply pointer 'cursor' to display the character (arg passed) advance 'cursor' } else { advance cursor to 1st column of next row: current column position - (cursor - VIDEO_START) $ 80 remaining columns in this row - 80 - current column position add remaining columns to cursor if 'cursor' reaches bottom-right on screen, set it back to top-left void-returning Writechar that's given a char as its argument: { declare: static unsigned short *cursor - (typecast)VIDEO START if 'cursor' is at the beginning of a row, erase that row (with spaces) if ch is neither CR nor LF { // it's a regular character apply pointer 'cursor' to display the character (arg passed) advance 'cursor' } else { advance cursor to 1st column of next row: current column position - (cursor - VIDEO_START) $ 80 remaining columns in this row - 80 - current column position add remaining columns to cursor if 'cursor' reaches bottom-right on screen, set it back to top-left
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
