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 09h. 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 40% 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 [val1]. Doing this will result in a 25% reduction in your grade.
You must comment every line of code you write or your grade will be reduced 20%
Here is an example of what I got so far.
INCLUDE asmlib.inc
mTab MACRO
push eax ;store off eax
mov al,09h
call writeChar
pop eax ; restore it back
ENDM
.data
.code
main PROC
mov eax, 0
mov ecx, 5
mov al,'A'
L1:
call writeChar
mTab
inc al
LOOP L1
exit
main ENDP
END main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!