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
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