Question: What would I replace 2 2 7 4 h with? . 3 8 6 . model flat, stdcall option casemap : none; case - sensitive

What would I replace 2274h with?
.386
.model flat, stdcall
option casemap : none; case-sensitive
ExitProcess proto,dwExitCode:dword
include Irvine32.inc
.data
forwardSlash db '/'
.code
; Procedure to calculate FAT date
FATDate proc
push bx ; Preserve BX register
push cx ; Preserve CX register
xor bx, bx ; Clear BX register
mov bx, ax ; Copy date value to BX register
; Extract day (bits 0-4)
mov ax, bx
and ax,1Fh ; Mask bits 0-4
mov bl, al ; Store day in BL register
; Extract month (bits 5-8)
mov ax, bx
shr ax,5 ; Shift right to bring month bits to LSB
and ax,0Fh ; Mask bits 5-8
mov bh, al ; Store month in BH register
; Extract year (bits 9-15)
mov ax, bx
shr ax,9 ; Shift right to bring year bits to LSB
and ax,7Fh ; Mask bits 9-15
add ax,1980h ; Add 1980 to get actual year
mov dx, ax ; Store year in DX register
pop cx ; Restore preserved registers
pop bx
ret
FATDate endp
; Main program
main proc
; I want this to be Month: 1, Day: 2, Year, 1989
mov ax,2274h ; What would this number be?
; Call FATDate procedure
call FATDate
; Display day
movzx eax, bl ; Day to EAX (zero-extended to clear upper bits)
call WriteDec
call Crlf
; Display month
movzx eax, bh ; Month to EAX (zero-extended to clear upper bits)
call WriteDec
call Crlf
; Display year
movzx eax, dx ; Year to EAX (zero-extended to clear upper bits)
call WriteDec
call Crlf
invoke ExitProcess, 0
main endp
end main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!