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 h with?
model flat, stdcall
option casemap : none; casesensitive
ExitProcess proto,dwExitCode:dword
include Irvineinc
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
mov ax bx
and axFh ; Mask bits
mov bl al ; Store day in BL register
; Extract month bits
mov ax bx
shr ax ; Shift right to bring month bits to LSB
and axFh ; Mask bits
mov bh al ; Store month in BH register
; Extract year bits
mov ax bx
shr ax ; Shift right to bring year bits to LSB
and axFh ; Mask bits
add axh ; Add 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: Day: Year,
mov axh ; What would this number be
; Call FATDate procedure
call FATDate
; Display day
movzx eax, bl ; Day to EAX zeroextended to clear upper bits
call WriteDec
call Crlf
; Display month
movzx eax, bh ; Month to EAX zeroextended to clear upper bits
call WriteDec
call Crlf
; Display year
movzx eax, dx ; Year to EAX zeroextended to clear upper bits
call WriteDec
call Crlf
invoke ExitProcess,
main endp
end main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
