IUP Computer Science
COSC 300    Fall 03

Quiz #4
(20 Nov 2000)

Write a macro named Alternate that can display two alternating characters a specific number of times. As an example of the use of this macro: Alternate '*', '-', 10 should display an alternating sequence of 10 asterisks and 10 hyphens starting wherever the cursor is at the moment, thus looking like this: *-*-*-*-*-*-*-*-*-*- You should make this macro as user friendly as possible. Your macro should contain NO data declarations. Do not assume the existence of any other macros when writing this one.














Below is a macro definition for Strange and a use of Strange. Show what instructions would be generated when Strange is used below.
        Strange   macro      dir, what
                  sh&dir     ax, what
                  and        dir, dl
                  endm

        Strange   rd, <dx!, cl>