This preview shows page 1. Sign up to view the full content.
Unformatted text preview: verflow S ign Z ero mov ax,0BA56h add ax,0A954h ;ax= ______________ C=__ O=__ S=__ Z=__ add ax,0F000h ;ax= ______________ C=__ O=__ S=__ Z=__ mov ax,0D553h ;ax= ______________ C=__ O=__ S=__ Z=__ add al,0ADh ;ax= ______________ C=__ O=__ S=__ Z=__ 10. Use boxes, where one box equals one byte, to show how memory will be allocated and initialized for the following protected-mode program data segment. Be sure to include the offset of each label in the data segment. Give all answers in hexadecimal. Assume the 32-bit offset of the first item in the data segment is 000A0085 . BE SURE TO ACCOUNT FOR EVERY BIT IN A FIELD. .data 000A0085 V1 BYTE 3Ah, 254, 23h, -15 ____________ V2 DWORD V1, 7 ____________ V3 DWORD $-V1 ____________ V4 LABEL WORD ____________ V5 DWORD 0A1C3F5D7h myEqu = 5 ;remember, equates do not reserve storage ____________ V6 DWORD 2 dup (myEqu+10) 1...
View Full Document
This note was uploaded on 04/05/2010 for the course CSE 2240 taught by Professor Staff during the Fall '08 term at Southern Methodist.
- Fall '08
- Assembly Language