Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

micro-P

Status
Not open for further replies.
hello..
u are trying to say that i lazy..
i didnt ask you to solve the prob.
but i juz wanna some idea..
i already surf the internet but cant find any example that related with this..
 
Yes, you are being lazy, when you are asking someone to do the problem for you, yet you have not shown any attempt, or progress your self. It would help to actually sum the problem up, be specific as to the question you have, and show at what point in the problem your progress has been halted.

1. Do you understand, or have any experience with assembly language at all?

2. What progress have you made on the problem so far?

3. What are your specific questions?
 
sorry for the late reply..
bz for the other's subject project..

anyway m still new with assembly language..
im just taking microP n microC subject for this semester..
but ive some basic in c++..

i have tried to do the code..
but there is still some error

START ORG $1000

MOVE.B $3000,D0

TOP DC.B 'ALAN'
DC.B 4
DC.B '55512120','0'
DC.B 'CHARLIE'
DC.B 1
DC.B '55526630','0'
DC.B 'MICHELE'
DC.B 1
DC.B '55589770','0'
DC.B 'JAMES'
DC.B 3
DC.B '55501431','0'

END START

the memory output has 80 before the word ALAN.
 
i have tried another code..

START ORG $1000

TOP EQU $3000
FINAL EQU $4000

ORG $3000

MOVE.L #TOP,A0
MOVE.L #FINAL,A1
LOOP MOVE.L (A0)+,D3
MOVE.L D3,(A1)+
CMP.B $4E,D3
BEQ FINISH
BNE LOOP
FINISH BRA *

ORG TOP
DC.B 'ALAN'
DS.B 4
DC.B '5551212','0'
ORG TOP+16
DC.B 'CHARLIE'
DS.B 1
DC.B '5552663','0'
ORG TOP+32
DC.B 'MICHELE'
DS.B 1
DC.B '5558977','0'
ORG TOP+48
DC.B 'JAMES'
DS.B 3
DC.B '5550143','1'

END $5000

but how to move alan to $4000?
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top