Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ASSEMBLY LANGUAGE FOR X86 (MASM) Use Butcher\'s algorithm to calculate Easter fo

ID: 3888899 • Letter: A

Question

ASSEMBLY LANGUAGE FOR X86 (MASM)

Use Butcher's algorithm to calculate Easter for the next ten years in x86 assembly language. Use the code below to start

TITLE MASM Template                        (main.asm)

; Description:
;
; Revision date:

INCLUDE Irvine32.inc
COMMA=2ch
.data
march BYTE "March ",0
april BYTE "April ",0
y DWORD 2017
a dWORD ?
b DWORD ?
cc DWORD ?

.code
main PROC
    call Clrscr
    mov ecx, 10
NEXT:
     mov eax, y
    call WriteDec
    call crlf
    inc eax
    mov y, eax
    dec ecx
    jnz NEXT

mov edx,offset march
call WriteString

mov al, COMMA
call WriteChar
call CRLF

    exit
main ENDP

END main

Explanation / Answer

INCLUDE Irvine32.inc
COMMA=2ch
.data
march BYTE "March ",0
april BYTE "April ",0
y DWORD 2017
a dWORD ?
b DWORD ?
cc DWORD ?

.code
main PROC
    call Clrscr
    mov ecx, 10
NEXT:
     mov eax, y
    call WriteDec
    call crlf
    inc eax
    mov y, eax
    dec ecx
    jnz NEXT

mov edx,offset march
call WriteString

mov al, COMMA
call WriteChar
call CRLF

    exit
main ENDP

END main

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote