Program problems 8 of 18

No Thumbnail Available

Date

1996

Journal Title

Journal ISSN

Volume Title

Publisher

Abstract

This video gives instructions on how to solve the program problems given there in; Program problem 1: Write a program to add together 10 words of DATA. This data is stored in sequential memory in ascending address locations. AO points to the first word in the string. The long word result should be placed in D1. The presenter points out conditions which must be observed before attempting a solution which are; 1.The data is word sized, or 16 bits 2.Data is stored sequentially in memory 3.The magnitude of the sum could be greater than 16 bits: thus, a long word register is required to hold the results Program problem 2: Write a program to clear memory from AO (passes in) to A1 (passed in) and A1 greater than or equal to AO. The presenter points out following conditions to be observed; 1.the address registers are currently initialized 2.the address register zero points to the first operand to be cleared and address register one points to the last operand to be cleared 3.the address in address register one is greater than or equal to the address in address register zero

Description

Keywords

Citation