CSE 506 Lab 7

September 11, 2017
By shp

Practise #1 (Section 6.5) Write a code to take a string input and print the first and last capital letters in the string in alphabatical order //code TITLE First and last capitals .MODEL SMALL ; DIRECTIVE .STACK 100H .DATA ; CR EQU 0DH ; LF EQU 0AH ; ;A DW 2 ; DATA SEGMENT ;B

Continue Reading

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