Question: Can you answer this in a asm code please? Create a simple macro called Tab that will output a tab character to the screen. The
Can you answer this in a asm code please? Create a simple macro called Tab that will output a tab character to the screen. The tab character on the ASCII table is h To test your macro write three short sentences to the screen all tab separated on one line.
NOTE:
You are not to use any IF ELSE, WHILE, or ENDW instructions. You are to use pure old fashion assembly language to solve this.
The use of legacy directives like DB and DW is not allowed in this class. A deduction of will be given if you use them.
The use of indirect addressing around variables is NOT allowed in the class unless you are using indirect addressing. An example of this would be val Doing this will result in a reduction in your grade.
You must comment every line of code you write or your grade will be reduced
Here is an example of what I got so far.
INCLUDE asmlib.inc
mTab MACRO
push eax ;store off eax
mov alh
call writeChar
pop eax ; restore it back
ENDM
data
code
main PROC
mov eax,
mov ecx,
mov alA
L:
call writeChar
mTab
inc al
LOOP L
exit
main ENDP
END main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
