EX COMMENT ~ Name: Lab: Date Submitted: ~ ; 32-bit assembly language template .386 .model flat,stdcall .stack 4096 ExitProcess proto,dwExitCode:dword ; If your code calls any of Irvine’s library modules then decomment the following line ; INCLUDE Irvine32.inc .data .code main proc invoke ExitProcess,0 main endp end main
Define four symbolic constants that represent integer 25 in decimal, binary, octal, and hexadecimal formats.
Find out, by trial and error, if a program can have multiple code and data segments.
Create a data definition for a doubleword that stored it in memory in big endian format.
Find out if you can declare a variable of type DWORD and assign it a negative value. What does this tell you about the assemblerA????1s type checking?
Write a program that contains two instructions: (1) add the number 5 to the EAX register, and (2) add 5 to the EDX register. Generate a listing file and examine the machine code generated by the assembler. What differences, if any, did you find between the two instructions?
Given the number 456789ABh, list out its byte values in little-endian order.
Submit one listing file.