diff options
author | Robert Millan <rmh@aybabtu.com> | 2009-01-06 17:42:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:29 -0500 |
commit | 842ffabbf35cc608961429a0f3c96d8dde6b22ad (patch) | |
tree | 8ffe6d1b118ffa5ea99ec4cbdcca153605a0ee01 /firmware/dsp56k | |
parent | 4c2c3b4aaf3c10a636490438e9648a314ce414f9 (diff) |
make firmware/dsp56k/bootstrap.asm buildable on a56
Make firmware/dsp56k/bootstrap.asm buildable on a56, the free Motorola
DSP56001 assembler (http://www.zdomain.com/a56.html).
Summary of changes:
- Remove '<' and '>' candy (they specify explicit addressing modes,
which a56 don't grok, but uses implicitly anyway).
- Replace 'move' with 'movem' when accessing program memory.
- Rename a few labels to avoid duplicates (which a56 can't handle).
Signed-off-by: Robert Millan <rmh@aybabtu.com>
Cc: Jaswinder Singh <jaswinder@infradead.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware/dsp56k')
-rw-r--r-- | firmware/dsp56k/bootstrap.asm | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/firmware/dsp56k/bootstrap.asm b/firmware/dsp56k/bootstrap.asm index 10d891929cd3..a411047e6db3 100644 --- a/firmware/dsp56k/bootstrap.asm +++ b/firmware/dsp56k/bootstrap.asm | |||
@@ -51,19 +51,19 @@ start jmp <$40 | |||
51 | ; Copy DSP program control | 51 | ; Copy DSP program control |
52 | move #real,r0 | 52 | move #real,r0 |
53 | move #upload,r1 | 53 | move #upload,r1 |
54 | do #upload_end-upload,<_copy | 54 | do #upload_end-upload,_copy |
55 | move P:(r0)+,x0 | 55 | movem P:(r0)+,x0 |
56 | move x0,P:(r1)+ | 56 | movem x0,P:(r1)+ |
57 | _copy movep #>4,X:<<M_HCR | 57 | _copy movep #4,X:<<M_HCR |
58 | movep #>$c00,X:<<M_IPR | 58 | movep #$c00,X:<<M_IPR |
59 | and #<$fe,mr | 59 | and #<$fe,mr |
60 | jmp upload | 60 | jmp upload |
61 | 61 | ||
62 | real | 62 | real |
63 | org P:$7ea9 | 63 | org P:$7ea9 |
64 | upload | 64 | upload |
65 | movep #>1,X:<<M_PBC | 65 | movep #1,X:<<M_PBC |
66 | movep #>0,X:<<M_BCR | 66 | movep #0,X:<<M_BCR |
67 | 67 | ||
68 | next jclr #0,X:<<M_HSR,* | 68 | next jclr #0,X:<<M_HSR,* |
69 | movep X:<<M_HRX,A | 69 | movep X:<<M_HRX,A |
@@ -81,18 +81,18 @@ _get_length | |||
81 | cmp x0,A | 81 | cmp x0,A |
82 | jeq load_Y | 82 | jeq load_Y |
83 | 83 | ||
84 | load_P do y0,_load | 84 | load_P do y0,_load_P |
85 | jclr #0,X:<<M_HSR,* | 85 | jclr #0,X:<<M_HSR,* |
86 | movep X:<<M_HRX,P:(r0)+ | 86 | movep X:<<M_HRX,P:(r0)+ |
87 | _load jmp next | 87 | _load_P jmp next |
88 | load_X do y0,_load | 88 | load_X do y0,_load_X |
89 | jclr #0,X:<<M_HSR,* | 89 | jclr #0,X:<<M_HSR,* |
90 | movep X:<<M_HRX,X:(r0)+ | 90 | movep X:<<M_HRX,X:(r0)+ |
91 | _load jmp next | 91 | _load_X jmp next |
92 | load_Y do y0,_load | 92 | load_Y do y0,_load_Y |
93 | jclr #0,X:<<M_HSR,* | 93 | jclr #0,X:<<M_HSR,* |
94 | movep X:<<M_HRX,Y:(r0)+ | 94 | movep X:<<M_HRX,Y:(r0)+ |
95 | _load jmp next | 95 | _load_Y jmp next |
96 | 96 | ||
97 | upload_end | 97 | upload_end |
98 | end | 98 | end |