Question
Why this code is not running ..? Please use irvine32 and send me the error-free code INCLUDE Irvine32.inc .data TOTAL WORD ? .code main PROC
Why this code is not running ..? Please use irvine32 and send me the error-free code
INCLUDE Irvine32.inc .data TOTAL WORD ? .code main PROC MOV AX,4 CMP AX,4 ; compare AX with 4 JE L1 ; if AX = 4 then jump to L1
MOV BX,0AAAAH ; do this if AX 4 JMP HERE ; use this to guide the program sequence
L1: MOV BX, 0BBBBH ; do this if AX = 4
HERE: MOV AX,TOTAL ; say TOTAL can be 2 or 4 SUB AX,2 JZ L2 ; if ZF = 1,jump to L2
MOV BX,0AAAAH ; this is done if TOTAL = 4 JMP HERE
L2: ; this is done if TOTAL = 2 MOV BX, 0BBBBH HERE: call DumpRegs
exit main ENDP END main
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started