Note: This article original author through authorized translation, reprint please indicate the source
Original Address: http://mrjester.hapisan.com/04_MC68/Sect01Part07/Index.html
Conditions permit recommended to read the original, non-Chinese online data or more, as the exercise would not Miya English
translation if deficiencies are welcome criticism
Translation:
"Active sex education classes in schools may be a good idea, but I think this course should not give children leave homework" ---- American "father of television comedy" Bill Cosby (Bill Cosby)
Brief introduction
The last section I give you leave a string of instructions to test learning outcomes, in this section, let's results after the execution of the instruction string of Kankan, you did the right thing under control did not
answer
move.w #$0123, d0
move.b d0, d1
move.w d1, d2
move.l #$FFFF0000, d3
move.w d0, d3
move.l d3, d0
move.w d2, d0
All the data register contents before all00000000
move.w #$0123, d0
字
0123
Was placed on the register d0
, the d0
inside is now content00000123
move.b d0, d1
The d0
one of the move to the, so now is字节
23
d1
d1
00000023
move.w d1, d2
The d1
one of the move to the, so now is字
0023
d2
d2
00000023
move.l #$FFFF0000, d3
The move to the middle, so now is长字
FFFF0000
d3
d3
FFFF0000
move.w d0, d3
The d0
one of the move to the, so now is字
0123
d3
d3
FFFF0123
move.l d3, d0
The d3
one of the move to the, so now is长字
FFFF0123
d0
d0
FFFF0123
move.w d2, d0
The d2
one of the move to the, so now is字
0023
d0
d0
FFFF0023
Well, after the implementation of these instructions, d0
the content FFFF0023
, you did the right thing? I certainly hope so, if not done right, then remember to this section and then stroked it again, oh
Contents
Previous: [translated] [Markey Jester (MarkeyJester) Motorola 68000 Start Tutorial] One - Basic Introduction | 6. Address and program flow
Next: [translated] [Markey Jester (MarkeyJester) Motorola 68000 Start tutorial] II - basic instructions | 1. aDD instruction (plus)