ASSEMBLY CODE QUESTIONS 1) Can an .asm file be a word document? Why or Why not?
ID: 3670737 • Letter: A
Question
ASSEMBLY CODE QUESTIONS
1) Can an .asm file be a word document? Why or Why not?
2) How did you assemble and link your program to create the executable file? You can just state the name of DOS command.
3) Why do we need the ‘$’ at the end of a string?
4) What means to use /zi and /l in tasm and what means /v and /t in tlink?
5) Go back to the programs in Lab 1 and list what DOS functions were used then.
6) Using the program below, edit, assemble and generate .EXE file. Then run the Turbo
Assembler Debugger “td” to fill the table below and answer the questions in the code. (Provide supportive screen shots in your report).
Explanation / Answer
1) Yes, .asm file can be opened with word. .asm files are usually data with assmbly language code.This data can be accessed for editing by many text editors like Notepad, MS Word
2) You can create an executable file by saving your program in a file and renaming the extension to .bat
3) The '$' sign serves to terminate the sting like null does in C.
4) "/l" generates a listing file for documentation and debug purposes. The "/zi option generates extra information which will be used by the Turbo-Debug program.
The "/v" option specifies that you want to preserve fulld ebug information wiht the executable file.
5) Further information required.
6) Program not provided.