100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Otro

COS2621 ASSIGNMENT 2 Year 2023 GUIDELINES/SOLUTIONS

Puntuación
-
Vendido
9
Páginas
5
Subido en
01-08-2023
Escrito en
2023/2024

COS2621 ASSIGNMENT 2 Year 2023 GUIDELINES/SOLUTIONS School of Computing Solutions

Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
1 de agosto de 2023
Número de páginas
5
Escrito en
2023/2024
Tipo
Otro
Personaje
Desconocido

Temas

Vista previa del contenido

Question 1

(a)

- LOAD DIRECT 300: This instruction loads the value at memory address 300 into the accumulator, so
the value loaded into the accumulator is 320.

- LOAD DIRECT 320: This instruction loads the value at memory address 320 into the accumulator, so
the value loaded into the accumulator is 305.

- LOAD INDIRECT 325: This instruction loads the value at the memory address stored in memory
address 325 into the accumulator. The value at memory address 325 is 300, so the value loaded into
the accumulator is 300.



(b)

, - Immediate addressing: MOV AX, 5 (This instruction moves the immediate value 5 into register AX)

- Direct addressing: MOV AX, [500] (This instruction moves the value at memory address 500 into
register AX)

- Stack addressing: PUSH AX (This instruction pushes the value of register AX onto the stack)

- Indexed addressing: MOV AX, [BX+SI] (This instruction moves the value at the memory address
pointed to by the sum of registers BX and SI into register AX)

- Base-addressing: MOV AX, [BX+100] (This instruction moves the value at the memory address
pointed to by the sum of register BX and immediate value 100 into register AX)

- Register indirect addressing: MOV AX, [BX] (This instruction moves the value at the memory address
pointed to by register BX into register AX)



Question 2

student_no: 12345678

student_name: John Smith



```

; Clear the screen, change screen color to yellow on blue

; Set cursor position to row 10, column 0



MOV AH, 06 ; Function to clear the screen

MOV AL, 0 ; Clear entire screen

MOV BH, 07h ; Yellow on blue color

MOV CX, 0 ; Upper left corner of the screen

MOV DX, 184Fh ; Lower right corner of the screen

INT 10h ; Call the interrupt



MOV AH, 02h ; Function to set cursor position

MOV BH, 00h ; Page number 0

MOV DH, 09h ; Row 10 (row's start count from 0)

MOV DL, 00h ; Column 0 (column's start count from 0)

INT 10h ; Call the interrupt
$12.21
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
GoldenKey University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
135
Miembro desde
4 año
Número de seguidores
122
Documentos
31
Última venta
3 meses hace

3.4

11 reseñas

5
4
4
1
3
3
2
1
1
2

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes