Write assembly instructions to store two immediate 32bit con
Write assembly instructions to store two immediate 32bit constants, 0xEF and 0xAB, at memory locations 0x4000,0000 and 0x4000,0004.
And 0x33221100 and 0xFFEEDDCC, at memory locations 0x4000,0008 and 0x4000,000C
Solution
num1 dw 0xef
num2 dw 0xab
mov bx, 4000h
mov si, 0000h
mov, [bx+si], 0000h
inc si
inc si
mov, [bx+si], 00efh
inc si
inc si
mov, [bx+si], 0000h
inc si
inc si
mov, [bx+si], 00abh
inc si
inc si
mov, [bx+si], 1100
inc si
inc si
mov, [bx+si], 3322h
inc si
inc si
mov, [bx+si], 0ddcch
inc si
inc si
mov, [bx+si], 0ffeeh
