-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedstart.s
57 lines (49 loc) · 1.69 KB
/
edstart.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* ***** BEGIN LICENSE BLOCK *****
*
* The contents of this file are subject to the GNU General Public License
* Version 2 (the "License"); you may not use this file except in compliance
* with the GPL. You may obtain a copy of the License at
* http://www.gnu.org/copyleft/gpl.html or the file GPL.TXT from the program
* or source code package.
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the GPL.
*
* The Original Code is Therapy Seriouz Software code.
*
* The Initial Developer of the Original Code are
* Olaf Piesche, Christian Eyrich, Dale Russell and J”rg Dittmer
*
* Contributor(s):
*
*
* ***** END LICENSE BLOCK *****
*/
; SMURF C-Modul Startupcode
; Version 1.01
; MiNT memory-protection & 040/060 cacheflush-sicher
;
; als Startupcode im Projektfile statt "PCSTART.O" eintragen
;
; Fr Edit-Module
;
;
; main-function im Modul: edit_module_main
; Struktur MOD_INFO module_info muž im Modul sein
; aužerdem MODULE_ABILITY mod_ability
.TEXT
clr.w -(sp)
trap #1
.IMPORT edit_module_main ; Hauptfunktion des Moduls holen
bra edit_module_main ; mainfunction anspringen
dc.l 'SEMD' ; Magic (TEXT + 8 Bytes)
.IMPORT module_info ; Modulinformationsstruktur
dc.l module_info ; Zeiger auf Modulinfo-Struktur (TEXT + 12 Bytes)
.IMPORT module_ability ; Modulf„higkeiten-Struktur
dc.l module_ability ; Zeiger auf Modability-Struktur (TEXT + 16 Bytes)
dc.l $0101 ; Versionsnummer
.DATA
.EXPORT errno
errno: ds.w 1