CSE 322 Fall 2018 Lab 12

January 6, 2019

Simulation lab 2. Lab report has to be submitted. The list below shows the list of tasks and information to be submitted in the lab report. Task#1 Simulation of a 3-bit Flash ADC with a reference voltage of X Volt, where x is the last 2 digit of your registration number. Simulation of the circuit

Continue Reading

CSE 322 Fall 2018 Lab 11

January 6, 2019

Simulation lab starts. Lab report has to be submitted. The list below shows the list of tasks and information to be submitted in the lab report. Task#1 Installation of Proteus 8.0 Installation process of proteus 8.0 Task#2 Simulation of a 4-bit weighted resistor network DAC with a reference voltage of X Volt, where x is

Continue Reading

CSE 322 Fall 2018 Lab 10

December 3, 2018

Problem #1 (Chapter 10 Problem 9) Write a program that uses XLAT to (a) read a line of text, and (b) print It on the next line with all small letters converted to capitals. The Input line may contaln any characters-small letters, capital, letters, digit characters, punctuation, and so on. //Solution To be done by

Continue Reading

CSE 322 Fall 2018 Lab 9

December 1, 2018

Problem #1 (Example 10.3) String read and write //Solution .MODEL small .STACK 100h .DATA w dw 10,15,30,40,50,60,70,80,90,’$’ crlf db 0dh, 0ah, ‘$’ .CODE MAIN PROC mov ax, @data mov ds, ax mov ax, 0 lea si, w start: mov bx, [si] cmp bx, ‘$’ je end_ add ax, bx add si, 2 jmp start end_:

Continue Reading

CSE 322 Fall 2018 Lab 7

November 14, 2018

Problem #1 (Program listing 9.2, 9.3, 9.4) Decimal input output procedure //Solution .MODEL small .STACK 256 .DATA .CODE MAIN PROC mov ax,@data mov ds,ax call indec push ax mov ah, 2 mov dl, 0dh int 21h mov dl, 0ah int 21h pop ax call outdec Exit: mov ah,4Ch int 21h MAIN ENDP outdec proc push

Continue Reading

CSE 322 Fall 2018 Lab 5

October 20, 2018

Problem #1 (Chapter 7 examples) Introduction to logical instructions //Solution mov ax, 01010101b mov bx, 10101010b ;And Instruction: Logical AND and the result is stored in the first register mov cx, ax and cx, bx ;OR Instruction: Logical OR and the result is stored in the first register mov cx, ax or cx, bx ;XOR

Continue Reading

CSE 322 Fall 2018 Lab 4

October 9, 2018

Problem #1 (Example 6.6) [AND condition] Read a character, and if it’s an uppercase letter, display it. //Solution mov ah, 1 int 21h cmp al, ‘A’ jl not_print cmp al, ‘Z’ jg not_print print: mov ah, 2 mov dl, al int 21h not_print: //Alternative COde mov ah, 1 int 21h cmp al, ‘A’ jge next

Continue Reading