Upload two separate files: symbol table/flags, and the series program. Submitting homework on-line.
I want you to upload and print two things for this assignment. Upload each of the following, and hand in a printout of each.
.data king db "Arthur",0dh,0ah,"$" dozen = 12 ports dw 0cdh,0ab34h,34h base equ 16 total dd 3 dup(0deh)
.model small .stack 100h .data .code main proc mov ax,@data mov ds,ax mov ah,0 mov bh,0 add ah,7Dh add ah,7Ch ;ah= S= C= O= Z= add ah,7 ;ah= S= C= O= Z= add ah,82h ;ah= S= C= O= Z= add ah,7Eh ;ah= S= C= O= Z= mov ax,4c00h int 21h main endp end main
Assuming the executable is named prog1.exe, then use this command
to start the debugger:
debug prog1.exe
Then trace the program and verify that your answers are correct.
Hand in the table indicating the value of ah and the four flags after each
of the four indicated instructions is executed.
Download the file ASM_IO.INC to the directory where your ASM file is. Add the following statement between the .code directive and the main proc directive.
.code include ASM_IO.INC main proc
You can now print the value in AX as an unsigned number by the following call
call print_unsigned
2 6 12 20 30 42 56 72 90 110 132 156