[Translation] [Markey Jester (MarkeyJester) Motorola 68000 Start Tutorial] One - Basic Introduction | 7. homework answers --1

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

0123Was placed on the register d0, the d0inside is now content00000123

    move.b     d0, d1

The d0one of the move to the, so now is字节23d1d100000023

    move.w     d1, d2

The d1one of the move to the, so now is0023d2d200000023

    move.l     #$FFFF0000, d3

The move to the middle, so now is长字FFFF0000d3d3FFFF0000

    move.w     d0, d3

The d0one of the move to the, so now is0123d3d3FFFF0123

    move.l     d3, d0

The d3one of the move to the, so now is长字FFFF0123d0d0FFFF0123

    move.w     d2, d0

The d2one of the move to the, so now is0023d0d0FFFF0023

Well, after the implementation of these instructions, d0the 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)

Guess you like

Origin www.cnblogs.com/strawhatboy/p/12298360.html