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

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 Databases Questions!