CS代考 DWORD 30 DUP(?)

Computer System and Assembly Language
Kwang Nam Choi
Teaching Assistant
Myungkeun Song, , Sanghun Han

Copyright By PowCoder代写 加微信 powcoder

< Practice 03 >
Q1. Q1 is the example program about Jump instruction. Check which jump instruction is working with Debug Mode, then write destination in the blank.(ex. jump to L1)
INCLUDE Irvine32.inc
BYTE “L1”, 0
BYTE “L2”, 0
BYTE “L3”, 0
BYTE “L4”, 0
BYTE “L5”, 0
BYTE “L6”, 0
;main Procedure
mov eax, 0A523h
cmp eax, 0A523h
; Jump to _______
L1 : mov edx, OFFSET StringL1
call WriteString
L2 : mov edx, OFFSET StringL2
call WriteString
mov cx, 0FFFFh
; Jump to _______
L3 : mov edx, OFFSET StringL3
call WriteString
L4 : mov edx, OFFSET StringL4
call WriteString
mov al, +127
cmp al, -127
; Jump to _______
L5 : mov edx, OFFSET StringL5
call WriteString
L6 : mov edx, OFFSET StringL6
call WriteString
;eax= h ;eax= h
;cx= h ;cx= h
;al= h ;al= h

Q2. Fill in the blanks with following assembly code comment(Fill the last register value of the loop). And follow the presentation material presented by T.A. (Fill your name in InputYourName, PrintYourName / ex, InputMinsu, PrintMinsu)
INCLUDE Irvine32.inc
string DWORD 30 DUP(?)
InputYourName PROC C
mov ecx, LENGTHOF string
mov esi, OFFSET string
call ReadChar
mov [esi], eax
add esi, 4
cmp al, 30h
InputYourName ENDP
PrintYourName PROC C
mov ecx, LENGTHOF string
mov esi, OFFSET string
mov eax, [esi]
cmp al, 30h
call WriteChar
add esi, 4
PrintYourName ENDP
; ECX: ????????
; ESI: ????????
; EAX: ????????
, EIP: ????????
, EIP: ????????
, ECX: ???????? , EIP: ????????
; ESI: ????????
; EIP: ????????
; Jump Condition
; ECX: ???????? ,
; ESI: ???????? ,
; EAX: ???????? ,
; EAX: ???????? ,
; ESI: ????????, EIP: ????????
; ECX: ????????, EIP: ????????
, EIP: ????????
EIP: ????????
EIP: ????????
EIP: ????????
EIP: ????????
◎ Submit Information
(1) Due Date : April 30(Sat.), 2022, 23:59PM
▶ Format : “StudentID_Name_P#.zip”) *Only compressed file foramt : zip
예) 20220001_Name_P03.ZIP
▶ Submit Files : Source codes
(StudentID_P03-1.asm, StudentID_P03-2.asm)
Report File (include captures of source & result image files, *.hwp, *.doc or *.docx)

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com