CSE 506 Lab 6

August 23, 2017
By shp

Practise #1 (Example 6.4) If AX contains a negative number, put -1 In BX; if AX contains 0, put O In BX; if AX contains a positive number, put 1 In BX.· mov ax,0FFFBh CMP AX,0 JL NEGATIVE JE ZERO JG POSITIVE NEGATIVE: MOV BX,-1 JMP END_CASE ZERO: MOV BX,0 JMP END_CASEPOSITIVE: MOV BX,1 JMP

Continue Reading

CSE 506 Lab 5

August 6, 2017
By shp

Practise #1 (Eg 6.1) Write a code to find the greater signed number of the numbers stored in AX and BX ABC: mov ah, 1 int 21h mov bl, al int 21h mov bh, al cmp bl, bh jG point1 jl point2 point1: mov ah, 2 mov dl, ‘>’ int 21h jmp ABC point2: mov

Continue Reading