Subversion Repositories svn.mios

Rev

Rev 52 | Rev 321 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
53 tk 1
; $Id: main.asm 53 2008-01-30 22:52:41Z tk $
1 tk 2
;
3
; Source Code of MIOS
4
;
5
; ==========================================================================
6
;
7
;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
8
;  Licensed for personal non-commercial use only.
9
;  All other rights reserved.
10
; 
11
; ==========================================================================
12
;
13
MIOS_VERSION_STR MACRO
14
; Version:                 <-------------->
15
    STRING  16, 0x00, "MIOS V1.9f      "
16
    ENDM
17
; (fixed string length - 16 characters!)
18
;
19
;; ==========================================================================
20
;;  definitions and macros
21
;; ==========================================================================
22
#include <mios.h>
23
#include "mios_defines.h"
24
#include <macros.h>
25
 
26
;; ==========================================================================
27
;;  MIOS routines, located from 0x0000-0x28fb (maximum!)
28
;; ==========================================================================
29
#include "mios_reset.inc"
30
#include "mios_isr.inc"
31
#include "mios_timer.inc"
32
#include "mios_delay.inc"
33
#include "mios_hlp.inc"
34
#include "mios_midi.inc"
35
#include "mios_mproc.inc"
36
#include "mios_srio.inc"   
37
#include "mios_din.inc"
38
#include "mios_dout.inc"
39
#include "mios_ain.inc"
40
#include "mios_mf.inc"
41
#include "mios_enc.inc"
42
#include "mios_lcd.inc"
43
#include "mios_clcd.inc"
44
#include "mios_glcd0.inc"
45
#include "mios_mlcd.inc"
46
#include "mios_eeprom.inc"
47
#include "mios_bankstick.inc"
48
#include "mios_iic.inc"
49
#include "mios_flash.inc"
50
#include "mios_system.inc"
51
#include "mios_display.inc"
52
#include "mios_mainloop.inc"
53
#include "mios_startup.inc"
54
 
55
;; ==========================================================================
56
;;  fill unused memory space with reset instructions
57
;; ==========================================================================
58
    fill    (reset), 0x2c00-$
59
 
60
;; ==========================================================================
61
;;  up to here the code/data is located to fixed addresses!
62
;; ==========================================================================
63
#include "mios__vectors.inc"        ; 0x2c00-0x2fff --- OS address range
64
#include "user_vectors.inc"     ; 0x3000-0x307f --- application address range
65
#include "mios_tables.inc"      ; 0x3080-0x32ff --- application address range
66
 
67
 
68
;; ==========================================================================
69
;;  this "dummy" code will display a READY message so long as no application
70
;;  has been uploaded
71
;; ==========================================================================
72
TEXT_MIOS_WELCOME_0 da 0x0600, "READY."
73
 
74
_USER_DISPLAY_Init
75
    call    MIOS_LCD_Clear
76
 
77
    ;; print ready message at first line
78
    TABLE_ADDR TEXT_MIOS_WELCOME_0
79
    goto    MIOS_LCD_PrintString
80
 
81
 
82
;; ==========================================================================
83
;;  Default GLCD Font (can be overwritten by application)
84
;; ==========================================================================
85
#include "mios_glcd_font.inc"       ; 0x7cfc-0x7fff
86
 
87
;; ==========================================================================
88
;;  end of code - the assembler will stop here
89
;; ==========================================================================
90
    END