100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS2621 ASSIGNMENT 2 Year 2023 GUIDELINES/SOLUTIONS R200,00
Add to cart

Other

COS2621 ASSIGNMENT 2 Year 2023 GUIDELINES/SOLUTIONS

 120 views  9 purchases

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

Preview 2 out of 5  pages

  • August 1, 2023
  • 5
  • 2023/2024
  • Other
  • Unknown
All documents for this subject (34)
avatar-seller
GoldenKey
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller GoldenKey. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R200,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R200,00  9x  sold
  • (0)
Add to cart
Added