পোস্টগুলি

Assembly LAB: Upper Case And Lower Case

 .MODEL SMALL .STACK 100H   .DATA MSG1 DB 'ENTER THE LOWER CASE LETTER:$' MSG2 DB 'ENTER THE UPPER CASE LETTER:$' .CODE MAIN PROC     MOV AX,@DATA     MOV DS,AX          LEA DX,MSG1     MOV AH,9     INT 21H          MOV AH,1     INT 21H          MOV BL,AL          MOV AH,2     MOV DL,0DH     INT 21H          MOV DL,0AH     INT 21H          LEA DX,MSG2     MOV AH,9     INT 21H          SUB BL,20H          MOV AH,2     MOV DL,BL     INT 21H          MOV AH,4CH     INT 21H     MAIN ENDP END MAIN          

Assembly LAB: Even Odd Number

 .MODEL SMALL  .STACK 100H    .DATA        MSG1 DB 'NUMBER IS EVEN ','$'       MSG2 DB 'NUMBER IS ODD ','$'       N1  DB 0DH,0AH,'$'              .CODE        .STARTUP               NEWLINE MACRO          LEA DX,N1           MOV AH,9          INT 21H                      ENDM                MOV AX,@DATA        MOV DS,AX              MOV AH,1       INT 21H             MOV BL,2      DIV BL            MOV AL,AH            CMP AL,0           ...

Assembly LAB: Print University Name 10 times

 .MODEL SMALL .STACK 100H .DATA   MSG DB 0DH, 0AH, 'ISTT $' .CODE MAIN PROC     MOV CX,10     MOV AX,@DATA     MOV DS,AX     LEA DX,MSG     MOV AH,9     INT 21H  WHILE:         DEC CX         JE END_WHILE         MOV AH,9         INT 21H         JMP WHILE     END_WHILE:     MOV AH,4CH     MAIN ENDP END MAIN

Assembly LAB: The 256 ASCII Character

 .MODEL SMALL  .STACK 100H   .DATA     PROMPT  DB  'The 256 ASCII Characters are : $'   .CODE    MAIN PROC      MOV AX, @DATA                ; initialize DS      MOV DS, AX       LEA DX, PROMPT               ; load and print PROMPT      MOV AH, 9      INT 21H            MOV CX, 256                  ; initialize CX      MOV AH, 2                    ; set output function      MOV DL, 0                    ; initialize DL with 0              @LOOP:                       ; loop label   ...

Microprocessor & Assembly Language QUES-1

  What is microprocessor? Write down difference between microprocessor and CPU What is a Microprocessor? A microprocessor is an integrated circuit (IC) that contains the functions of a central processing unit (CPU) of a computer. It is the brain of a computer where most calculations take place. It processes instructions from a computer program by performing basic arithmetic, logic, control, and input/output (I/O) operations. Difference Between Microprocessor and CPU While the terms "microprocessor" and "CPU" are often used interchangeably, they are not exactly the same. Here’s a breakdown of their differences: Feature Microprocessor CPU Definition An integrated circuit that contains the core functions of a CPU. The main unit of the computer that interprets and executes instructions. Integration Typically used in simpler devices with fewer components. ...