Question: I need help with some x86 assembly. Thanks! Write an assembly program that reads lines of text from a txt file and prints them diagonally.
I need help with some x86 assembly. Thanks!
Write an assembly program that reads lines of text from a txt file and prints them diagonally.
pseudo-code:
set the count of spaces to 0.
repeat over and over until the sys_read fails to read any sort of new input:
then, read a buffer of data
for each input byte in the buffer:
if there is not a newline byte:
print spaces
and that byte (as ascii character)
then, increase the count of spaces by 1
else:
print a newline byte
reset count of spaces to 0
Example:
word.txt:
something
printed:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
