![]() ![]() ![]() an integer before calling WriteDec and 2. (ReadChar returns its value in AL.) MOV ESI, OFFSET array**** MOV ECX, LENGHTOF array**** MOV EBX, TYPE array**** call dumpMem This code displays the following array in hexadecimal, using the DumpMem procedure from the link library:::::array DWORD 10h,20h,30h,40h 1. Use the LOOP instruction with indirect addressing, and call the ReadChar procedure from the book's link library. ![]() WriteHex This library procedure writes an unsigned 32-bit integer to standard output in hexadecimal format Read10 PROC**** MOV ECX, LENGHTOF myString**** MOV ESI, OFFSET myString**** L1: call ReadChar**** MOV, AL**** INC ESI**** Loop L1**** RET Read10 ENDP Write a procedure named Read10 that reads exactly ten characters from standard input into an array of BYTE named myString. FALSE T/F The PUSH instruction increments the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer. call ReadInt*****call WriteInt This code writes a sequence of statements that read a signed integer from standard input and write the same integer to standard output. MOV EAX, 500 ***** call Delay This code causes a 500 millisecond delay, using a library procedure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |