AsmIDE-program

| January 13, 2016

I WOULD HAVE A TIMES ASSIGNMENT FOR MICROPROCESSOR CLASS AND ITS BASICALLY AsmIDE program.

I AM ATTACHING A SAMPLE FO IT

PLEASE SEE IF YOU CAN HELP AT THAT TIME

REPLY SOON

Attachments:I actually need help on microprocessor class, and it’s basically AsmIDE program for coding. So I just need your help on making one subroutine or two. It’s going to be on Monday from 10 AM until 12 PM so only two hours to do it.

SAMPLE

Write a program to search the elements of an array ‘dist’ to pick all the elements that are divisible by 5. Print out those elements 5 per line with space between each two numbers into the terminal. The elements of the array are 2-byte long.

Use the partially written program and complete it.

Do not use subroutine. Write the program as one piece.

Assemble, download, and run the program.

Create a Word file to include your source code and the output of the program from the terminal. sample of that is below:
so here is the given and you need to complete the require

The source code I created:

****************************************************************************

* The program looks at each element of a vector ‘dist’ and prints *

* out the elements that are divisible by 5 in a five elements per *

* line. The elements of the vector ‘dist’ are two-byte long. The *

* last element in the vector is NULL element to signify the *

* termination of the vector. *

****************************************************************************

ORG $1000

LDY #dist ; start from first element

check LDD 0,Y

LDX #5

IDIV

CMPB #0

BEQ print

INY

INY

DEC N

BEQ end

BRA check

print LDD 0,Y

PSHY

PSHD

LDD #outmsg

LDX printf

JSR 0,X

PULD

PULY

INY

INY

DEC count

BNE loopbk

LDD #$0D

LDX putchar

JSR 0,X

MOVB #5,count

BRA loopbk

loopbk DEC N

BNE check

end SWI

dist DW 1024,3850,1000,4836,64000,25000,23233,56400,3672

DW 33266,57025,42888,36900,45450,22300,3434,8888,37422

DW 808,14444,19200,12345,65400,23980,55500,48265,33333,0

count DB 5

N DB 27

outmsg FCC ‘%u ‘

DB 0

printf EQU $EE88

putchar EQU $EE86

END

The sample output is shown below:

D-Bug12 4.0.0b32

Copyright 1996 – 2005 Freescale Semiconductor

For Commands type “Help”

>BF 1000 2000 0

>LOAD

**

>

>G 1000

3850 1000 64000 25000 56400

57025 36900 45450 22300 19200

12345 65400 23980 55500 48265

User Bkpt Encountered

PP PC SP X Y D = A:B CCR = SXHI NZVC

38 1045 3C00 1A0A 107B 00:03 1001 0100

xx:1045 04000F DBEQ A,$1057

that is just the sample just one subroutine short one you need to include

Get a 5 % discount on an order above $ 150
Use the following coupon code :
2018DISC
Advanced Digital Design Homework
Week 2 Lab

Category: Homework Help

Our Services:
Order a customized paper today!