Created
January 8, 2015 21:45
-
-
Save m0r13/7fc6ed70544da0c88999 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 00001000 Starting Address | |
| Assembler used: EASy68K Editor/Assembler v5.15.02 | |
| Created On: 1/8/2015 9:37:28 PM | |
| 00000000 1 *----------------------------------------------------------- | |
| 00000000 2 * Title : | |
| 00000000 3 * Written by : | |
| 00000000 4 * Date : | |
| 00000000 5 * Description: | |
| 00000000 6 *----------------------------------------------------------- | |
| 00001000 7 ORG $1000 | |
| 00001000 8 START: ; first instruction of program | |
| 00001000 9 | |
| 00001000 7200 10 move.l #$0,D1 | |
| 00001002 7401 11 move.l #$1,D2 | |
| 00001004 7600 12 move.l #$0,D3 | |
| 00001006 7802 13 move.l #$2,D4 | |
| 00001008 14 | |
| 00001008 0C80 00000000 15 cmpi.l #$0,D0 | |
| 0000100E 6700 0022 16 beq HALT | |
| 00001012 0C80 00000001 17 cmpi.l #$1,D0 | |
| 00001018 6700 0018 18 beq HALT | |
| 0000101C 19 | |
| 0000101C 20 LOOP_START: | |
| 0000101C B084 21 cmp.l D4,D0 | |
| 0000101E 6500 0010 22 bcs LOOP_END | |
| 00001022 23 | |
| 00001022 7600 24 move.l #$0,D3 | |
| 00001024 D681 25 add.l D1,D3 | |
| 00001026 D682 26 add.l D2,D3 | |
| 00001028 2202 27 move.l D2,D1 | |
| 0000102A 2403 28 move.l D3,D2 | |
| 0000102C 5284 29 add.l #$1,D4 | |
| 0000102E 30 | |
| 0000102E 60EC 31 bra LOOP_START | |
| 00001030 32 LOOP_END: | |
| 00001030 33 | |
| 00001030 2003 34 move.l D3,D0 | |
| 00001032 35 | |
| 00001032 36 HALT: | |
| 00001032 FFFF FFFF 37 SIMHALT | |
| 00001036 38 | |
| 00001036 39 * Put variables and constants here | |
| 00001036 40 | |
| 00001036 41 END START ; last line of source | |
| No errors detected | |
| No warnings generated | |
| SYMBOL TABLE INFORMATION | |
| Symbol-name Value | |
| ------------------------- | |
| HALT 1032 | |
| LOOP_END 1030 | |
| LOOP_START 101C | |
| START 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment