In this note I have explained how to assemble and how to disassemble 6809 Motorola. In other words, how to convert machine code to binary code and how to covert binary/hexadecimal number to machine code. With using all the required tables
objective first step find theaddressing
made
we are
trying to convertAssembly process to the machinecode
O
AD CA spitegadecimal
ex Immediate
the code of instruction LI
since we don'thave
Y I
V b we
don't go to and since
ftp.CZ.cz wedon'thavebranch wedon't go
For indexedregister
to C4
Because theaddressing is immediate weputthevalueright after
the op ale 89 2 t
and wehavethe effective
address
Sta 0008 8
ex
the addresing made is extended effectiveaddress
e the opcode is B 7
since there is no X V S we
Y nobranch we ignoreCG
don't go to G Cz Cz Since there is
B does
, ex LAB Xt o Itis indexed addressing made
Findin CB 80
r a
EG 80 CinHexadecimal Is tooo oooo
made
eyst lSFF.X It is indexed addressing
I since Bis 8 bitregister weonlyneedFt
p f if it was D or X Y or any tr bit register
E 8s me'dneed FEEF
If we alsoneed to mention the offset
TOtag is not effective because it is indirect
MCooted is effective
register put a bit
If You are dealing with
fit
mediate
bit register put a bits
Firstgoto es
exonygooHexadecimal weforgetabout 4 cuz
thereis no Branch instruction
Sc 0040
meshow in 4bits because wehaeX which is a tobit
register
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller mahyarmahdavi. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $2.99. You're not tied to anything after your purchase.