Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

export synbols 2 3 XDEF Entry, -Startup ABSENTRY Entry : export Entrysymbol 6: Include derivative-specific definitions 7 INCLUDE derivative.inc variable/data section 10 ORG 82000 12

image text in transcribed

export synbols 2 3 XDEF Entry, -Startup ABSENTRY Entry : export Entrysymbol 6: Include derivative-specific definitions 7 INCLUDE derivative.inc variable/data section 10 ORG 82000 12 13 datai: ds.b $10 14 data2 ds b $10 15 | array 1: dc , b SIA, $20 845, $23, $33, AO, SCF, 16 17 18code section 19 20 21 Entry: 22Startup: 23 24 : Allocate $2000 to $200F : Allocate $2010 to $201F 10 ORG3000 LDS # $3C00 Wrlte the following code 1. Inltialize memory locations $2000 to $2007 as shown. All numbers In hexidecimal 2010 2020 1A 20 45 23 33 AO CF 10 2. For the memory locations from $2000 to $2007. determine the total number of even numbers. Assume each number Is unsigned and a byte. 3. Convert code from prevlous Item Into a subroutine called even. Input X-Address of Array, B = Number of Elements. Output: A = Number of Even Numbers 4. Call subroutine even with X = $2020 and B 8 and venty that result ls 4 even numbers. export synbols 2 3 XDEF Entry, -Startup ABSENTRY Entry : export Entrysymbol 6: Include derivative-specific definitions 7 INCLUDE derivative.inc variable/data section 10 ORG 82000 12 13 datai: ds.b $10 14 data2 ds b $10 15 | array 1: dc , b SIA, $20 845, $23, $33, AO, SCF, 16 17 18code section 19 20 21 Entry: 22Startup: 23 24 : Allocate $2000 to $200F : Allocate $2010 to $201F 10 ORG3000 LDS # $3C00 Wrlte the following code 1. Inltialize memory locations $2000 to $2007 as shown. All numbers In hexidecimal 2010 2020 1A 20 45 23 33 AO CF 10 2. For the memory locations from $2000 to $2007. determine the total number of even numbers. Assume each number Is unsigned and a byte. 3. Convert code from prevlous Item Into a subroutine called even. Input X-Address of Array, B = Number of Elements. Output: A = Number of Even Numbers 4. Call subroutine even with X = $2020 and B 8 and venty that result ls 4 even numbers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions