gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00001 ;
               00002 ; This is the MIOS wrapper for SDCC
               00003 ;
               00004 ; the upper boundary of the stacks are defined here 
               00005 ; customize the values for your needs
               00006 #ifndef STACK_HEAD
               00007 #define STACK_HEAD 0x37f
               00008 #endif
               00009 
               00010 #ifndef STACK_IRQ_HEAD
               00011 #define STACK_IRQ_HEAD 0x33f
               00012 #endif
               00013 ;
               00014 ; ==========================================================================
               00015 ;
               00016 ;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
               00017 ;  Licensed for personal non-commercial use only.
               00018 ;  All other rights reserved.
               00019 ; 
               00020 ; ==========================================================================
               00021 
               00022 ;; ---[ MIOS header file ]---
               00023 #include "mios.h"
               00001 ;
               00002 ; MIOS Definitions file
               00003 ;
               00004 ; ==========================================================================
               00005 ;
               00006 ;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
               00007 ;  Licensed for personal non-commercial use only.
               00008 ;  All other rights reserved.
               00009 ; 
               00010 ; ==========================================================================
               00011 
               00012  
               00013 ;; ==========================================================================
               00014 ;;  Select the device here
               00015 ;;     0: PIC18F452   (writable range: 0x0400-0x7fff)
               00016 ;;     1: PIC18F4620  (writable range: 0x0400-0xffff)
               00017 ;;     2: PIC18F4520  (writable range: 0x0400-0x7fff)
               00018 ;; ==========================================================================
               00019 
               00020 #define PIC_DERIVATIVE_TYPE     0
               00021 
               00022 ;; ==========================================================================
               00023 ;;  Assembler directives & device specific include file
               00024 ;; ==========================================================================
               00025 
               00026 #if PIC_DERIVATIVE_TYPE == 0
               00027         LIST P=PIC18F452, R=DEC
               00028 #include <p18f452.inc>
               00001         LIST
               00002 ; P18F452.INC  Standard Header File, Version 1.4   Microchip Technology, Inc.
               00845         LIST
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  2


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00029 #endif
               00030 
               00031 #if PIC_DERIVATIVE_TYPE == 1
               00032         LIST P=PIC18F4620, R=DEC
               00033 #include <p18f4620.inc>
               00034 #endif
               00035         
               00036 #if PIC_DERIVATIVE_TYPE == 2
               00037         LIST P=PIC18F4520, R=DEC
               00038 #include <p18f4520.inc>
               00039 #endif
               00040 
               00041 ;; ==========================================================================
               00042 ;;  General constants
               00043 ;; ==========================================================================
               00044 
               00045 ;; used by MIOS_MIDI_Interface*
  00000000     00046 MIOS_MIDI_INTERFACE_COMMON      EQU     0x00
  00000001     00047 MIOS_MIDI_INTERFACE_TO_HOST     EQU     0x01
               00048 
               00049 ;; used by MIOS_MIDI_Merger*
  00000000     00050 MIOS_MIDI_MERGER_DISABLED       EQU     0x00
  00000001     00051 MIOS_MIDI_MERGER_ENABLED        EQU     0x01
  00000002     00052 MIOS_MIDI_MERGER_MBLINK_EP      EQU     0x02
  00000003     00053 MIOS_MIDI_MERGER_MBLINK_FP      EQU     0x03
               00054 
               00055 ;; used by MIOS_ENC_PIN_TABLE
  00000000     00056 MIOS_ENC_MODE_NON_DETENTED      EQU     0x00
  00000080     00057 MIOS_ENC_MODE_DETENTED          EQU     0x80
  00000081     00058 MIOS_ENC_MODE_DETENTED2         EQU     0x81
               00059 
               00060 ;; used by MIOS_ENC_Speed*
  00000000     00061 MIOS_ENC_SPEED_SLOW             EQU     0
  00000001     00062 MIOS_ENC_SPEED_NORMAL           EQU     1
  00000002     00063 MIOS_ENC_SPEED_FAST             EQU     2
               00064 
               00065 ;; used by MIOS_LCD_Type*
  00000000     00066 MIOS_LCD_TYPE_CLCD              EQU     0x00
  00000001     00067 MIOS_LCD_TYPE_GLCD0             EQU     0x01
  00000002     00068 MIOS_LCD_TYPE_GLCD1             EQU     0x02
  00000003     00069 MIOS_LCD_TYPE_GLCD2             EQU     0x03
  00000004     00070 MIOS_LCD_TYPE_GLCD3             EQU     0x04
  00000005     00071 MIOS_LCD_TYPE_GLCD4             EQU     0x05
  00000006     00072 MIOS_LCD_TYPE_MLCD              EQU     0x06
  00000007     00073 MIOS_LCD_TYPE_GLCD_CUSTOM       EQU     0x07
               00074 
               00075 ;; location of default 5x8 font for graphical displays
  00007CFC     00076 MIOS_GLCD_FONT                  EQU     0x7cfc
               00077 
               00078 ;; general config flags (never overwrite this flags directly!!!)
  00000000     00079 MIOS_BOX_CFG0_LCD_TYPE0         EQU 0   ; selects LCD type, bit 0
  00000001     00080 MIOS_BOX_CFG0_LCD_TYPE1         EQU 1   ; selects LCD type, bit 1
  00000002     00081 MIOS_BOX_CFG0_LCD_TYPE2         EQU 2   ; selects LCD type, bit 2
  00000003     00082 MIOS_BOX_CFG0_USE_GLCD          EQU 3   ; if 1, graphical LCD is connected
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  3


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
  00000004     00083 MIOS_BOX_CFG0_MERGER            EQU 4   ; if 1, MIDI merger is enabled
  00000005     00084 MIOS_BOX_CFG0_MBLINK            EQU 5   ; if 1, MIDIbox Link is enabled
  00000006     00085 MIOS_BOX_CFG0_TO_HOST           EQU 6   ; if 1, MIDI interface will run with 38400 baud instead of 31250
  00000007     00086 MIOS_BOX_CFG0_20MHz             EQU 7   ; if 1, it is assumed that box is running with 20 MHz, else with 40 MHz
               00087 
  00000000     00088 MIOS_BOX_CFG1_BS_A0             EQU 0   ; A0 of BankStick (never change the bit position)
  00000001     00089 MIOS_BOX_CFG1_BS_A1             EQU 1   ; A1 of BankStick (never change the bit position)
  00000002     00090 MIOS_BOX_CFG1_BS_A2             EQU 2   ; A2 of BankStick (never change the bit position)
  00000003     00091 MIOS_BOX_CFG1_BS_DIS_VERIFY     EQU 3   ; if 1, writes to the BankStick will not be verified
  00000004     00092 MIOS_BOX_CFG1_IIC_STRETCH_CLK   EQU 4   ; if 1, IIC clock stretching enabled
               00093 
               00094 ;; general status flags (never overwrite this flags directly!!!)
  00000000     00095 MIOS_BOX_STAT_BS_AVAILABLE      EQU 0   ; if 1, BankStick is available
  00000001     00096 MIOS_BOX_STAT_MBLINK_TUNNEL_PASS EQU 1  ; if 1, a MBLinked event will be tunnled
  00000002     00097 MIOS_BOX_STAT_SUSPEND_ALL       EQU 2   ; if 1, all system and user tasks are suspended
  00000003     00098 MIOS_BOX_STAT_SUSPEND_USER      EQU 3   ; if 1, all user tasks are suspended
  00000004     00099 MIOS_BOX_STAT_AUTOREPEAT        EQU 4   ; if 1, start the auto-repeat handler
  00000005     00100 MIOS_BOX_STAT_MLCD_TRANSFER     EQU 5   ; if 1, a transfer to the MLCD has been started
  00000006     00101 MIOS_BOX_STAT_FERR              EQU 6   ; if 1, a frame error happened during MIDI receive
               00102 
               00103 ;; ==========================================================================
               00104 ;;  MIOS Special Function Registers
               00105 ;; ==========================================================================
               00106 
  00000000     00107 MIOS_BOX_CFG0   EQU     0x000
  00000001     00108 MIOS_BOX_CFG1   EQU     0x001
  00000002     00109 MIOS_BOX_STAT   EQU     0x002
  00000003     00110 MIOS_PARAMETER1 EQU     0x003
  00000004     00111 MIOS_PARAMETER2 EQU     0x004
  00000005     00112 MIOS_PARAMETER3 EQU     0x005
               00113 
               00114 ;; ==========================================================================
               00115 ;;  temporary registers for main programs
               00116 ;; ==========================================================================
  00000006     00117 TMP1            EQU     0x006
  00000007     00118 TMP2            EQU     0x007
  00000008     00119 TMP3            EQU     0x008
  00000009     00120 TMP4            EQU     0x009
  0000000A     00121 TMP5            EQU     0x00a
               00122 
               00123 ;; ==========================================================================
               00124 ;;  temporary registers for IRQs
               00125 ;; ==========================================================================
  0000000B     00126 IRQ_TMP1        EQU     0x00b
  0000000C     00127 IRQ_TMP2        EQU     0x00c
  0000000D     00128 IRQ_TMP3        EQU     0x00d
  0000000E     00129 IRQ_TMP4        EQU     0x00e
  0000000F     00130 IRQ_TMP5        EQU     0x00f
               00131 
               00132 ;; ==========================================================================
               00133 ;;  free memory space for user application:
               00134 ;; ==========================================================================
               00135         ;; 0x010-0x37f
               00136 
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  4


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00137 ;; ==========================================================================
               00138 ;;  MIOS System Registers -- not defined here -- 
               00139 ;;  never use these memory locations!
               00140 ;; ==========================================================================
               00141         ;; 0x380-0x6ff
               00142 
               00143 ;; ==========================================================================
               00144 ;;  MIOS System Registers for custom LCD driver
               00145 ;; ==========================================================================
  00000570     00146 MIOS_GLCD_BUFFER        EQU     0x570   ; note: the buffer must be located at ...0-...7
  00000578     00147 MIOS_LCD_OPTION1        EQU     0x578   ; contains the first LCD option given by MIOS_LCD_TypeSet
  00000579     00148 MIOS_LCD_OPTION2        EQU     0x579   ; contains the second LCD option given by MIOS_LCD_TypeSet
  0000057A     00149 MIOS_LCD_CURSOR_POS     EQU     0x57a   ; the current cursor pos of characters (GLCD: multiplied by width)
  0000057B     00150 MIOS_GLCD_GCURSOR_X     EQU     0x57b   ; for GLCDs: the current X position of graphical cursor
  0000057C     00151 MIOS_GLCD_GCURSOR_Y     EQU     0x57c   ; for GLCDs: the current Y position of graphical cursor
  0000057D     00152 MIOS_GLCD_FONT_WIDTH    EQU     0x57d   ; for GLCDs: the fontwidth given by MIOS_GLCD_FontInit
  0000057E     00153 MIOS_GLCD_FONT_HEIGHT   EQU     0x57e   ; for GLCDs: the fontheight given by MIOS_GLCD_FontInit
  0000057F     00154 MIOS_GLCD_FONT_X0       EQU     0x57f   ; for GLCDs: the first byte within a char entry
  00000580     00155 MIOS_GLCD_FONT_OFFSET   EQU     0x580   ; for GLCDs: the byte offset between the characters
  00000581     00156 MIOS_GLCD_FONT_PTRL     EQU     0x581   ; for GLCDs: pointer to the character table, low-byte
  00000582     00157 MIOS_GLCD_FONT_PTRH     EQU     0x582   ; for GLCDs: pointer to the character table, high-byte
  00000583     00158 MIOS_LCD_TIMEOUT0       EQU     0x583   ; can be used for timeout loops
  00000584     00159 MIOS_LCD_TIMEOUT1       EQU     0x584   ; can be used for timeout loops
  00000585     00160 MIOS_GLCD_TMP1          EQU     0x585   ; can be used as temporary buffer
  00000586     00161 MIOS_GLCD_TMP2          EQU     0x586   ; can be used as temporary buffer
  00000587     00162 MIOS_GLCD_TMP3          EQU     0x587   ; can be used as temporary buffer
  00000588     00163 MIOS_GLCD_TMP4          EQU     0x588   ; can be used as temporary buffer
  00000589     00164 MIOS_LCD_Y0_OFFSET      EQU     0x589   ; Y0 offset of LCD
  0000058A     00165 MIOS_LCD_Y1_OFFSET      EQU     0x58a   ; Y1 offset of LCD
  0000058B     00166 MIOS_LCD_Y2_OFFSET      EQU     0x58b   ; Y2 offset of LCD
  0000058C     00167 MIOS_LCD_Y3_OFFSET      EQU     0x58c   ; Y3 offset of LCD
  0000058D     00168 MIOS_LCD_CURSOR_POS_REAL EQU    0x58d   ; unmapped cursor position which has been set with MIOS_LCD_CursorSet
               00024 
               00025 ;; ---[ vectors to MIOS functions (never change!) ]---
               00026 #include "mios_vectors.inc"
  00002C00     00001 MIOS_MIDI_BeginStream                   EQU     0x2c00
  00002C04     00002 MIOS_MIDI_DeviceIDAutoSet               EQU     0x2c04
  00002C08     00003 MIOS_MIDI_DeviceIDGet                   EQU     0x2c08
  00002C0C     00004 MIOS_MIDI_DeviceIDSet                   EQU     0x2c0c
  00002C10     00005 MIOS_MIDI_EndStream                     EQU     0x2c10
  00002C14     00006 MIOS_MIDI_Init                          EQU     0x2c14
  00002C18     00007 MIOS_MIDI_InterfaceAutoSet              EQU     0x2c18
  00002C1C     00008 MIOS_MIDI_InterfaceGet                  EQU     0x2c1c
  00002C20     00009 MIOS_MIDI_InterfaceSet                  EQU     0x2c20
  00002C24     00010 MIOS_MIDI_MergerGet                     EQU     0x2c24
  00002C28     00011 MIOS_MIDI_MergerSet                     EQU     0x2c28
  00002C2C     00012 MIOS_MIDI_RxBufferFree                  EQU     0x2c2c
  00002C30     00013 MIOS_MIDI_RxBufferGet                   EQU     0x2c30
  00002C34     00014 MIOS_MIDI_RxBufferPut                   EQU     0x2c34
  00002C38     00015 MIOS_MIDI_RxBufferUsed                  EQU     0x2c38
  00002C3C     00016 MIOS_MIDI_TxBufferFlush                 EQU     0x2c3c
  00002C40     00017 MIOS_MIDI_TxBufferFree                  EQU     0x2c40
  00002C44     00018 MIOS_MIDI_TxBufferGet                   EQU     0x2c44
  00002C48     00019 MIOS_MIDI_TxBufferPut                   EQU     0x2c48
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  5


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
  00002C4C     00020 MIOS_MIDI_TxBufferUsed                  EQU     0x2c4c
  00002C50     00021 MIOS_MPROC_MergerDisable                EQU     0x2c50
  00002C54     00022 MIOS_MPROC_MergerEnable                 EQU     0x2c54
  00002C58     00023 MIOS_MPROC_MergerGet                    EQU     0x2c58
  00002C5C     00024 MIOS_AIN_DeadbandGet                    EQU     0x2c5c
  00002C60     00025 MIOS_AIN_DeadbandSet                    EQU     0x2c60
  00002C64     00026 MIOS_AIN_Muxed                          EQU     0x2c64
  00002C68     00027 MIOS_AIN_NumberGet                      EQU     0x2c68
  00002C6C     00028 MIOS_AIN_NumberSet                      EQU     0x2c6c
  00002C70     00029 MIOS_AIN_Pin7bitGet                     EQU     0x2c70
  00002C74     00030 MIOS_AIN_PinGet                         EQU     0x2c74
  00002C78     00031 MIOS_AIN_PinLSBGet                      EQU     0x2c78
  00002C7C     00032 MIOS_AIN_PinMSBGet                      EQU     0x2c7c
  00002C80     00033 MIOS_AIN_UnMuxed                        EQU     0x2c80
  00002C84     00034 MIOS_MF_PWM_DutyCycleDownGet            EQU     0x2c84
  00002C88     00035 MIOS_MF_PWM_DutyCycleDownSet            EQU     0x2c88
  00002C8C     00036 MIOS_MF_PWM_DutyCycleUpGet              EQU     0x2c8c
  00002C90     00037 MIOS_MF_PWM_DutyCycleUpSet              EQU     0x2c90
  00002C94     00038 MIOS_MF_DeadbandGet                     EQU     0x2c94
  00002C98     00039 MIOS_MF_DeadbandSet                     EQU     0x2c98
  00002C9C     00040 MIOS_MF_Disable                         EQU     0x2c9c
  00002CA0     00041 MIOS_MF_Enable                          EQU     0x2ca0
  00002CA4     00042 MIOS_MF_FaderMove                       EQU     0x2ca4
  00002CA8     00043 MIOS_MF_SuspendDisable                  EQU     0x2ca8
  00002CAC     00044 MIOS_MF_SuspendEnable                   EQU     0x2cac
  00002CB0     00045 MIOS_MF_SuspendGet                      EQU     0x2cb0
  00002CB4     00046 MIOS_DIN_PinGet                         EQU     0x2cb4
  00002CB8     00047 MIOS_DIN_SRGet                          EQU     0x2cb8
  00002CBC     00048 MIOS_DOUT_PinGet                        EQU     0x2cbc
  00002CC0     00049 MIOS_DOUT_PinSet                        EQU     0x2cc0
  00002CC4     00050 MIOS_DOUT_PinSet0                       EQU     0x2cc4
  00002CC8     00051 MIOS_DOUT_PinSet1                       EQU     0x2cc8
  00002CCC     00052 MIOS_DOUT_SRGet                         EQU     0x2ccc
  00002CD0     00053 MIOS_DOUT_SRSet                         EQU     0x2cd0
  00002CD4     00054 MIOS_ENC_Abs7bitAdd                     EQU     0x2cd4
  00002CD8     00055 MIOS_ENC_Abs7bitGet                     EQU     0x2cd8
  00002CDC     00056 MIOS_ENC_Abs7bitSet                     EQU     0x2cdc
  00002CE0     00057 MIOS_ENC_NumberGet                      EQU     0x2ce0
  00002CE4     00058 MIOS_ENC_SpeedGet                       EQU     0x2ce4
  00002CE8     00059 MIOS_ENC_SpeedSet                       EQU     0x2ce8
  00002CEC     00060 MIOS_SRIO_NumberGet                     EQU     0x2cec
  00002CF0     00061 MIOS_SRIO_NumberSet                     EQU     0x2cf0
  00002CF4     00062 MIOS_SRIO_TS_SensitivityGet             EQU     0x2cf4
  00002CF8     00063 MIOS_SRIO_TS_SensitivitySet             EQU     0x2cf8
  00002CFC     00064 MIOS_SRIO_UpdateFrqGet                  EQU     0x2cfc
  00002D00     00065 MIOS_SRIO_UpdateFrqSet                  EQU     0x2d00
  00002D04     00066 MIOS_LCD_Clear                          EQU     0x2d04
  00002D08     00067 MIOS_LCD_Cmd                            EQU     0x2d08
  00002D0C     00068 MIOS_LCD_CursorGet                      EQU     0x2d0c
  00002D10     00069 MIOS_LCD_CursorSet                      EQU     0x2d10
  00002D14     00070 MIOS_LCD_Data                           EQU     0x2d14
  00002D18     00071 MIOS_LCD_Init                           EQU     0x2d18
  00002D1C     00072 MIOS_LCD_PrintBCD1                      EQU     0x2d1c
  00002D20     00073 MIOS_LCD_PrintBCD2                      EQU     0x2d20
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  6


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
  00002D24     00074 MIOS_LCD_PrintBCD3                      EQU     0x2d24
  00002D28     00075 MIOS_LCD_PrintChar                      EQU     0x2d28
  00002D2C     00076 MIOS_LCD_PrintHex1                      EQU     0x2d2c
  00002D30     00077 MIOS_LCD_PrintHex2                      EQU     0x2d30
  00002D34     00078 MIOS_LCD_PrintMessage                   EQU     0x2d34
  00002D38     00079 MIOS_LCD_PrintPreconfString             EQU     0x2d38
  00002D3C     00080 MIOS_LCD_PrintString                    EQU     0x2d3c
  00002D40     00081 MIOS_LCD_TypeAutoSet                    EQU     0x2d40
  00002D44     00082 MIOS_LCD_TypeGet                        EQU     0x2d44
  00002D48     00083 MIOS_LCD_TypeSet                        EQU     0x2d48
  00002D4C     00084 MIOS_LCD_YAddressGet                    EQU     0x2d4c
  00002D50     00085 MIOS_LCD_YAddressSet                    EQU     0x2d50
  00002D54     00086 MIOS_GLCD_FontInit                      EQU     0x2d54
  00002D58     00087 MIOS_GLCD_GCursorGet                    EQU     0x2d58
  00002D5C     00088 MIOS_GLCD_GCursorSet                    EQU     0x2d5c
  00002D60     00089 MIOS_EEPROM_Read                        EQU     0x2d60
  00002D64     00090 MIOS_EEPROM_Write                       EQU     0x2d64
  00002D68     00091 MIOS_FLASH_Read                         EQU     0x2d68
  00002D6C     00092 MIOS_FLASH_Write                        EQU     0x2d6c
  00002D70     00093 MIOS_BANKSTICK_Read                     EQU     0x2d70
  00002D74     00094 MIOS_BANKSTICK_Write                    EQU     0x2d74
  00002D78     00095 MIOS_TIMER_Init                         EQU     0x2d78
  00002D7C     00096 MIOS_TIMER_Start                        EQU     0x2d7c
  00002D80     00097 MIOS_TIMER_Stop                         EQU     0x2d80
  00002D84     00098 MIOS_HLP_AddressFromTable               EQU     0x2d84
  00002D88     00099 MIOS_HLP_GetBitANDMask                  EQU     0x2d88
  00002D8C     00100 MIOS_HLP_GetBitORMask                   EQU     0x2d8c
  00002D90     00101 MIOS_HLP_GetIndex_2bytes                EQU     0x2d90
  00002D94     00102 MIOS_HLP_GetIndex_4bytes                EQU     0x2d94
  00002D98     00103 MIOS_HLP_IndirectJump                   EQU     0x2d98
  00002D9C     00104 MIOS_Delay                              EQU     0x2d9c
  00002DA0     00105 MIOS_GPCounterGet                       EQU     0x2da0
  00002DA4     00106 MIOS_Reset                              EQU     0x2da4
  00002DA8     00107 MIOS_SystemResume                       EQU     0x2da8
  00002DAC     00108 MIOS_SystemSuspend                      EQU     0x2dac
  00002DB0     00109 MIOS_UserResume                         EQU     0x2db0
  00002DB4     00110 MIOS_UserSuspend                        EQU     0x2db4
  00002DB8     00111 MIOS_HLP_16bitAddSaturate               EQU     0x2db8
  00002DBC     00112 MIOS_DIN_PinAutoRepeatEnable            EQU     0x2dbc
  00002DC0     00113 MIOS_DIN_PinAutoRepeatDisable           EQU     0x2dc0
  00002DC4     00114 MIOS_DIN_PinAutoRepeatGet               EQU     0x2dc4
  00002DC8     00115 MIOS_CLCD_SpecialCharInit               EQU     0x2dc8
  00002DCC     00116 MIOS_CLCD_SpecialCharsInit              EQU     0x2dcc
  00002DD0     00117 MIOS_AIN_DynamicPrioSet                 EQU     0x2dd0
  00002DD4     00118 MIOS_AIN_DynamicPrioGet                 EQU     0x2dd4
  00002DD8     00119 MIOS_AIN_LastPinsGet                    EQU     0x2dd8
  00002DDC     00120 MIOS_BANKSTICK_CtrlSet                  EQU     0x2ddc
  00002DE0     00121 MIOS_BANKSTICK_CtrlGet                  EQU     0x2de0
  00002DE4     00122 MIOS_BANKSTICK_WritePage                EQU     0x2de4
  00002DE8     00123 MIOS_HLP_Dec2BCD                        EQU     0x2de8
  00002DEC     00124 MIOS_LCD_PrintBCD4                      EQU     0x2dec
  00002DF0     00125 MIOS_LCD_PrintBCD5                      EQU     0x2df0
  00002DF4     00126 MIOS_LCD_MessageStart                   EQU     0x2df4
  00002DF8     00127 MIOS_LCD_MessageStop                    EQU     0x2df8
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  7


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
  00002DFC     00128 MIOS_MF_PWM_PeriodGet                   EQU     0x2dfc
  00002E00     00129 MIOS_MF_PWM_PeriodSet                   EQU     0x2e00
  00002E04     00130 MIOS_IIC_Start                          EQU     0x2e04
  00002E08     00131 MIOS_IIC_Stop                           EQU     0x2e08
  00002E0C     00132 MIOS_IIC_ByteSend                       EQU     0x2e0c
  00002E10     00133 MIOS_IIC_ByteReceive                    EQU     0x2e10
  00002E14     00134 MIOS_IIC_AckSend                        EQU     0x2e14
  00002E18     00135 MIOS_IIC_NakSend                        EQU     0x2e18
  00002E1C     00136 MIOS_IIC_CtrlSet                        EQU     0x2e1c
  00002E20     00137 MIOS_IIC_CtrlGet                        EQU     0x2e20
  00002E24     00138 MIOS_SRIO_DebounceSet                   EQU     0x2e24
  00002E28     00139 MIOS_SRIO_DebounceGet                   EQU     0x2e28
  00002E2C     00140 MIOS_MF_TouchDetectionReset             EQU     0x2e2c
  00002E30     00141 MIOS_BANKSTICK_ReadPage                 EQU     0x2e30
  00002E34     00142 MIOS_EEPROM_ReadPage                    EQU     0x2e34
  00002E38     00143 MIOS_EEPROM_WritePage                   EQU     0x2e38
  00002E3C     00144 MIOS_TIMER_ReInit                       EQU     0x2e3c
  00002E40     00145 MIOS_RESERVED_144                       EQU     0x2e40
  00002E44     00146 MIOS_RESERVED_145                       EQU     0x2e44
  00002E48     00147 MIOS_RESERVED_146                       EQU     0x2e48
  00002E4C     00148 MIOS_RESERVED_147                       EQU     0x2e4c
  00002E50     00149 MIOS_RESERVED_148                       EQU     0x2e50
  00002E54     00150 MIOS_RESERVED_149                       EQU     0x2e54
  00002E58     00151 MIOS_RESERVED_150                       EQU     0x2e58
  00002E5C     00152 MIOS_RESERVED_151                       EQU     0x2e5c
  00002E60     00153 MIOS_RESERVED_152                       EQU     0x2e60
  00002E64     00154 MIOS_RESERVED_153                       EQU     0x2e64
  00002E68     00155 MIOS_RESERVED_154                       EQU     0x2e68
  00002E6C     00156 MIOS_RESERVED_155                       EQU     0x2e6c
  00002E70     00157 MIOS_RESERVED_156                       EQU     0x2e70
  00002E74     00158 MIOS_RESERVED_157                       EQU     0x2e74
  00002E78     00159 MIOS_RESERVED_158                       EQU     0x2e78
  00002E7C     00160 MIOS_RESERVED_159                       EQU     0x2e7c
  00002E80     00161 MIOS_RESERVED_160                       EQU     0x2e80
  00002E84     00162 MIOS_RESERVED_161                       EQU     0x2e84
  00002E88     00163 MIOS_RESERVED_162                       EQU     0x2e88
  00002E8C     00164 MIOS_RESERVED_163                       EQU     0x2e8c
  00002E90     00165 MIOS_RESERVED_164                       EQU     0x2e90
  00002E94     00166 MIOS_RESERVED_165                       EQU     0x2e94
  00002E98     00167 MIOS_RESERVED_166                       EQU     0x2e98
  00002E9C     00168 MIOS_RESERVED_167                       EQU     0x2e9c
  00002EA0     00169 MIOS_RESERVED_168                       EQU     0x2ea0
  00002EA4     00170 MIOS_RESERVED_169                       EQU     0x2ea4
  00002EA8     00171 MIOS_RESERVED_170                       EQU     0x2ea8
  00002EAC     00172 MIOS_RESERVED_171                       EQU     0x2eac
  00002EB0     00173 MIOS_RESERVED_172                       EQU     0x2eb0
  00002EB4     00174 MIOS_RESERVED_173                       EQU     0x2eb4
  00002EB8     00175 MIOS_RESERVED_174                       EQU     0x2eb8
  00002EBC     00176 MIOS_RESERVED_175                       EQU     0x2ebc
  00002EC0     00177 MIOS_RESERVED_176                       EQU     0x2ec0
  00002EC4     00178 MIOS_RESERVED_177                       EQU     0x2ec4
  00002EC8     00179 MIOS_RESERVED_178                       EQU     0x2ec8
  00002ECC     00180 MIOS_RESERVED_179                       EQU     0x2ecc
  00002ED0     00181 MIOS_RESERVED_180                       EQU     0x2ed0
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  8


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
  00002ED4     00182 MIOS_RESERVED_181                       EQU     0x2ed4
  00002ED8     00183 MIOS_RESERVED_182                       EQU     0x2ed8
  00002EDC     00184 MIOS_RESERVED_183                       EQU     0x2edc
  00002EE0     00185 MIOS_RESERVED_184                       EQU     0x2ee0
  00002EE4     00186 MIOS_RESERVED_185                       EQU     0x2ee4
  00002EE8     00187 MIOS_RESERVED_186                       EQU     0x2ee8
  00002EEC     00188 MIOS_RESERVED_187                       EQU     0x2eec
  00002EF0     00189 MIOS_RESERVED_188                       EQU     0x2ef0
  00002EF4     00190 MIOS_RESERVED_189                       EQU     0x2ef4
  00002EF8     00191 MIOS_RESERVED_190                       EQU     0x2ef8
  00002EFC     00192 MIOS_RESERVED_191                       EQU     0x2efc
  00002F00     00193 MIOS_RESERVED_192                       EQU     0x2f00
  00002F04     00194 MIOS_RESERVED_193                       EQU     0x2f04
  00002F08     00195 MIOS_RESERVED_194                       EQU     0x2f08
  00002F0C     00196 MIOS_RESERVED_195                       EQU     0x2f0c
  00002F10     00197 MIOS_RESERVED_196                       EQU     0x2f10
  00002F14     00198 MIOS_RESERVED_197                       EQU     0x2f14
  00002F18     00199 MIOS_RESERVED_198                       EQU     0x2f18
  00002F1C     00200 MIOS_RESERVED_199                       EQU     0x2f1c
  00002F20     00201 MIOS_RESERVED_200                       EQU     0x2f20
  00002F24     00202 MIOS_RESERVED_201                       EQU     0x2f24
  00002F28     00203 MIOS_RESERVED_202                       EQU     0x2f28
  00002F2C     00204 MIOS_RESERVED_203                       EQU     0x2f2c
  00002F30     00205 MIOS_RESERVED_204                       EQU     0x2f30
  00002F34     00206 MIOS_RESERVED_205                       EQU     0x2f34
  00002F38     00207 MIOS_RESERVED_206                       EQU     0x2f38
  00002F3C     00208 MIOS_RESERVED_207                       EQU     0x2f3c
  00002F40     00209 MIOS_RESERVED_208                       EQU     0x2f40
  00002F44     00210 MIOS_RESERVED_209                       EQU     0x2f44
  00002F48     00211 MIOS_RESERVED_210                       EQU     0x2f48
  00002F4C     00212 MIOS_RESERVED_211                       EQU     0x2f4c
  00002F50     00213 MIOS_RESERVED_212                       EQU     0x2f50
  00002F54     00214 MIOS_RESERVED_213                       EQU     0x2f54
  00002F58     00215 MIOS_RESERVED_214                       EQU     0x2f58
  00002F5C     00216 MIOS_RESERVED_215                       EQU     0x2f5c
  00002F60     00217 MIOS_RESERVED_216                       EQU     0x2f60
  00002F64     00218 MIOS_RESERVED_217                       EQU     0x2f64
  00002F68     00219 MIOS_RESERVED_218                       EQU     0x2f68
  00002F6C     00220 MIOS_RESERVED_219                       EQU     0x2f6c
  00002F70     00221 MIOS_RESERVED_220                       EQU     0x2f70
  00002F74     00222 MIOS_RESERVED_221                       EQU     0x2f74
  00002F78     00223 MIOS_RESERVED_222                       EQU     0x2f78
  00002F7C     00224 MIOS_RESERVED_223                       EQU     0x2f7c
  00002F80     00225 MIOS_RESERVED_224                       EQU     0x2f80
  00002F84     00226 MIOS_RESERVED_225                       EQU     0x2f84
  00002F88     00227 MIOS_RESERVED_226                       EQU     0x2f88
  00002F8C     00228 MIOS_RESERVED_227                       EQU     0x2f8c
  00002F90     00229 MIOS_RESERVED_228                       EQU     0x2f90
  00002F94     00230 MIOS_RESERVED_229                       EQU     0x2f94
  00002F98     00231 MIOS_RESERVED_230                       EQU     0x2f98
  00002F9C     00232 MIOS_RESERVED_231                       EQU     0x2f9c
  00002FA0     00233 MIOS_RESERVED_232                       EQU     0x2fa0
  00002FA4     00234 MIOS_RESERVED_233                       EQU     0x2fa4
  00002FA8     00235 MIOS_RESERVED_234                       EQU     0x2fa8
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE  9


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
  00002FAC     00236 MIOS_RESERVED_235                       EQU     0x2fac
  00002FB0     00237 MIOS_RESERVED_236                       EQU     0x2fb0
  00002FB4     00238 MIOS_RESERVED_237                       EQU     0x2fb4
  00002FB8     00239 MIOS_RESERVED_238                       EQU     0x2fb8
  00002FBC     00240 MIOS_RESERVED_239                       EQU     0x2fbc
  00002FC0     00241 MIOS_RESERVED_240                       EQU     0x2fc0
  00002FC4     00242 MIOS_RESERVED_241                       EQU     0x2fc4
  00002FC8     00243 MIOS_RESERVED_242                       EQU     0x2fc8
  00002FCC     00244 MIOS_RESERVED_243                       EQU     0x2fcc
  00002FD0     00245 MIOS_RESERVED_244                       EQU     0x2fd0
  00002FD4     00246 MIOS_RESERVED_245                       EQU     0x2fd4
  00002FD8     00247 MIOS_RESERVED_246                       EQU     0x2fd8
  00002FDC     00248 MIOS_RESERVED_247                       EQU     0x2fdc
  00002FE0     00249 MIOS_RESERVED_248                       EQU     0x2fe0
  00002FE4     00250 MIOS_RESERVED_249                       EQU     0x2fe4
  00002FE8     00251 MIOS_RESERVED_250                       EQU     0x2fe8
  00002FEC     00252 MIOS_RESERVED_251                       EQU     0x2fec
  00002FF0     00253 MIOS_RESERVED_252                       EQU     0x2ff0
  00002FF4     00254 MIOS_RESERVED_253                       EQU     0x2ff4
  00002FF8     00255 MIOS_RESERVED_254                       EQU     0x2ff8
  00002FFC     00256 MIOS_RESERVED_255                       EQU     0x2ffc
               00027 
               00028 ;; ---[ user hooks (never change!) ]---
               00029 #include "user_vectors.inc"
               00001 ;
               00002 ; User vectortable - contains user hooks to MIOS
               00003 ;
               00004 ; ==========================================================================
               00005 ;
               00006 ;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
               00007 ;  Licensed for personal non-commercial use only.
               00008 ;  All other rights reserved.
               00009 ; 
               00010 ; ==========================================================================
               00011 
               00012         ;; never change the origin or the order of entries!
               00013         org     0x3000
3000           00014 _User_Init
3000 EF00 F000 00015         goto    USER_Init
3004           00016 _USER_Tick
3004 EF00 F000 00017         goto    USER_Tick
3008           00018 _USER_Timer
3008 EF00 F000 00019         goto    USER_Timer
300C           00020 _USER_MPROC_DebugTrigger
300C EF00 F000 00021         goto    USER_MPROC_DebugTrigger
3010           00022 _USER_DISPLAY_Init
3010 EF00 F000 00023         goto    USER_DISPLAY_Init
3014           00024 _USER_DISPLAY_Tick
3014 EF00 F000 00025         goto    USER_DISPLAY_Tick
3018           00026 _USER_SR_Service_Prepare
3018 EF00 F000 00027         goto    USER_SR_Service_Prepare
301C           00028 _USER_SR_Service_Finish
301C EF00 F000 00029         goto    USER_SR_Service_Finish
3020           00030 _USER_DIN_NotifyToggle
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 10


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3020 EF00 F000 00031         goto    USER_DIN_NotifyToggle
3024           00032 _USER_ENC_NotifyChange
3024 EF00 F000 00033         goto    USER_ENC_NotifyChange
3028           00034 _USER_AIN_NotifyChange
3028 EF00 F000 00035         goto    USER_AIN_NotifyChange
302C           00036 _USER_MPROC_NotifyReceivedByte
302C EF00 F000 00037         goto    USER_MPROC_NotifyReceivedByte
3030           00038 _USER_MPROC_NotifyTimeout
3030 EF00 F000 00039         goto    USER_MPROC_NotifyTimeout
3034           00040 _USER_MPROC_NotifyReceivedEvent
3034 EF00 F000 00041         goto    USER_MPROC_NotifyReceivedEvent
3038           00042 _USER_MPROC_NotifyFoundEvent
3038 EF00 F000 00043         goto    USER_MPROC_NotifyFoundEvent
303C           00044 _USER_LCD_Init
303C EF00 F000 00045         goto    USER_LCD_Init
3040           00046 _USER_LCD_Clear
3040 EF00 F000 00047         goto    USER_LCD_Clear
3044           00048 _USER_LCD_CursorSet
3044 EF00 F000 00049         goto    USER_LCD_CursorSet
3048           00050 _USER_LCD_PrintChar
3048 EF00 F000 00051         goto    USER_LCD_PrintChar
304C           00052 _USER_MIDI_NotifyRx
304C EF00 F000 00053         goto    USER_MIDI_NotifyRx
3050           00054 _USER_MIDI_NotifyTx
3050 EF00 F000 00055         goto    USER_MIDI_NotifyTx
3054           00056 _USER_LCD_Data
3054 EF00 F000 00057         goto    USER_LCD_Data
3058           00058 _USER_LCD_Cmd
3058 EF00 F000 00059         goto    USER_LCD_Cmd
305C           00060 _USER_LCD_SpecialCharInit
305C EF00 F000 00061         goto    USER_LCD_SpecialCharInit
3060           00062 USER_RESERVED_25
3060 0012      00063         return
3062 0000      00064         nop
3064           00065 USER_RESERVED_26
3064 0012      00066         return
3066 0000      00067         nop
3068           00068 USER_RESERVED_27
3068 0012      00069         return
306A 0000      00070         nop
306C           00071 USER_RESERVED_28
306C 0012      00072         return
306E 0000      00073         nop
3070           00074 USER_RESERVED_29
3070 0012      00075         return
3072 0000      00076         nop
3074           00077 USER_RESERVED_30
3074 0012      00078         return
3076 0000      00079         nop
3078           00080 USER_RESERVED_31
3078 0012      00081         return
307A 0000      00082         nop
307C           00083 USER_RESERVED_32
307C 0012      00084         return
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 11


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
307E 0000      00085         nop
               00030 
               00031 ;; ==========================================================================
               00032 ;;  General Application Settings
               00033 ;; ==========================================================================
               00034 
               00035 ;; ---[ configuration table for MIDI processor and rotary encoders ]---
               00036 #include "mios_tables.inc"
               00001 ;
               00002 ; Configuration Tables for MIOS Application
               00003 ;
               00004 ; ==========================================================================
               00005 ;
               00006 ;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
               00007 ;  Licensed for personal non-commercial use only.
               00008 ;  All other rights reserved.
               00009 ; 
               00010 ; ==========================================================================
               00011 
               00012         org     0x3080          ; never change the origin!
               00013 
               00014 ;; --------------------------------------------------------------------------
               00015 ;; The MIDI Trigger table maps incoming MIDI events to control elements
               00016 ;; (pots/faders, encoders, buttons, LEDs, ...)
               00017 ;; 
               00018 ;; After the MIOS MIDI processor (MPROC) has received a complete event, it
               00019 ;; searches in this table for a matching entry and calls USER_MPROC_NotifyFoundEvent
               00020 ;; with the table index in WREG and the MIDI event in MIOS_PARAMETER[123]
               00021 ;; 
               00022 ;; Note also that the MIDI processor stops scanning the table after
               00023 ;; the first MT_EOT entry
               00024 ;; 
               00025 ;; Note2: never change the origin (memory location) of this table!
               00026 ;; 
               00027 ;; Optionally this table can also be used to define events, which should be
               00028 ;; transmitted (Example: see example_ain64_din128_dout128), so that incoming
               00029 ;; and outgoing events are located at one place
               00030 ;; 
               00031 ;; The table *must* contain 256 entries. Unused entries should be filled with
               00032 ;; MT_EOT.
               00033 ;; --------------------------------------------------------------------------
               00034 
               00035         ;; MIDI Trigger entry structure
               00036 MT_ENTRY MACRO event_0, event_1
               00037         dw      (event_1 << 8) | event_0
               00038         ENDM
               00039 
               00040 MT_EOT  MACRO
               00041         dw      0xffff
               00042         ENDM
               00043 
               00044 
               00045         global  _MIOS_MPROC_EVENT_TABLE
               00046 
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 12


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3080           00047 _MIOS_MPROC_EVENT_TABLE
3080           00048 MIOS_MPROC_EVENT_TABLE
               00049         ;; entry 0x00-0x0f
               00050         MT_EOT
3080 FFFF          M         dw      0xffff
               00051         MT_EOT
3082 FFFF          M         dw      0xffff
               00052         MT_EOT
3084 FFFF          M         dw      0xffff
               00053         MT_EOT
3086 FFFF          M         dw      0xffff
               00054         MT_EOT
3088 FFFF          M         dw      0xffff
               00055         MT_EOT
308A FFFF          M         dw      0xffff
               00056         MT_EOT
308C FFFF          M         dw      0xffff
               00057         MT_EOT
308E FFFF          M         dw      0xffff
               00058         MT_EOT
3090 FFFF          M         dw      0xffff
               00059         MT_EOT
3092 FFFF          M         dw      0xffff
               00060         MT_EOT
3094 FFFF          M         dw      0xffff
               00061         MT_EOT
3096 FFFF          M         dw      0xffff
               00062         MT_EOT
3098 FFFF          M         dw      0xffff
               00063         MT_EOT
309A FFFF          M         dw      0xffff
               00064         MT_EOT
309C FFFF          M         dw      0xffff
               00065         MT_EOT
309E FFFF          M         dw      0xffff
               00066 
               00067         ;; entry 0x10-0x1f      
               00068         MT_EOT
30A0 FFFF          M         dw      0xffff
               00069         MT_EOT
30A2 FFFF          M         dw      0xffff
               00070         MT_EOT
30A4 FFFF          M         dw      0xffff
               00071         MT_EOT
30A6 FFFF          M         dw      0xffff
               00072         MT_EOT
30A8 FFFF          M         dw      0xffff
               00073         MT_EOT
30AA FFFF          M         dw      0xffff
               00074         MT_EOT
30AC FFFF          M         dw      0xffff
               00075         MT_EOT
30AE FFFF          M         dw      0xffff
               00076         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 13


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
30B0 FFFF          M         dw      0xffff
               00077         MT_EOT
30B2 FFFF          M         dw      0xffff
               00078         MT_EOT
30B4 FFFF          M         dw      0xffff
               00079         MT_EOT
30B6 FFFF          M         dw      0xffff
               00080         MT_EOT
30B8 FFFF          M         dw      0xffff
               00081         MT_EOT
30BA FFFF          M         dw      0xffff
               00082         MT_EOT
30BC FFFF          M         dw      0xffff
               00083         MT_EOT
30BE FFFF          M         dw      0xffff
               00084 
               00085         ;; entry 0x20-0x2f
               00086         MT_EOT
30C0 FFFF          M         dw      0xffff
               00087         MT_EOT
30C2 FFFF          M         dw      0xffff
               00088         MT_EOT
30C4 FFFF          M         dw      0xffff
               00089         MT_EOT
30C6 FFFF          M         dw      0xffff
               00090         MT_EOT
30C8 FFFF          M         dw      0xffff
               00091         MT_EOT
30CA FFFF          M         dw      0xffff
               00092         MT_EOT
30CC FFFF          M         dw      0xffff
               00093         MT_EOT
30CE FFFF          M         dw      0xffff
               00094         MT_EOT
30D0 FFFF          M         dw      0xffff
               00095         MT_EOT
30D2 FFFF          M         dw      0xffff
               00096         MT_EOT
30D4 FFFF          M         dw      0xffff
               00097         MT_EOT
30D6 FFFF          M         dw      0xffff
               00098         MT_EOT
30D8 FFFF          M         dw      0xffff
               00099         MT_EOT
30DA FFFF          M         dw      0xffff
               00100         MT_EOT
30DC FFFF          M         dw      0xffff
               00101         MT_EOT
30DE FFFF          M         dw      0xffff
               00102         
               00103         ;; entry 0x30-0x3f
               00104         MT_EOT
30E0 FFFF          M         dw      0xffff
               00105         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 14


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
30E2 FFFF          M         dw      0xffff
               00106         MT_EOT
30E4 FFFF          M         dw      0xffff
               00107         MT_EOT
30E6 FFFF          M         dw      0xffff
               00108         MT_EOT
30E8 FFFF          M         dw      0xffff
               00109         MT_EOT
30EA FFFF          M         dw      0xffff
               00110         MT_EOT
30EC FFFF          M         dw      0xffff
               00111         MT_EOT
30EE FFFF          M         dw      0xffff
               00112         MT_EOT
30F0 FFFF          M         dw      0xffff
               00113         MT_EOT
30F2 FFFF          M         dw      0xffff
               00114         MT_EOT
30F4 FFFF          M         dw      0xffff
               00115         MT_EOT
30F6 FFFF          M         dw      0xffff
               00116         MT_EOT
30F8 FFFF          M         dw      0xffff
               00117         MT_EOT
30FA FFFF          M         dw      0xffff
               00118         MT_EOT
30FC FFFF          M         dw      0xffff
               00119         MT_EOT
30FE FFFF          M         dw      0xffff
               00120         
               00121         ;; entry 0x40-0x4f
               00122         MT_EOT
3100 FFFF          M         dw      0xffff
               00123         MT_EOT
3102 FFFF          M         dw      0xffff
               00124         MT_EOT
3104 FFFF          M         dw      0xffff
               00125         MT_EOT
3106 FFFF          M         dw      0xffff
               00126         MT_EOT
3108 FFFF          M         dw      0xffff
               00127         MT_EOT
310A FFFF          M         dw      0xffff
               00128         MT_EOT
310C FFFF          M         dw      0xffff
               00129         MT_EOT
310E FFFF          M         dw      0xffff
               00130         MT_EOT
3110 FFFF          M         dw      0xffff
               00131         MT_EOT
3112 FFFF          M         dw      0xffff
               00132         MT_EOT
3114 FFFF          M         dw      0xffff
               00133         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 15


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3116 FFFF          M         dw      0xffff
               00134         MT_EOT
3118 FFFF          M         dw      0xffff
               00135         MT_EOT
311A FFFF          M         dw      0xffff
               00136         MT_EOT
311C FFFF          M         dw      0xffff
               00137         MT_EOT
311E FFFF          M         dw      0xffff
               00138         
               00139         ;; entry 0x50-0x5f
               00140         MT_EOT
3120 FFFF          M         dw      0xffff
               00141         MT_EOT
3122 FFFF          M         dw      0xffff
               00142         MT_EOT
3124 FFFF          M         dw      0xffff
               00143         MT_EOT
3126 FFFF          M         dw      0xffff
               00144         MT_EOT
3128 FFFF          M         dw      0xffff
               00145         MT_EOT
312A FFFF          M         dw      0xffff
               00146         MT_EOT
312C FFFF          M         dw      0xffff
               00147         MT_EOT
312E FFFF          M         dw      0xffff
               00148         MT_EOT
3130 FFFF          M         dw      0xffff
               00149         MT_EOT
3132 FFFF          M         dw      0xffff
               00150         MT_EOT
3134 FFFF          M         dw      0xffff
               00151         MT_EOT
3136 FFFF          M         dw      0xffff
               00152         MT_EOT
3138 FFFF          M         dw      0xffff
               00153         MT_EOT
313A FFFF          M         dw      0xffff
               00154         MT_EOT
313C FFFF          M         dw      0xffff
               00155         MT_EOT
313E FFFF          M         dw      0xffff
               00156                 
               00157         ;; entry 0x60-0x6f
               00158         MT_EOT
3140 FFFF          M         dw      0xffff
               00159         MT_EOT
3142 FFFF          M         dw      0xffff
               00160         MT_EOT
3144 FFFF          M         dw      0xffff
               00161         MT_EOT
3146 FFFF          M         dw      0xffff
               00162         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 16


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3148 FFFF          M         dw      0xffff
               00163         MT_EOT
314A FFFF          M         dw      0xffff
               00164         MT_EOT
314C FFFF          M         dw      0xffff
               00165         MT_EOT
314E FFFF          M         dw      0xffff
               00166         MT_EOT
3150 FFFF          M         dw      0xffff
               00167         MT_EOT
3152 FFFF          M         dw      0xffff
               00168         MT_EOT
3154 FFFF          M         dw      0xffff
               00169         MT_EOT
3156 FFFF          M         dw      0xffff
               00170         MT_EOT
3158 FFFF          M         dw      0xffff
               00171         MT_EOT
315A FFFF          M         dw      0xffff
               00172         MT_EOT
315C FFFF          M         dw      0xffff
               00173         MT_EOT
315E FFFF          M         dw      0xffff
               00174 
               00175         ;; entry 0x70-0x7f
               00176         MT_EOT
3160 FFFF          M         dw      0xffff
               00177         MT_EOT
3162 FFFF          M         dw      0xffff
               00178         MT_EOT
3164 FFFF          M         dw      0xffff
               00179         MT_EOT
3166 FFFF          M         dw      0xffff
               00180         MT_EOT
3168 FFFF          M         dw      0xffff
               00181         MT_EOT
316A FFFF          M         dw      0xffff
               00182         MT_EOT
316C FFFF          M         dw      0xffff
               00183         MT_EOT
316E FFFF          M         dw      0xffff
               00184         MT_EOT
3170 FFFF          M         dw      0xffff
               00185         MT_EOT
3172 FFFF          M         dw      0xffff
               00186         MT_EOT
3174 FFFF          M         dw      0xffff
               00187         MT_EOT
3176 FFFF          M         dw      0xffff
               00188         MT_EOT
3178 FFFF          M         dw      0xffff
               00189         MT_EOT
317A FFFF          M         dw      0xffff
               00190         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 17


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
317C FFFF          M         dw      0xffff
               00191         MT_EOT
317E FFFF          M         dw      0xffff
               00192 
               00193         ;; entry 0x80-0x8f
               00194         MT_EOT
3180 FFFF          M         dw      0xffff
               00195         MT_EOT
3182 FFFF          M         dw      0xffff
               00196         MT_EOT
3184 FFFF          M         dw      0xffff
               00197         MT_EOT
3186 FFFF          M         dw      0xffff
               00198         MT_EOT
3188 FFFF          M         dw      0xffff
               00199         MT_EOT
318A FFFF          M         dw      0xffff
               00200         MT_EOT
318C FFFF          M         dw      0xffff
               00201         MT_EOT
318E FFFF          M         dw      0xffff
               00202         MT_EOT
3190 FFFF          M         dw      0xffff
               00203         MT_EOT
3192 FFFF          M         dw      0xffff
               00204         MT_EOT
3194 FFFF          M         dw      0xffff
               00205         MT_EOT
3196 FFFF          M         dw      0xffff
               00206         MT_EOT
3198 FFFF          M         dw      0xffff
               00207         MT_EOT
319A FFFF          M         dw      0xffff
               00208         MT_EOT
319C FFFF          M         dw      0xffff
               00209         MT_EOT
319E FFFF          M         dw      0xffff
               00210 
               00211         ;; entry 0x90-0x9f
               00212         MT_EOT
31A0 FFFF          M         dw      0xffff
               00213         MT_EOT
31A2 FFFF          M         dw      0xffff
               00214         MT_EOT
31A4 FFFF          M         dw      0xffff
               00215         MT_EOT
31A6 FFFF          M         dw      0xffff
               00216         MT_EOT
31A8 FFFF          M         dw      0xffff
               00217         MT_EOT
31AA FFFF          M         dw      0xffff
               00218         MT_EOT
31AC FFFF          M         dw      0xffff
               00219         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 18


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
31AE FFFF          M         dw      0xffff
               00220         MT_EOT
31B0 FFFF          M         dw      0xffff
               00221         MT_EOT
31B2 FFFF          M         dw      0xffff
               00222         MT_EOT
31B4 FFFF          M         dw      0xffff
               00223         MT_EOT
31B6 FFFF          M         dw      0xffff
               00224         MT_EOT
31B8 FFFF          M         dw      0xffff
               00225         MT_EOT
31BA FFFF          M         dw      0xffff
               00226         MT_EOT
31BC FFFF          M         dw      0xffff
               00227         MT_EOT
31BE FFFF          M         dw      0xffff
               00228 
               00229         ;; entry 0xa0-0xaf
               00230         MT_EOT
31C0 FFFF          M         dw      0xffff
               00231         MT_EOT
31C2 FFFF          M         dw      0xffff
               00232         MT_EOT
31C4 FFFF          M         dw      0xffff
               00233         MT_EOT
31C6 FFFF          M         dw      0xffff
               00234         MT_EOT
31C8 FFFF          M         dw      0xffff
               00235         MT_EOT
31CA FFFF          M         dw      0xffff
               00236         MT_EOT
31CC FFFF          M         dw      0xffff
               00237         MT_EOT
31CE FFFF          M         dw      0xffff
               00238         MT_EOT
31D0 FFFF          M         dw      0xffff
               00239         MT_EOT
31D2 FFFF          M         dw      0xffff
               00240         MT_EOT
31D4 FFFF          M         dw      0xffff
               00241         MT_EOT
31D6 FFFF          M         dw      0xffff
               00242         MT_EOT
31D8 FFFF          M         dw      0xffff
               00243         MT_EOT
31DA FFFF          M         dw      0xffff
               00244         MT_EOT
31DC FFFF          M         dw      0xffff
               00245         MT_EOT
31DE FFFF          M         dw      0xffff
               00246 
               00247         ;; entry 0xb1-0xbf
               00248         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 19


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
31E0 FFFF          M         dw      0xffff
               00249         MT_EOT
31E2 FFFF          M         dw      0xffff
               00250         MT_EOT
31E4 FFFF          M         dw      0xffff
               00251         MT_EOT
31E6 FFFF          M         dw      0xffff
               00252         MT_EOT
31E8 FFFF          M         dw      0xffff
               00253         MT_EOT
31EA FFFF          M         dw      0xffff
               00254         MT_EOT
31EC FFFF          M         dw      0xffff
               00255         MT_EOT
31EE FFFF          M         dw      0xffff
               00256         MT_EOT
31F0 FFFF          M         dw      0xffff
               00257         MT_EOT
31F2 FFFF          M         dw      0xffff
               00258         MT_EOT
31F4 FFFF          M         dw      0xffff
               00259         MT_EOT
31F6 FFFF          M         dw      0xffff
               00260         MT_EOT
31F8 FFFF          M         dw      0xffff
               00261         MT_EOT
31FA FFFF          M         dw      0xffff
               00262         MT_EOT
31FC FFFF          M         dw      0xffff
               00263         MT_EOT
31FE FFFF          M         dw      0xffff
               00264 
               00265         ;; entry 0xc0-0xcf
               00266         MT_EOT
3200 FFFF          M         dw      0xffff
               00267         MT_EOT
3202 FFFF          M         dw      0xffff
               00268         MT_EOT
3204 FFFF          M         dw      0xffff
               00269         MT_EOT
3206 FFFF          M         dw      0xffff
               00270         MT_EOT
3208 FFFF          M         dw      0xffff
               00271         MT_EOT
320A FFFF          M         dw      0xffff
               00272         MT_EOT
320C FFFF          M         dw      0xffff
               00273         MT_EOT
320E FFFF          M         dw      0xffff
               00274         MT_EOT
3210 FFFF          M         dw      0xffff
               00275         MT_EOT
3212 FFFF          M         dw      0xffff
               00276         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 20


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3214 FFFF          M         dw      0xffff
               00277         MT_EOT
3216 FFFF          M         dw      0xffff
               00278         MT_EOT
3218 FFFF          M         dw      0xffff
               00279         MT_EOT
321A FFFF          M         dw      0xffff
               00280         MT_EOT
321C FFFF          M         dw      0xffff
               00281         MT_EOT
321E FFFF          M         dw      0xffff
               00282 
               00283         ;; entry 0xd0-0xdf
               00284         MT_EOT
3220 FFFF          M         dw      0xffff
               00285         MT_EOT
3222 FFFF          M         dw      0xffff
               00286         MT_EOT
3224 FFFF          M         dw      0xffff
               00287         MT_EOT
3226 FFFF          M         dw      0xffff
               00288         MT_EOT
3228 FFFF          M         dw      0xffff
               00289         MT_EOT
322A FFFF          M         dw      0xffff
               00290         MT_EOT
322C FFFF          M         dw      0xffff
               00291         MT_EOT
322E FFFF          M         dw      0xffff
               00292         MT_EOT
3230 FFFF          M         dw      0xffff
               00293         MT_EOT
3232 FFFF          M         dw      0xffff
               00294         MT_EOT
3234 FFFF          M         dw      0xffff
               00295         MT_EOT
3236 FFFF          M         dw      0xffff
               00296         MT_EOT
3238 FFFF          M         dw      0xffff
               00297         MT_EOT
323A FFFF          M         dw      0xffff
               00298         MT_EOT
323C FFFF          M         dw      0xffff
               00299         MT_EOT
323E FFFF          M         dw      0xffff
               00300 
               00301         ;; entry 0xe0-0xef
               00302         MT_EOT
3240 FFFF          M         dw      0xffff
               00303         MT_EOT
3242 FFFF          M         dw      0xffff
               00304         MT_EOT
3244 FFFF          M         dw      0xffff
               00305         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 21


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3246 FFFF          M         dw      0xffff
               00306         MT_EOT
3248 FFFF          M         dw      0xffff
               00307         MT_EOT
324A FFFF          M         dw      0xffff
               00308         MT_EOT
324C FFFF          M         dw      0xffff
               00309         MT_EOT
324E FFFF          M         dw      0xffff
               00310         MT_EOT
3250 FFFF          M         dw      0xffff
               00311         MT_EOT
3252 FFFF          M         dw      0xffff
               00312         MT_EOT
3254 FFFF          M         dw      0xffff
               00313         MT_EOT
3256 FFFF          M         dw      0xffff
               00314         MT_EOT
3258 FFFF          M         dw      0xffff
               00315         MT_EOT
325A FFFF          M         dw      0xffff
               00316         MT_EOT
325C FFFF          M         dw      0xffff
               00317         MT_EOT
325E FFFF          M         dw      0xffff
               00318 
               00319         ;; entry 0xf0-0xff
               00320         MT_EOT
3260 FFFF          M         dw      0xffff
               00321         MT_EOT
3262 FFFF          M         dw      0xffff
               00322         MT_EOT
3264 FFFF          M         dw      0xffff
               00323         MT_EOT
3266 FFFF          M         dw      0xffff
               00324         MT_EOT
3268 FFFF          M         dw      0xffff
               00325         MT_EOT
326A FFFF          M         dw      0xffff
               00326         MT_EOT
326C FFFF          M         dw      0xffff
               00327         MT_EOT
326E FFFF          M         dw      0xffff
               00328         MT_EOT
3270 FFFF          M         dw      0xffff
               00329         MT_EOT
3272 FFFF          M         dw      0xffff
               00330         MT_EOT
3274 FFFF          M         dw      0xffff
               00331         MT_EOT
3276 FFFF          M         dw      0xffff
               00332         MT_EOT
3278 FFFF          M         dw      0xffff
               00333         MT_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 22


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
327A FFFF          M         dw      0xffff
               00334         MT_EOT
327C FFFF          M         dw      0xffff
               00335         MT_EOT
327E FFFF          M         dw      0xffff
               00336 
               00337 
               00338 
               00339 ; ==========================================================================
               00340 
               00341         org     0x3280          ; never change the origin!
               00342 
               00343 ;; --------------------------------------------------------------------------
               00344 ;; In this table DIN pins have to be assigned to rotary encoders for the
               00345 ;; MIOS_ENC driver 
               00346 ;; 
               00347 ;; up to 64 entries are provided
               00348 ;; 
               00349 ;; The table must be terminated with an ENC_EOT entry. Unused entries should
               00350 ;; be filled with ENC_EOT
               00351 ;; 
               00352 ;; ENC_ENTRY provides following parameters
               00353 ;;    o first parameter: number of shift register - 1, 2, 3, ... 16
               00354 ;;    o second parameter: number of pin; since two pins are necessary
               00355 ;;      for each encoder, an even number is expected: 0, 2, 4 or 6
               00356 ;;    o the third parameter contains the encoder mode:
               00357 ;;      either MIOS_ENC_MODE_NON_DETENTED
               00358 ;;          or MIOS_ENC_MODE_DETENTED
               00359 ;;
               00360 ;; Configuration Examples:
               00361 ;;    ENC_ENTRY  1,  0,  MIOS_ENC_MODE_NON_DETENTED    ; non-detented encoder at pin 0 and 1 of SR 1
               00362 ;;    ENC_ENTRY  1,  2,  MIOS_ENC_MODE_DETENTED        ; detented encoder at pin 2 and 3 of SR 1
               00363 ;;    ENC_ENTRY  9,  6,  MIOS_ENC_MODE_NON_DETENTED    ; non-detented encoder at pin 6 and 7 of SR 9
               00364 ;; --------------------------------------------------------------------------
               00365 
               00366         ;; encoder entry structure
               00367 ENC_ENTRY MACRO sr, din_0, mode
               00368         dw      (mode << 8) | (din_0 + 8*(sr-1))
               00369         ENDM    
               00370 ENC_EOT MACRO
               00371         dw      0xffff
               00372         ENDM
               00373 
               00374         global  _MIOS_ENC_PIN_TABLE
               00375 
3280           00376 _MIOS_ENC_PIN_TABLE
3280           00377 MIOS_ENC_PIN_TABLE
               00378         ;; encoders 1-16
               00379         ;;        SR  Pin  Mode
               00380         ENC_EOT
3280 FFFF          M         dw      0xffff
               00381         ENC_EOT
3282 FFFF          M         dw      0xffff
               00382         ENC_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 23


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
3284 FFFF          M         dw      0xffff
               00383         ENC_EOT
3286 FFFF          M         dw      0xffff
               00384         ENC_EOT
3288 FFFF          M         dw      0xffff
               00385         ENC_EOT
328A FFFF          M         dw      0xffff
               00386         ENC_EOT
328C FFFF          M         dw      0xffff
               00387         ENC_EOT
328E FFFF          M         dw      0xffff
               00388         ENC_EOT
3290 FFFF          M         dw      0xffff
               00389         ENC_EOT
3292 FFFF          M         dw      0xffff
               00390         ENC_EOT
3294 FFFF          M         dw      0xffff
               00391         ENC_EOT
3296 FFFF          M         dw      0xffff
               00392         ENC_EOT
3298 FFFF          M         dw      0xffff
               00393         ENC_EOT
329A FFFF          M         dw      0xffff
               00394         ENC_EOT
329C FFFF          M         dw      0xffff
               00395         ENC_EOT
329E FFFF          M         dw      0xffff
               00396 
               00397         ;; encoders 17-32
               00398         ENC_EOT
32A0 FFFF          M         dw      0xffff
               00399         ENC_EOT
32A2 FFFF          M         dw      0xffff
               00400         ENC_EOT
32A4 FFFF          M         dw      0xffff
               00401         ENC_EOT
32A6 FFFF          M         dw      0xffff
               00402         ENC_EOT
32A8 FFFF          M         dw      0xffff
               00403         ENC_EOT
32AA FFFF          M         dw      0xffff
               00404         ENC_EOT
32AC FFFF          M         dw      0xffff
               00405         ENC_EOT
32AE FFFF          M         dw      0xffff
               00406         ENC_EOT
32B0 FFFF          M         dw      0xffff
               00407         ENC_EOT
32B2 FFFF          M         dw      0xffff
               00408         ENC_EOT
32B4 FFFF          M         dw      0xffff
               00409         ENC_EOT
32B6 FFFF          M         dw      0xffff
               00410         ENC_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 24


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
32B8 FFFF          M         dw      0xffff
               00411         ENC_EOT
32BA FFFF          M         dw      0xffff
               00412         ENC_EOT
32BC FFFF          M         dw      0xffff
               00413         ENC_EOT
32BE FFFF          M         dw      0xffff
               00414 
               00415         ;; encoders 33-48
               00416         ENC_EOT
32C0 FFFF          M         dw      0xffff
               00417         ENC_EOT
32C2 FFFF          M         dw      0xffff
               00418         ENC_EOT
32C4 FFFF          M         dw      0xffff
               00419         ENC_EOT
32C6 FFFF          M         dw      0xffff
               00420         ENC_EOT
32C8 FFFF          M         dw      0xffff
               00421         ENC_EOT
32CA FFFF          M         dw      0xffff
               00422         ENC_EOT
32CC FFFF          M         dw      0xffff
               00423         ENC_EOT
32CE FFFF          M         dw      0xffff
               00424         ENC_EOT
32D0 FFFF          M         dw      0xffff
               00425         ENC_EOT
32D2 FFFF          M         dw      0xffff
               00426         ENC_EOT
32D4 FFFF          M         dw      0xffff
               00427         ENC_EOT
32D6 FFFF          M         dw      0xffff
               00428         ENC_EOT
32D8 FFFF          M         dw      0xffff
               00429         ENC_EOT
32DA FFFF          M         dw      0xffff
               00430         ENC_EOT
32DC FFFF          M         dw      0xffff
               00431         ENC_EOT
32DE FFFF          M         dw      0xffff
               00432 
               00433         ;; encoders 49-64
               00434         ENC_EOT
32E0 FFFF          M         dw      0xffff
               00435         ENC_EOT
32E2 FFFF          M         dw      0xffff
               00436         ENC_EOT
32E4 FFFF          M         dw      0xffff
               00437         ENC_EOT
32E6 FFFF          M         dw      0xffff
               00438         ENC_EOT
32E8 FFFF          M         dw      0xffff
               00439         ENC_EOT
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 25


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
32EA FFFF          M         dw      0xffff
               00440         ENC_EOT
32EC FFFF          M         dw      0xffff
               00441         ENC_EOT
32EE FFFF          M         dw      0xffff
               00442         ENC_EOT
32F0 FFFF          M         dw      0xffff
               00443         ENC_EOT
32F2 FFFF          M         dw      0xffff
               00444         ENC_EOT
32F4 FFFF          M         dw      0xffff
               00445         ENC_EOT
32F6 FFFF          M         dw      0xffff
               00446         ENC_EOT
32F8 FFFF          M         dw      0xffff
               00447         ENC_EOT
32FA FFFF          M         dw      0xffff
               00448         ENC_EOT
32FC FFFF          M         dw      0xffff
               00449         ENC_EOT
32FE FFFF          M         dw      0xffff
               00450 
               00451         org     0x3300          ; never change the origin!
               00037 
               00038 ;; ---[ Custom LCD driver ]---
               00039 #include "app_lcd.inc"
               00001 ;
               00002 ; MIOS Custom LCD Driver Skeleton
               00003 ;
               00004 ; ==========================================================================
               00005 ;
               00006 ;  Copyright 1998-2006 Thorsten Klose (tk@midibox.org)
               00007 ;  Licensed for personal non-commercial use only.
               00008 ;  All other rights reserved.
               00009 ; 
               00010 ; ==========================================================================
               00011 
               00012 ;; --------------------------------------------------------------------------
               00013 ;;  Following system variables are given by MIOS and can be directly 
               00014 ;;  accessed by the driver. The addresses are defined in mios.h and
               00015 ;;  should not be changed
               00016 ;; 
               00017 ;;  MIOS_GLCD_BUFFER         a 8 byte buffer for data transfers
               00018 ;;  MIOS_LCD_OPTION1         contains the first LCD option given by MIOS_LCD_TypeSet
               00019 ;;  MIOS_LCD_OPTION2         contains the second LCD option given by MIOS_LCD_TypeSet
               00020 ;;  MIOS_LCD_CURSOR_POS      the current cursor pos of characters (GLCD: multiplied by width)
               00021 ;;  MIOS_GLCD_GCURSOR_X      for GLCDs: the current X position of graphical cursor
               00022 ;;  MIOS_GLCD_GCURSOR_Y      for GLCDs: the current Y position of graphical cursor
               00023 ;;  MIOS_GLCD_FONT_WIDTH     for GLCDs: the fontwidth given by MIOS_GLCD_FontInit
               00024 ;;  MIOS_GLCD_FONT_HEIGHT    for GLCDs: the fontheight given by MIOS_GLCD_FontInit
               00025 ;;  MIOS_GLCD_FONT_X0        for GLCDs: the first byte within a char entry
               00026 ;;  MIOS_GLCD_FONT_OFFSET    for GLCDs: the byte offset between the characters
               00027 ;;  MIOS_GLCD_FONT_PTRL      for GLCDs: pointer to the character table, low-byte
               00028 ;;  MIOS_GLCD_FONT_PTRH      for GLCDs: pointer to the character table, high-byte
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 26


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00029 ;;  MIOS_LCD_TIMEOUT0        can be used for timeout loops
               00030 ;;  MIOS_LCD_TIMEOUT1        can be used for timeout loops
               00031 ;;  MIOS_GLCD_TMP1           can be used as temporary buffer
               00032 ;;  MIOS_GLCD_TMP2           can be used as temporary buffer
               00033 ;;  MIOS_GLCD_TMP3           can be used as temporary buffer
               00034 ;;  MIOS_GLCD_TMP4           can be used as temporary buffer
               00035 ;;  MIOS_LCD_Y0_OFFSET       Y0 offset of LCD
               00036 ;;  MIOS_LCD_Y1_OFFSET       Y1 offset of LCD
               00037 ;;  MIOS_LCD_Y2_OFFSET       Y2 offset of LCD
               00038 ;;  MIOS_LCD_Y3_OFFSET       Y3 offset of LCD
               00039 ;;  MIOS_LCD_CURSOR_POS_REAL unmapped cursor position which has been set with MIOS_LCD_CursorSet
               00040 ;; 
               00041 ;;  Note: the addresses are located in an upper bank and therefore have to
               00042 ;;        be accessed with the BANKED flag. Also the BSR has to be justified
               00043 ;;        before using the registers
               00044 ;;  Example:
               00045 ;;      SET_BSR MIOS_LCD_OPTION1        ; sets BSR to the bank where MIOS_LCD_*
               00046 ;;                                      ; has been located. You don't need to
               00047 ;;                                      ; change the BSR for the other LCD registers
               00048 ;;      movf    MIOS_LCD_OPTION1, W, BANKED     ; get LCD option #1
               00049 ;; 
               00050 ;;  Important: to allow a proper interaction with MIOS applications, you are
               00051 ;;  only allowed to modify MIOS_PARAMETER[123], the mutliplication registers
               00052 ;;  and FSR1. You are not allowed to change TMP[1-5] or FSR0
               00053 ;;  if you need some temporary registers, use the given addresses above or
               00054 ;;  locate them to addresses which are not used by the application
               00055 ;; --------------------------------------------------------------------------
               00056         
               00057 ;; --------------------------------------------------------------------------
               00058 ;;  This function is called by MIOS when the custom LCD should be initialized
               00059 ;;  In:  MIOS_LCD_OPTION1 - contains the first LCD option given by MIOS_LCD_TypeSet
               00060 ;;       MIOS_LCD_OPTION2 - contains the second LCD option given by MIOS_LCD_TypeSet
               00061 ;;  Out: -
               00062 ;; --------------------------------------------------------------------------
3300           00063 USER_LCD_Init
3300 0012      00064         return
               00065 
               00066 ;; --------------------------------------------------------------------------
               00067 ;;  This function is called by MIOS when the custom LCD should be cleared
               00068 ;;  In:  MIOS_LCD_OPTION1 - contains the first LCD option given by MIOS_LCD_TypeSet
               00069 ;;       MIOS_LCD_OPTION2 - contains the second LCD option given by MIOS_LCD_TypeSet
               00070 ;;  Out: -
               00071 ;; --------------------------------------------------------------------------
3302           00072 USER_LCD_Clear
3302 0012      00073         return
               00074 
               00075 ;; --------------------------------------------------------------------------
               00076 ;;  This function is called by MIOS when the cursor should be changed
               00077 ;;  In:  MIOS_LCD_OPTION1 - contains the first LCD option given by MIOS_LCD_TypeSet
               00078 ;;       MIOS_LCD_OPTION2 - contains the second LCD option given by MIOS_LCD_TypeSet
               00079 ;;       MIOS_GLCD_CURSOR_X - horizontal cursor position (for GLCDs)
               00080 ;;       MIOS_GLCD_CURSOR_X - vertical cursor position   (for GLCDs)
               00081 ;;       MIOS_LCD_CURSOR    - character cursor position  (for CLCDs)
               00082 ;;  Out: -
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 27


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00083 ;; --------------------------------------------------------------------------
3304           00084 USER_LCD_CursorSet
3304 0012      00085         return
               00086 
               00087 ;; --------------------------------------------------------------------------
               00088 ;;  This function is called by MIOS when a character should be print
               00089 ;;  In:  WREG - character
               00090 ;;       all other MIOS_*LCD_* registers
               00091 ;;  Out: GLCDs should justify the X/Y cursor position
               00092 ;; --------------------------------------------------------------------------
3306           00093 USER_LCD_PrintChar
3306 0012      00094         return
               00095 
               00096 ;; --------------------------------------------------------------------------
               00097 ;;  FUNCTION: USER_LCD_Data
               00098 ;;  DESCRIPTION: sends a data value to the LCD display.<BR>
               00099 ;;  On CLCDs: branch directly to USER_LCD_PrintChar<BR>
               00100 ;;  On GLCDs: ignore this function!
               00101 ;;  IN:  data which should be sent
               00102 ;;  OUT: -
               00103 ;;  NOTE: see the custom_lcd_example for further details
               00104 ;; --------------------------------------------------------------------------
3308           00105 USER_LCD_Data
3308 0012      00106         return
               00107 
               00108 ;; --------------------------------------------------------------------------
               00109 ;;  FUNCTION: USER_LCD_Cmd
               00110 ;;  DESCRIPTION: sends a command to the LCD display.<BR>
               00111 ;;  On CLCDs: use this function to decode the HD44780 commands if required<BR>
               00112 ;;  On GLCDs: ignore this function!
               00113 ;;  IN:  command which should be sent
               00114 ;;  OUT: -
               00115 ;;  NOTE: see the custom_lcd_example for further details
               00116 ;; --------------------------------------------------------------------------
330A           00117 USER_LCD_Cmd
330A 0012      00118         return
               00119 
               00120 ;; --------------------------------------------------------------------------
               00121 ;;  FUNCTION: USER_LCD_SpecialCharInit
               00122 ;;  DESCRIPTION: see MIOS_CLCD_SpecialCharInit
               00123 ;;  IN:  number of special character (0-7) in WREG
               00124 ;;       pointer to special char pattern in TBLPTR (consists of 8
               00125 ;;          entries for every character-line)
               00126 ;;  OUT: TBLPTR has to be set to next table entry (TBLPTR+=8)
               00127 ;;  NOTE: see the custom_lcd_example for further details
               00128 ;; --------------------------------------------------------------------------
330C           00129 USER_LCD_SpecialCharInit
330C 0012      00130         return
               00040 
               00041 ; Don't enable this --- its only used by a special testcase which checks 
               00042 ; parameter passing on functions which are difficult to verify with
               00043 ; directed tests
               00044 #ifndef PARAMETER_PASSING_TEST
               00045 #define PARAMETER_PASSING_TEST 0
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 28


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00046 #endif
               00047 
               00048 ;; ==========================================================================
               00049 ;;  Export MIOS variables
               00050 ;; ==========================================================================
               00051         global  _MIOS_BOX_CFG0
               00052         global  _MIOS_BOX_CFG1
               00053         global  _MIOS_BOX_STAT
               00054         global  _MIOS_PARAMETER1
               00055         global  _MIOS_PARAMETER2
               00056         global  _MIOS_PARAMETER3
               00057 
               00058 MIOS_VARIABLES          udata   0x0000
               00059 _MIOS_BOX_CFG0          res     1
               00060 _MIOS_BOX_CFG1          res     1
               00061 _MIOS_BOX_STAT          res     1
               00062 _MIOS_PARAMETER1        res     1
               00063 _MIOS_PARAMETER2        res     1
               00064 _MIOS_PARAMETER3        res     1
               00065 _TMP1                   res     1
               00066 _TMP2                   res     1
               00067 _TMP3                   res     1
               00068 _TMP4                   res     1
               00069 _TMP5                   res     1
               00070 _IRQ_TMP1               res     1
               00071 _IRQ_TMP2               res     1
               00072 _IRQ_TMP3               res     1
               00073 _IRQ_TMP4               res     1
               00074 _IRQ_TMP5               res     1
               00075 
               00076 ;; ==========================================================================
               00077 ;;  All MIOS hooks in one file
               00078 ;; ==========================================================================
               00079 
               00080 MIOS_WRAPPER_CODE       code
               00081 
               00082 ;; --------------------------------------------------------------------------
               00083 ;;  This function is called by MIOS after startup to initialize the 
               00084 ;;  application
               00085 ;; --------------------------------------------------------------------------
0000           00086 USER_Init
               00087         extern  _Init
               00088 
0000 EE03 F07F 00089         lfsr    FSR0, STACK_HEAD        ; initialize stack
0004 EE23 F07F 00090         lfsr    FSR2, STACK_HEAD
0008 EF00 F000 00091         goto    _Init   
               00092 
               00093 
               00094 ;; --------------------------------------------------------------------------
               00095 ;;  This function is called by MIOS in the mainloop when nothing else is to do
               00096 ;; --------------------------------------------------------------------------
000C           00097 USER_Tick
               00098         extern  _Tick
               00099 
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 29


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
000C EE03 F07F 00100         lfsr    FSR0, STACK_HEAD        ; initialize stack
0010 EE23 F07F 00101         lfsr    FSR2, STACK_HEAD
0014 EF00 F000 00102         goto    _Tick
               00103 
               00104 
               00105 ;; --------------------------------------------------------------------------
               00106 ;;  This function is periodically called by MIOS. The frequency has to be
               00107 ;;  initialized with MIOS_Timer_Set
               00108 ;;  Note that this is an interrupt service routine! Use FSR2 instead of FSR0
               00109 ;;  and IRQ_TMPx instead of TMPx -- and make the routine as fast as possible!
               00110 ;; --------------------------------------------------------------------------
0018           00111 USER_Timer
               00112         extern  _Timer
               00113 
0018 EE23 F03F 00114         lfsr    FSR2, STACK_IRQ_HEAD    ; initialize IRQ stack
001C CFE9 FFDD 00115         movff   FSR0L, POSTDEC2         ; save FSR0[LH] on IRQ stack
0020 CFEA FFDD 00116         movff   FSR0H, POSTDEC2
0024 EE03 F03D 00117         lfsr    FSR0, STACK_IRQ_HEAD-2  ; write stack pointer also to FSR0
0028 EC00 F000 00118         call    _Timer                  ; call C hook
002C C33F FFE9 00119         movff   STACK_IRQ_HEAD-0, FSR0L ; restore FSR0[LH] directly from memory (more fail save)
0030 C33E FFEA 00120         movff   STACK_IRQ_HEAD-1, FSR0H ; restore FSR0[LH] directly from memory (more fail save)
0034 0012      00121         return
               00122 
               00123 
               00124 ;; --------------------------------------------------------------------------
               00125 ;;  This function is called by MIOS when a debug command has been received
               00126 ;;  via SysEx
               00127 ;;  Input:
               00128 ;;     o WREG, MIOS_PARAMETER1, MIOS_PARAMETER2, MIOS_PARAMETER3 like
               00129 ;;       specified in the debug command
               00130 ;;  Output:
               00131 ;;     o return values WREG, MIOS_PARAMETER1, MIOS_PARAMETER2, MIOS_PARAMETER3
               00132 ;; --------------------------------------------------------------------------
0036           00133 USER_MPROC_DebugTrigger
               00134         ;; not really required for C programs
0036 0012      00135         return
               00136 
               00137 
               00138 ;; --------------------------------------------------------------------------
               00139 ;;  This function is called by MIOS when the display content should be 
               00140 ;;  initialized. Thats the case during startup and after a temporary message
               00141 ;;  has been printed on the screen
               00142 ;; --------------------------------------------------------------------------
0038           00143 USER_DISPLAY_Init
               00144         extern  _DISPLAY_Init
               00145 
0038 EE03 F07F 00146         lfsr    FSR0, STACK_HEAD        ; initialize stack
003C EE23 F07F 00147         lfsr    FSR2, STACK_HEAD
0040 EF00 F000 00148         goto    _DISPLAY_Init
               00149 
               00150 ;; --------------------------------------------------------------------------
               00151 ;;  This function is called in the mainloop when no temporary message is shown
               00152 ;;  on screen. Print the realtime messages here
               00153 ;; --------------------------------------------------------------------------
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 30


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0044           00154 USER_DISPLAY_Tick
               00155         extern  _DISPLAY_Tick
               00156 
0044 EE03 F07F 00157         lfsr    FSR0, STACK_HEAD        ; initialize stack
0048 EE23 F07F 00158         lfsr    FSR2, STACK_HEAD
004C EF00 F000 00159         goto    _DISPLAY_Tick
               00160 
               00161 
               00162 ;; --------------------------------------------------------------------------
               00163 ;;  This function is called by MIOS when a complete MIDI event has been received
               00164 ;;  Input:
               00165 ;;     o first  MIDI event byte in MIOS_PARAMETER1
               00166 ;;     o second MIDI event byte in MIOS_PARAMETER2
               00167 ;;     o third  MIDI event byte in MIOS_PARAMETER3
               00168 ;; --------------------------------------------------------------------------
0050           00169 USER_MPROC_NotifyReceivedEvent
               00170         extern  _MPROC_NotifyReceivedEvnt
               00171 
0050 EE03 F07F 00172         lfsr    FSR0, STACK_HEAD        ; initialize stack
0054 EE23 F07F 00173         lfsr    FSR2, STACK_HEAD
               00174 
0058 C005 FFED 00175         movff   MIOS_PARAMETER3, POSTDEC0
005C C004 FFED 00176         movff   MIOS_PARAMETER2, POSTDEC0
0060 5003      00177         movf    MIOS_PARAMETER1, W
0062 EF00 F000 00178         goto    _MPROC_NotifyReceivedEvnt
               00179 
               00180 
               00181 ;; --------------------------------------------------------------------------
               00182 ;;  This function is called by MIOS when a MIDI event has been received
               00183 ;;  which has been specified in the CONFIG_MIDI_IN table
               00184 ;;  Input:
               00185 ;;     o number of entry in WREG
               00186 ;;     o first  MIDI event byte in MIOS_PARAMETER1
               00187 ;;     o second MIDI event byte in MIOS_PARAMETER2
               00188 ;;     o third  MIDI event byte in MIOS_PARAMETER3
               00189 ;; --------------------------------------------------------------------------
0066           00190 USER_MPROC_NotifyFoundEvent
               00191         extern  _MPROC_NotifyFoundEvent
               00192 
0066 EE03 F07F 00193         lfsr    FSR0, STACK_HEAD        ; initialize stack
006A EE23 F07F 00194         lfsr    FSR2, STACK_HEAD
               00195 
006E C005 FFED 00196         movff   MIOS_PARAMETER3, POSTDEC0
0072 C004 FFED 00197         movff   MIOS_PARAMETER2, POSTDEC0
0076 C003 FFED 00198         movff   MIOS_PARAMETER1, POSTDEC0
007A 6EED      00199         movwf   POSTDEC0                ; TK: required for SDCC 2.5.0, don't know why...
               00200         ;; entry number still in wreg
007C EF00 F000 00201         goto    _MPROC_NotifyFoundEvent
               00202 
               00203 
               00204 ;; --------------------------------------------------------------------------
               00205 ;;  This function is called by MIOS when a MIDI event has not been completly
               00206 ;;  received within 2 seconds
               00207 ;; --------------------------------------------------------------------------
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 31


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0080           00208 USER_MPROC_NotifyTimeout
               00209         extern  _MPROC_NotifyTimeout
               00210 
0080 EE03 F07F 00211         lfsr    FSR0, STACK_HEAD        ; initialize stack
0084 EE23 F07F 00212         lfsr    FSR2, STACK_HEAD
0088 EF00 F000 00213         goto    _MPROC_NotifyTimeout
               00214 
               00215 
               00216 ;; --------------------------------------------------------------------------
               00217 ;;  This function is called by MIOS when a MIDI byte has been received
               00218 ;;  Input:
               00219 ;;     o received MIDI byte in WREG and MIOS_PARAMETER1
               00220 ;; --------------------------------------------------------------------------
008C           00221 USER_MPROC_NotifyReceivedByte
               00222         extern  _MPROC_NotifyReceivedByte
               00223 
008C EE03 F07F 00224         lfsr    FSR0, STACK_HEAD        ; initialize stack
0090 EE23 F07F 00225         lfsr    FSR2, STACK_HEAD
               00226 
               00227         ;; MIDI byte still in WREG
0094 EF00 F000 00228         goto    _MPROC_NotifyReceivedByte
               00229 
               00230 ;; --------------------------------------------------------------------------
               00231 ;;  This function is called by MIOS before the transfer of a MIDI byte. 
               00232 ;;  It can be used to monitor the Tx activity or to do any other actions
               00233 ;;  (e.g. to switch a pin for multiplexed MIDI Outs) before the byte will 
               00234 ;;  be sent.
               00235 ;;  Note that this is an interrupt service routine! Use FSR2 instead of FSR0
               00236 ;;  and IRQ_TMPx instead of TMPx -- and make the routine as fast as possible!
               00237 ;;  Input:
               00238 ;;     o transmitted byte in WREG
               00239 ;; --------------------------------------------------------------------------
0098           00240 USER_MIDI_NotifyTx
               00241         ;; too time consuming for C programs --- should be handled so fast as
               00242         ;; possible and therefore serviced in assembler
0098 0012      00243         return
               00244 
               00245 ;; --------------------------------------------------------------------------
               00246 ;;  This function is called by MIOS when a MIDI byte has been received.
               00247 ;;  It can be used to monitor the Rx activity or to do any action - e.g.
               00248 ;;  to react on realtime events like MIDI clock (0xf8) with a minimum latency
               00249 ;;  Note that this is an interrupt service routine! Use FSR2 instead of FSR0
               00250 ;;  and IRQ_TMPx instead of TMPx -- and make the routine as fast as possible!
               00251 ;;  Input:
               00252 ;;     o received byte in WREG
               00253 ;; --------------------------------------------------------------------------
009A           00254 USER_MIDI_NotifyRx
               00255         ;; too time consuming for C programs --- should be handled so fast as
               00256         ;; possible and therefore serviced in assembler
009A 0012      00257         return
               00258 
               00259 ;; --------------------------------------------------------------------------
               00260 ;;  This function is called by MIOS when an button has been toggled
               00261 ;;  Input:
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 32


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00262 ;;     o Button number in WREG and MIOS_PARAMETER1
               00263 ;;     o Button value MIOS_PARAMETER2:
               00264 ;;       - 1 if button has been released (=5V)
               00265 ;;       - 0 if button has been pressed (=0V)
               00266 ;; --------------------------------------------------------------------------
009C           00267 USER_DIN_NotifyToggle
               00268         extern  _DIN_NotifyToggle
               00269 
009C EE03 F07F 00270         lfsr    FSR0, STACK_HEAD        ; initialize stack
00A0 EE23 F07F 00271         lfsr    FSR2, STACK_HEAD
               00272 
00A4 C004 FFED 00273         movff   MIOS_PARAMETER2, POSTDEC0
               00274         ;; button number still in WREG
00A8 EF00 F000 00275         goto    _DIN_NotifyToggle
               00276 
               00277 
               00278 ;; --------------------------------------------------------------------------
               00279 ;;  This function is called by MIOS when an encoder has been moved
               00280 ;;  Input:
               00281 ;;     o Encoder number in WREG and MIOS_PARAMETER1
               00282 ;;     o signed incrementer value in MIOS_PARAMETER2:
               00283 ;;       - is positive when encoder has been turned clockwise
               00284 ;;       - is negative when encoder has been turned counter clockwise
               00285 ;; --------------------------------------------------------------------------
00AC           00286 USER_ENC_NotifyChange
               00287         extern  _ENC_NotifyChange
               00288 
00AC EE03 F07F 00289         lfsr    FSR0, STACK_HEAD        ; initialize stack
00B0 EE23 F07F 00290         lfsr    FSR2, STACK_HEAD
               00291 
00B4 C004 FFED 00292         movff   MIOS_PARAMETER2, POSTDEC0
               00293         ;; encoder number still in WREG
00B8 EF00 F000 00294         goto    _ENC_NotifyChange
               00295 
               00296 
               00297 ;; --------------------------------------------------------------------------
               00298 ;;  This function is called by MIOS before the shift register are loaded
               00299 ;;  Note that this is an interrupt service routine! Use FSR2 instead of FSR0
               00300 ;;  and IRQ_TMPx instead of TMPx -- and make the routine as fast as possible
               00301 ;; --------------------------------------------------------------------------
00BC           00302 USER_SR_Service_Prepare
               00303         extern  _SR_Service_Prepare
               00304 
00BC EE23 F03F 00305         lfsr    FSR2, STACK_IRQ_HEAD    ; initialize IRQ stack
00C0 CFE9 FFDD 00306         movff   FSR0L, POSTDEC2         ; save FSR0[LH] on IRQ stack
00C4 CFEA FFDD 00307         movff   FSR0H, POSTDEC2
00C8 EE03 F03D 00308         lfsr    FSR0, STACK_IRQ_HEAD-2  ; write stack pointer also to FSR0
00CC EC00 F000 00309         call    _SR_Service_Prepare     ; call C hook
00D0 C33F FFE9 00310         movff   STACK_IRQ_HEAD-0, FSR0L ; restore FSR0[LH] directly from memory (more fail save)
00D4 C33E FFEA 00311         movff   STACK_IRQ_HEAD-1, FSR0H ; restore FSR0[LH] directly from memory (more fail save)
00D8 0012      00312         return
               00313 
               00314 
               00315 ;; --------------------------------------------------------------------------
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 33


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00316 ;;  This function is called by MIOS after the shift register have been loaded
               00317 ;;  Note that this is an interrupt service routine! Use FSR2 instead of FSR0
               00318 ;;  and IRQ_TMPx instead of TMPx -- and make the routine as fast as possible
               00319 ;; --------------------------------------------------------------------------
00DA           00320 USER_SR_Service_Finish
               00321         extern  _SR_Service_Finish
               00322 
00DA EE23 F03F 00323         lfsr    FSR2, STACK_IRQ_HEAD    ; initialize IRQ stack
00DE CFE9 FFDD 00324         movff   FSR0L, POSTDEC2         ; save FSR0[LH] on IRQ stack
00E2 CFEA FFDD 00325         movff   FSR0H, POSTDEC2
00E6 EE03 F03D 00326         lfsr    FSR0, STACK_IRQ_HEAD-2  ; write stack pointer also to FSR0
00EA EC00 F000 00327         call    _SR_Service_Finish      ; call C hook
00EE C33F FFE9 00328         movff   STACK_IRQ_HEAD-0, FSR0L ; restore FSR0[LH] directly from memory (more fail save)
00F2 C33E FFEA 00329         movff   STACK_IRQ_HEAD-1, FSR0H ; restore FSR0[LH] directly from memory (more fail save)
00F6 0012      00330         return
               00331 
               00332 ;; --------------------------------------------------------------------------
               00333 ;;  This function is called by MIOS when a pot has been moved
               00334 ;;  Input:
               00335 ;;     o Pot number in WREG and MIOS_PARAMETER1
               00336 ;;     o LSB value in MIOS_PARAMETER2
               00337 ;;     o MSB value in MIOS_PARAMETER3
               00338 ;; --------------------------------------------------------------------------
00F8           00339 USER_AIN_NotifyChange
               00340         extern  _AIN_NotifyChange
               00341 
00F8 EE03 F07F 00342         lfsr    FSR0, STACK_HEAD        ; initialize stack
00FC EE23 F07F 00343         lfsr    FSR2, STACK_HEAD
               00344 
0100 C005 FFED 00345         movff   MIOS_PARAMETER3, POSTDEC0
0104 C004 FFED 00346         movff   MIOS_PARAMETER2, POSTDEC0
               00347         ;; pot number still in WREG
0108 EF00 F000 00348         goto    _AIN_NotifyChange
               00349 
               00350 
               00351 
               00352 ;; --------------------------------------------------------------------------
               00353 ;; ==========================================================================
               00354 ;;  LINKS TO THE MIOS FUNCTIONS
               00355 ;; ==========================================================================
               00356 ;; --------------------------------------------------------------------------
               00357 
               00358 .MIOS_MIDI_BeginStream code MIOS_MIDI_BeginStream
2C00           00359 _MIOS_MIDI_BeginStream
               00360         global  _MIOS_MIDI_BeginStream
               00361 
               00362 ;; --------------------------------------------------------------------------
               00363 .MIOS_MIDI_DeviceIDAutoSet code MIOS_MIDI_DeviceIDAutoSet
2C04           00364 _MIOS_MIDI_DeviceIDAutoSet
               00365         global  _MIOS_MIDI_DeviceIDAutoSet
               00366 
               00367 ;; --------------------------------------------------------------------------
               00368 .MIOS_MIDI_DeviceIDGet code MIOS_MIDI_DeviceIDGet
2C08           00369 _MIOS_MIDI_DeviceIDGet
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 34


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00370         global  _MIOS_MIDI_DeviceIDGet
               00371 
               00372 ;; --------------------------------------------------------------------------
               00373 .MIOS_MIDI_DeviceIDSet code MIOS_MIDI_DeviceIDSet
2C0C           00374 _MIOS_MIDI_DeviceIDSet
               00375         global  _MIOS_MIDI_DeviceIDSet
               00376 
               00377 ;; --------------------------------------------------------------------------
               00378 .MIOS_MIDI_EndStream code MIOS_MIDI_EndStream
2C10           00379 _MIOS_MIDI_EndStream
               00380         global  _MIOS_MIDI_EndStream
               00381 
               00382 ;; --------------------------------------------------------------------------
               00383 .MIOS_MIDI_Init code MIOS_MIDI_Init
2C14           00384 _MIOS_MIDI_Init
               00385         global  _MIOS_MIDI_Init
               00386 
               00387 ;; --------------------------------------------------------------------------
               00388 .MIOS_MIDI_InterfaceAutoSet code MIOS_MIDI_InterfaceAutoSet
2C18           00389 _MIOS_MIDI_InterfaceAutoSet
               00390         global  _MIOS_MIDI_InterfaceAutoSet
               00391 
               00392 ;; --------------------------------------------------------------------------
               00393 .MIOS_MIDI_InterfaceGet code MIOS_MIDI_InterfaceGet
2C1C           00394 _MIOS_MIDI_InterfaceGet
               00395         global  _MIOS_MIDI_InterfaceGet
               00396 
               00397 ;; --------------------------------------------------------------------------
               00398 .MIOS_MIDI_InterfaceSet code MIOS_MIDI_InterfaceSet
2C20           00399 _MIOS_MIDI_InterfaceSet
               00400         global  _MIOS_MIDI_InterfaceSet
               00401 
               00402 ;; --------------------------------------------------------------------------
               00403 .MIOS_MIDI_MergerGet code MIOS_MIDI_MergerGet
2C24           00404 _MIOS_MIDI_MergerGet
               00405         global  _MIOS_MIDI_MergerGet
               00406 
               00407 ;; --------------------------------------------------------------------------
               00408 .MIOS_MIDI_MergerSet code MIOS_MIDI_MergerSet
2C28           00409 _MIOS_MIDI_MergerSet
               00410         global  _MIOS_MIDI_MergerSet
               00411 
               00412 ;; --------------------------------------------------------------------------
               00413 .MIOS_MIDI_RxBufferFree code MIOS_MIDI_RxBufferFree
2C2C           00414 _MIOS_MIDI_RxBufferFree
               00415         global  _MIOS_MIDI_RxBufferFree
               00416 
               00417 ;; --------------------------------------------------------------------------
               00418 .MIOS_MIDI_RxBufferGet code MIOS_MIDI_RxBufferGet
2C30           00419 _MIOS_MIDI_RxBufferGet
               00420         global  _MIOS_MIDI_RxBufferGet
               00421 
               00422 ;; --------------------------------------------------------------------------
               00423 .MIOS_MIDI_RxBufferPut code MIOS_MIDI_RxBufferPut
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 35


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
2C34           00424 _MIOS_MIDI_RxBufferPut
               00425         global  _MIOS_MIDI_RxBufferPut
               00426 
               00427 ;; --------------------------------------------------------------------------
               00428 .MIOS_MIDI_RxBufferUsed code MIOS_MIDI_RxBufferUsed
2C38           00429 _MIOS_MIDI_RxBufferUsed
               00430         global  _MIOS_MIDI_RxBufferUsed
               00431 
               00432 ;; --------------------------------------------------------------------------
               00433 .MIOS_MIDI_TxBufferFlush code MIOS_MIDI_TxBufferFlush
2C3C           00434 _MIOS_MIDI_TxBufferFlush
               00435         global  _MIOS_MIDI_TxBufferFlush
               00436 
               00437 ;; --------------------------------------------------------------------------
               00438 .MIOS_MIDI_TxBufferFree code MIOS_MIDI_TxBufferFree
2C40           00439 _MIOS_MIDI_TxBufferFree
               00440         global  _MIOS_MIDI_TxBufferFree
               00441 
               00442 ;; --------------------------------------------------------------------------
               00443 .MIOS_MIDI_TxBufferGet code MIOS_MIDI_TxBufferGet
2C44           00444 _MIOS_MIDI_TxBufferGet
               00445         global  _MIOS_MIDI_TxBufferGet
               00446 
               00447 ;; --------------------------------------------------------------------------
               00448 .MIOS_MIDI_TxBufferPut code MIOS_MIDI_TxBufferPut
2C48           00449 _MIOS_MIDI_TxBufferPut
               00450         global  _MIOS_MIDI_TxBufferPut
               00451 
               00452 ;; --------------------------------------------------------------------------
               00453 .MIOS_MIDI_TxBufferUsed code MIOS_MIDI_TxBufferUsed
2C4C           00454 _MIOS_MIDI_TxBufferUsed
               00455         global  _MIOS_MIDI_TxBufferUsed
               00456 
               00457 ;; --------------------------------------------------------------------------
               00458 .MIOS_MPROC_MergerDisable code MIOS_MPROC_MergerDisable
2C50           00459 _MIOS_MPROC_MergerDisable
               00460         global  _MIOS_MPROC_MergerDisable
               00461 
               00462 ;; --------------------------------------------------------------------------
               00463 .MIOS_MPROC_MergerEnable code MIOS_MPROC_MergerEnable
2C54           00464 _MIOS_MPROC_MergerEnable
               00465         global  _MIOS_MPROC_MergerEnable
               00466 
               00467 ;; --------------------------------------------------------------------------
               00468 .MIOS_MPROC_MergerGet code MIOS_MPROC_MergerGet
2C58           00469 _MIOS_MPROC_MergerGet
               00470         global  _MIOS_MPROC_MergerGet
               00471 
               00472 ;; --------------------------------------------------------------------------
               00473 .MIOS_AIN_DeadbandGet code MIOS_AIN_DeadbandGet
2C5C           00474 _MIOS_AIN_DeadbandGet
               00475         global  _MIOS_AIN_DeadbandGet
               00476 
               00477 ;; --------------------------------------------------------------------------
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 36


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00478 .MIOS_AIN_DeadbandSet code MIOS_AIN_DeadbandSet
2C60           00479 _MIOS_AIN_DeadbandSet
               00480         global  _MIOS_AIN_DeadbandSet
               00481 
               00482 ;; --------------------------------------------------------------------------
               00483 .MIOS_AIN_Muxed code MIOS_AIN_Muxed
2C64           00484 _MIOS_AIN_Muxed
               00485         global  _MIOS_AIN_Muxed
               00486 
               00487 ;; --------------------------------------------------------------------------
               00488 .MIOS_AIN_NumberGet code MIOS_AIN_NumberGet
2C68           00489 _MIOS_AIN_NumberGet
               00490         global  _MIOS_AIN_NumberGet
               00491 
               00492 ;; --------------------------------------------------------------------------
               00493 .MIOS_AIN_NumberSet code MIOS_AIN_NumberSet
2C6C           00494 _MIOS_AIN_NumberSet
               00495         global  _MIOS_AIN_NumberSet
               00496 
               00497 ;; --------------------------------------------------------------------------
               00498 .MIOS_AIN_Pin7bitGet code MIOS_AIN_Pin7bitGet
2C70           00499 _MIOS_AIN_Pin7bitGet
               00500         global  _MIOS_AIN_Pin7bitGet
               00501 
               00502 ;; --------------------------------------------------------------------------
               00503 .MIOS_AIN_PinGet code
0000           00504 _MIOS_AIN_PinGet
               00505         global  _MIOS_AIN_PinGet
               00506 
0000 EC3A F016 00507         call    MIOS_AIN_PinGet
0004 C004 FFF3 00508         movff   MIOS_PARAMETER2, PRODL  ; high byte -> PRODL
0008 0012      00509         return                          ; low byte already in WREG
               00510 
               00511 ;; --------------------------------------------------------------------------
               00512 .MIOS_AIN_PinLSBGet code MIOS_AIN_PinLSBGet
2C78           00513 _MIOS_AIN_PinLSBGet
               00514         global  _MIOS_AIN_PinLSBGet
               00515 
               00516 ;; --------------------------------------------------------------------------
               00517 .MIOS_AIN_PinMSBGet code MIOS_AIN_PinMSBGet
2C7C           00518 _MIOS_AIN_PinMSBGet
               00519         global  _MIOS_AIN_PinMSBGet
               00520 
               00521 ;; --------------------------------------------------------------------------
               00522 .MIOS_AIN_UnMuxed code MIOS_AIN_UnMuxed
2C80           00523 _MIOS_AIN_UnMuxed
               00524         global  _MIOS_AIN_UnMuxed
               00525 
               00526 ;; --------------------------------------------------------------------------
               00527 .MIOS_MF_PWM_DutyCycleDownGet code MIOS_MF_PWM_DutyCycleDownGet
2C84           00528 _MIOS_MF_PWM_DutyCycleDownGet
               00529         global  _MIOS_MF_PWM_DutyCycleDownGet
               00530 
               00531 ;; --------------------------------------------------------------------------
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 37


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00532 .MIOS_MF_PWM_DutyCycleDownSet code MIOS_MF_PWM_DutyCycleDownSet
2C88           00533 _MIOS_MF_PWM_DutyCycleDownSet
               00534         global  _MIOS_MF_PWM_DutyCycleDownSet
               00535 
               00536 ;; --------------------------------------------------------------------------
               00537 .MIOS_MF_PWM_DutyCycleUpGet code MIOS_MF_PWM_DutyCycleUpGet
2C8C           00538 _MIOS_MF_PWM_DutyCycleUpGet
               00539         global  _MIOS_MF_PWM_DutyCycleUpGet
               00540 
               00541 ;; --------------------------------------------------------------------------
               00542 .MIOS_MF_PWM_DutyCycleUpSet code MIOS_MF_PWM_DutyCycleUpSet
2C90           00543 _MIOS_MF_PWM_DutyCycleUpSet
               00544         global  _MIOS_MF_PWM_DutyCycleUpSet
               00545 
               00546 ;; --------------------------------------------------------------------------
               00547 .MIOS_MF_DeadbandGet code MIOS_MF_DeadbandGet
2C94           00548 _MIOS_MF_DeadbandGet
               00549         global  _MIOS_MF_DeadbandGet
               00550 
               00551 ;; --------------------------------------------------------------------------
               00552 .MIOS_MF_DeadbandSet code MIOS_MF_DeadbandSet
2C98           00553 _MIOS_MF_DeadbandSet
               00554         global  _MIOS_MF_DeadbandSet
               00555 
               00556 ;; --------------------------------------------------------------------------
               00557 .MIOS_MF_Disable code MIOS_MF_Disable
2C9C           00558 _MIOS_MF_Disable
               00559         global  _MIOS_MF_Disable
               00560 
               00561 ;; --------------------------------------------------------------------------
               00562 .MIOS_MF_Enable code MIOS_MF_Enable
2CA0           00563 _MIOS_MF_Enable
               00564         global  _MIOS_MF_Enable
               00565 
               00566 ;; --------------------------------------------------------------------------
               00567 .MIOS_MF_FaderMove code
0000           00568 _MIOS_MF_FaderMove
               00569         global  _MIOS_MF_FaderMove
               00570 
0000 CFE9 FFD9 00571         movff   FSR0L, FSR2L
0004 CFDC F003 00572         movff   PREINC2, MIOS_PARAMETER1
0008 CFDC F004 00573         movff   PREINC2, MIOS_PARAMETER2
000C EF52 F016 00574         goto    MIOS_MF_FaderMove
               00575 
               00576 ;; --------------------------------------------------------------------------
               00577 .MIOS_MF_SuspendDisable code MIOS_MF_SuspendDisable
2CA8           00578 _MIOS_MF_SuspendDisable
               00579         global  _MIOS_MF_SuspendDisable
               00580 
               00581 ;; --------------------------------------------------------------------------
               00582 .MIOS_MF_SuspendEnable code MIOS_MF_SuspendEnable
2CAC           00583 _MIOS_MF_SuspendEnable
               00584         global  _MIOS_MF_SuspendEnable
               00585 
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 38


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00586 ;; --------------------------------------------------------------------------
               00587 .MIOS_MF_SuspendGet code MIOS_MF_SuspendGet
2CB0           00588 _MIOS_MF_SuspendGet
               00589         global  _MIOS_MF_SuspendGet
               00590 
               00591 ;; --------------------------------------------------------------------------
               00592 .MIOS_MF_PWM_PeriodGet code MIOS_MF_PWM_PeriodGet
2DFC           00593 _MIOS_MF_PWM_PeriodGet
               00594         global  _MIOS_MF_PWM_PeriodGet
               00595 
               00596 ;; --------------------------------------------------------------------------
               00597 .MIOS_MF_PWM_PeriodSet code MIOS_MF_PWM_PeriodSet
2E00           00598 _MIOS_MF_PWM_PeriodSet
               00599         global  _MIOS_MF_PWM_PeriodSet
               00600 
               00601 ;; --------------------------------------------------------------------------
               00602 .MIOS_MF_TouchDetectionReset code MIOS_MF_TouchDetectionReset
2E2C           00603 _MIOS_MF_TouchDetectionReset
               00604         global  _MIOS_MF_TouchDetectionReset
               00605 
               00606 ;; --------------------------------------------------------------------------
               00607 .MIOS_DIN_PinGet code MIOS_DIN_PinGet
2CB4           00608 _MIOS_DIN_PinGet
               00609         global  _MIOS_DIN_PinGet
               00610 
               00611 ;; --------------------------------------------------------------------------
               00612 .MIOS_DIN_SRGet code MIOS_DIN_SRGet
2CB8           00613 _MIOS_DIN_SRGet
               00614         global  _MIOS_DIN_SRGet
               00615 
               00616 ;; --------------------------------------------------------------------------
               00617 .MIOS_DOUT_PinGet code MIOS_DOUT_PinGet
2CBC           00618 _MIOS_DOUT_PinGet
               00619         global  _MIOS_DOUT_PinGet
               00620 
               00621 ;; --------------------------------------------------------------------------
               00622 .MIOS_DOUT_PinSet code
0000           00623 _MIOS_DOUT_PinSet
               00624         global  _MIOS_DOUT_PinSet
               00625 
0000 CFE9 FFD9 00626         movff   FSR0L, FSR2L
0004 CFDC F003 00627         movff   PREINC2, MIOS_PARAMETER1
0008 EF60 F016 00628         goto    MIOS_DOUT_PinSet
               00629 
               00630 
               00631 ;; --------------------------------------------------------------------------
               00632 .MIOS_DOUT_PinSet0 code MIOS_DOUT_PinSet0
2CC4           00633 _MIOS_DOUT_PinSet0
               00634         global  _MIOS_DOUT_PinSet0
               00635 
               00636 ;; --------------------------------------------------------------------------
               00637 .MIOS_DOUT_PinSet1 code MIOS_DOUT_PinSet1
2CC8           00638 _MIOS_DOUT_PinSet1
               00639         global  _MIOS_DOUT_PinSet1
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 39


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00640 
               00641 ;; --------------------------------------------------------------------------
               00642 .MIOS_DOUT_SRGet code MIOS_DOUT_SRGet
2CCC           00643 _MIOS_DOUT_SRGet
               00644         global  _MIOS_DOUT_SRGet
               00645 
               00646 ;; --------------------------------------------------------------------------
               00647 .MIOS_DOUT_SRSet code
0000           00648 _MIOS_DOUT_SRSet
               00649         global  _MIOS_DOUT_SRSet
               00650         
0000 CFE9 FFD9 00651         movff   FSR0L, FSR2L
0004 CFDC F003 00652         movff   PREINC2, MIOS_PARAMETER1
0008 EF68 F016 00653         goto    MIOS_DOUT_SRSet
               00654 
               00655 ;; --------------------------------------------------------------------------
               00656 .MIOS_ENC_Abs7bitAdd code
0000           00657 _MIOS_ENC_Abs7bitAdd
               00658         global  _MIOS_ENC_Abs7bitAdd
               00659         
0000 CFE9 FFD9 00660         movff   FSR0L, FSR2L
0004 CFDC F003 00661         movff   PREINC2, MIOS_PARAMETER1
0008 EF6A F016 00662         goto    MIOS_ENC_Abs7bitAdd
               00663         
               00664 ;; --------------------------------------------------------------------------
               00665 .MIOS_ENC_Abs7bitGet code MIOS_ENC_Abs7bitGet
2CD8           00666 _MIOS_ENC_Abs7bitGet
               00667         global  _MIOS_ENC_Abs7bitGet
               00668 
               00669 ;; --------------------------------------------------------------------------
               00670 .MIOS_ENC_Abs7bitSet code
0000           00671 _MIOS_ENC_Abs7bitSet
               00672         global  _MIOS_ENC_Abs7bitSet
               00673 
0000 CFE9 FFD9 00674         movff   FSR0L, FSR2L
0004 CFDC F003 00675         movff   PREINC2, MIOS_PARAMETER1
0008 EF6E F016 00676         goto    MIOS_ENC_Abs7bitSet
               00677 
               00678 ;; --------------------------------------------------------------------------
               00679 .MIOS_ENC_NumberGet code MIOS_ENC_NumberGet
2CE0           00680 _MIOS_ENC_NumberGet
               00681         global  _MIOS_ENC_NumberGet
               00682 
               00683 ;; --------------------------------------------------------------------------
               00684 .MIOS_ENC_SpeedGet code
0000           00685 _MIOS_ENC_SpeedGet
               00686         global  _MIOS_ENC_SpeedGet
               00687 
0000 CFE9 FFD9 00688         movff   FSR0L, FSR2L
0004 CFDC F003 00689         movff   PREINC2, MIOS_PARAMETER1
0008 EF72 F016 00690         goto    MIOS_ENC_SpeedGet
               00691 
               00692 ;; --------------------------------------------------------------------------
               00693 .MIOS_ENC_SpeedSet code
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 40


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0000           00694 _MIOS_ENC_SpeedSet
               00695         global  _MIOS_ENC_SpeedSet
               00696 
0000 CFE9 FFD9 00697         movff   FSR0L, FSR2L
0004 CFDC F003 00698         movff   PREINC2, MIOS_PARAMETER1
0008 CFDC F004 00699         movff   PREINC2, MIOS_PARAMETER2
000C EF74 F016 00700         goto    MIOS_ENC_SpeedSet
               00701 
               00702 ;; --------------------------------------------------------------------------
               00703 .MIOS_SRIO_NumberGet code MIOS_SRIO_NumberGet
2CEC           00704 _MIOS_SRIO_NumberGet
               00705         global  _MIOS_SRIO_NumberGet
               00706 
               00707 ;; --------------------------------------------------------------------------
               00708 .MIOS_SRIO_NumberSet code MIOS_SRIO_NumberSet
2CF0           00709 _MIOS_SRIO_NumberSet
               00710         global  _MIOS_SRIO_NumberSet
               00711 
               00712 ;; --------------------------------------------------------------------------
               00713 .MIOS_SRIO_TS_SensitivityGet code MIOS_SRIO_TS_SensitivityGet
2CF4           00714 _MIOS_SRIO_TS_SensitivityGet
               00715         global  _MIOS_SRIO_TS_SensitivityGet
               00716 
               00717 ;; --------------------------------------------------------------------------
               00718 .MIOS_SRIO_TS_SensitivitySet code MIOS_SRIO_TS_SensitivitySet
2CF8           00719 _MIOS_SRIO_TS_SensitivitySet
               00720         global  _MIOS_SRIO_TS_SensitivitySet
               00721 
               00722 ;; --------------------------------------------------------------------------
               00723 .MIOS_SRIO_UpdateFrqGet code MIOS_SRIO_UpdateFrqGet
2CFC           00724 _MIOS_SRIO_UpdateFrqGet
               00725         global  _MIOS_SRIO_UpdateFrqGet
               00726 
               00727 ;; --------------------------------------------------------------------------
               00728 .MIOS_SRIO_UpdateFrqSet code MIOS_SRIO_UpdateFrqSet
2D00           00729 _MIOS_SRIO_UpdateFrqSet
               00730         global  _MIOS_SRIO_UpdateFrqSet
               00731 
               00732 ;; --------------------------------------------------------------------------
               00733 .MIOS_SRIO_DebounceGet code MIOS_SRIO_DebounceGet
2E28           00734 _MIOS_SRIO_DebounceGet
               00735         global  _MIOS_SRIO_DebounceGet
               00736 
               00737 ;; --------------------------------------------------------------------------
               00738 .MIOS_SRIO_DebounceSet code MIOS_SRIO_DebounceSet
2E24           00739 _MIOS_SRIO_DebounceSet
               00740         global  _MIOS_SRIO_DebounceSet
               00741 
               00742 ;; --------------------------------------------------------------------------
               00743 .MIOS_LCD_Clear code MIOS_LCD_Clear
2D04           00744 _MIOS_LCD_Clear
               00745         global  _MIOS_LCD_Clear
               00746 
               00747 ;; --------------------------------------------------------------------------
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 41


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00748 .MIOS_LCD_Cmd code MIOS_LCD_Cmd
2D08           00749 _MIOS_LCD_Cmd
               00750         global  _MIOS_LCD_Cmd
               00751 
               00752 ;; --------------------------------------------------------------------------
               00753 .MIOS_LCD_CursorGet code MIOS_LCD_CursorGet
2D0C           00754 _MIOS_LCD_CursorGet
               00755         global  _MIOS_LCD_CursorGet
               00756 
               00757 ;; --------------------------------------------------------------------------
               00758 .MIOS_LCD_CursorSet code MIOS_LCD_CursorSet
2D10           00759 _MIOS_LCD_CursorSet
               00760         global  _MIOS_LCD_CursorSet
               00761 
               00762 ;; --------------------------------------------------------------------------
               00763 .MIOS_LCD_Data code MIOS_LCD_Data
2D14           00764 _MIOS_LCD_Data
               00765         global  _MIOS_LCD_Data
               00766 
               00767 ;; --------------------------------------------------------------------------
               00768 .MIOS_LCD_Init code MIOS_LCD_Init
2D18           00769 _MIOS_LCD_Init
               00770         global  _MIOS_LCD_Init
               00771 
               00772 ;; --------------------------------------------------------------------------
               00773 .MIOS_LCD_PrintBCD1 code MIOS_LCD_PrintBCD1
2D1C           00774 _MIOS_LCD_PrintBCD1
               00775         global  _MIOS_LCD_PrintBCD1
               00776 
               00777 ;; --------------------------------------------------------------------------
               00778 .MIOS_LCD_PrintBCD2 code MIOS_LCD_PrintBCD2
2D20           00779 _MIOS_LCD_PrintBCD2
               00780         global  _MIOS_LCD_PrintBCD2
               00781 
               00782 ;; --------------------------------------------------------------------------
               00783 .MIOS_LCD_PrintBCD3 code MIOS_LCD_PrintBCD3
2D24           00784 _MIOS_LCD_PrintBCD3
               00785         global  _MIOS_LCD_PrintBCD3
               00786 
               00787 ;; --------------------------------------------------------------------------
               00788 .MIOS_LCD_PrintBCD4 code
0000           00789 _MIOS_LCD_PrintBCD4
               00790         global  _MIOS_LCD_PrintBCD4
               00791 
0000 CFE9 FFD9 00792         movff   FSR0L, FSR2L
0004 CFDC F003 00793         movff   PREINC2, MIOS_PARAMETER1
0008 EFF6 F016 00794         goto    MIOS_LCD_PrintBCD4
               00795 
               00796 ;; --------------------------------------------------------------------------
               00797 .MIOS_LCD_PrintBCD5 code
0000           00798 _MIOS_LCD_PrintBCD5
               00799         global  _MIOS_LCD_PrintBCD5
               00800 
0000 CFE9 FFD9 00801         movff   FSR0L, FSR2L
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 42


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0004 CFDC F003 00802         movff   PREINC2, MIOS_PARAMETER1
0008 EFF8 F016 00803         goto    MIOS_LCD_PrintBCD5
               00804 
               00805 ;; --------------------------------------------------------------------------
               00806 .MIOS_LCD_PrintChar code MIOS_LCD_PrintChar
2D28           00807 _MIOS_LCD_PrintChar
               00808         global  _MIOS_LCD_PrintChar
               00809 
               00810 ;; --------------------------------------------------------------------------
               00811 .MIOS_LCD_PrintHex1 code MIOS_LCD_PrintHex1
2D2C           00812 _MIOS_LCD_PrintHex1
               00813         global  _MIOS_LCD_PrintHex1
               00814 
               00815 ;; --------------------------------------------------------------------------
               00816 .MIOS_LCD_PrintHex2 code MIOS_LCD_PrintHex2
2D30           00817 _MIOS_LCD_PrintHex2
               00818         global  _MIOS_LCD_PrintHex2
               00819 
               00820 ;; --------------------------------------------------------------------------
               00821 .MIOS_LCD_PrintMessage code
0000           00822 _MIOS_LCD_PrintMessage
               00823         global  _MIOS_LCD_PrintMessage
               00824 
0000 6EF6      00825         movwf   TBLPTRL
0002 CFE9 FFD9 00826         movff   FSR0L, FSR2L
0006 CFDC FFF7 00827         movff   PREINC2, TBLPTRH
000A CFDC FFF8 00828         movff   PREINC2, TBLPTRU
000E EF9A F016 00829         goto    MIOS_LCD_PrintMessage
               00830 
               00831 ;; --------------------------------------------------------------------------
               00832 .MIOS_LCD_PrintPreconfString code
0000           00833 _MIOS_LCD_PrintPreconfString
               00834         global  _MIOS_LCD_PrintPreconfString
               00835 
0000 CFE9 FFD9 00836         movff   FSR0L, FSR2L
0004 CFDC FFF8 00837         movff   PREINC2, TBLPTRU
0008 CFDC FFF7 00838         movff   PREINC2, TBLPTRH
000C CFDC FFF6 00839         movff   PREINC2, TBLPTRL
0010 EF9C F016 00840         goto    MIOS_LCD_PrintPreconfString
               00841 
               00842 ;; --------------------------------------------------------------------------
               00843 .MIOS_LCD_PrintString code
0000           00844 _MIOS_LCD_PrintString
               00845         global  _MIOS_LCD_PrintString
               00846 
0000 6EF6      00847         movwf   TBLPTRL
0002 CFE9 FFD9 00848         movff   FSR0L, FSR2L
0006 CFDC FFF7 00849         movff   PREINC2, TBLPTRH
000A CFDC FFF8 00850         movff   PREINC2, TBLPTRU
000E EF9E F016 00851         goto    MIOS_LCD_PrintString
               00852 
               00853 ;; --------------------------------------------------------------------------
               00854 .MIOS_LCD_TypeAutoSet code MIOS_LCD_TypeAutoSet
2D40           00855 _MIOS_LCD_TypeAutoSet
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 43


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               00856         global  _MIOS_LCD_TypeAutoSet
               00857 
               00858 ;; --------------------------------------------------------------------------
               00859 .MIOS_LCD_TypeGet code MIOS_LCD_TypeGet
2D44           00860 _MIOS_LCD_TypeGet
               00861         global  _MIOS_LCD_TypeGet
               00862 
               00863 ;; --------------------------------------------------------------------------
               00864 .MIOS_LCD_TypeSet code
0000           00865 _MIOS_LCD_TypeSet
               00866         global  _MIOS_LCD_TypeSet
               00867 
0000 CFE9 FFD9 00868         movff   FSR0L, FSR2L
0004 CFDC F003 00869         movff   PREINC2, MIOS_PARAMETER1
0008 CFDC F004 00870         movff   PREINC2, MIOS_PARAMETER2
000C EFA4 F016 00871         goto    MIOS_LCD_TypeSet
               00872 
               00873 ;; --------------------------------------------------------------------------
               00874 .MIOS_LCD_YAddressGet code
0000           00875 _MIOS_LCD_YAddressGet
               00876         global  _MIOS_LCD_YAddressGet
0000 EFA6 F016 00877         goto    MIOS_LCD_YAddressGet
               00878 
               00879 ;; --------------------------------------------------------------------------
               00880 .MIOS_LCD_YAddressSet code
0000           00881 _MIOS_LCD_YAddressSet
               00882         global  _MIOS_LCD_YAddressSet
               00883 
0000 CFE9 FFD9 00884         movff   FSR0L, FSR2L
0004 6E03      00885         movwf   MIOS_PARAMETER1
0006 CFDC F004 00886         movff   PREINC2, MIOS_PARAMETER2
000A CFDC F005 00887         movff   PREINC2, MIOS_PARAMETER3
000E 50DC      00888         movf    PREINC2, W
0010 EFA8 F016 00889         goto    MIOS_LCD_YAddressSet
               00890 
               00891 ;; --------------------------------------------------------------------------
               00892 .MIOS_LCD_MessageStart code MIOS_LCD_MessageStart
2DF4           00893 _MIOS_LCD_MessageStart
               00894         global  _MIOS_LCD_MessageStart
               00895 
               00896 ;; --------------------------------------------------------------------------
               00897 .MIOS_LCD_MessageStop code MIOS_LCD_MessageStop
2DF8           00898 _MIOS_LCD_MessageStop
               00899         global  _MIOS_LCD_MessageStop
               00900 
               00901 ;; --------------------------------------------------------------------------
               00902 .MIOS_CLCD_SpecialCharInit code
0000           00903 _MIOS_CLCD_SpecialCharInit
               00904         global  _MIOS_CLCD_SpecialCharInit
               00905 
0000 CFE9 FFD9 00906         movff   FSR0L, FSR2L
0004 CFDC FFF6 00907         movff   PREINC2, TBLPTRL
0008 CFDC FFF7 00908         movff   PREINC2, TBLPTRH
000C CFDC FFF8 00909         movff   PREINC2, TBLPTRU
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 44


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0010 EFE4 F016 00910         goto    MIOS_CLCD_SpecialCharInit
               00911 
               00912 ;; --------------------------------------------------------------------------
               00913 .MIOS_CLCD_SpecialCharsInit code
0000           00914 _MIOS_CLCD_SpecialCharsInit
               00915         global  _MIOS_CLCD_SpecialCharsInit
               00916 
0000 6EF6      00917         movwf   TBLPTRL
0002 CFE9 FFD9 00918         movff   FSR0L, FSR2L
0006 CFDC FFF7 00919         movff   PREINC2, TBLPTRH
000A CFDC FFF8 00920         movff   PREINC2, TBLPTRU
000E EFE6 F016 00921         goto    MIOS_CLCD_SpecialCharsInit
               00922 
               00923 ;; --------------------------------------------------------------------------
               00924 .MIOS_GLCD_FontInit code
0000           00925 _MIOS_GLCD_FontInit
               00926         global  _MIOS_GLCD_FontInit
               00927 
0000 6EF6      00928         movwf   TBLPTRL
0002 CFE9 FFD9 00929         movff   FSR0L, FSR2L
0006 CFDC FFF7 00930         movff   PREINC2, TBLPTRH
000A CFDC FFF8 00931         movff   PREINC2, TBLPTRU
000E EFAA F016 00932         goto    MIOS_GLCD_FontInit
               00933 
               00934 ;; --------------------------------------------------------------------------
               00935 .MIOS_GLCD_GCursorGet code MIOS_GLCD_GCursorGet
2D58           00936 _MIOS_GLCD_GCursorGet
               00937         global  _MIOS_GLCD_GCursorGet
               00938 
               00939 ;; --------------------------------------------------------------------------
               00940 .MIOS_GLCD_GCursorSet code
0000           00941 _MIOS_GLCD_GCursorSet
               00942         global  _MIOS_GLCD_GCursorSet
               00943 
0000 CFE9 FFD9 00944         movff   FSR0L, FSR2L
0004 CFDC F003 00945         movff   PREINC2, MIOS_PARAMETER1
0008 EFAE F016 00946         goto    MIOS_GLCD_GCursorSet
               00947 
               00948 ;; --------------------------------------------------------------------------
               00949 .MIOS_EEPROM_Read code
0000           00950 _MIOS_EEPROM_Read
               00951         global  _MIOS_EEPROM_Read
               00952 
0000 6EA9      00953         movwf   EEADR
0002 EFB0 F016 00954         goto    MIOS_EEPROM_Read
               00955 
               00956 ;; --------------------------------------------------------------------------
               00957 .MIOS_EEPROM_Write code
0000           00958 _MIOS_EEPROM_Write
               00959         global  _MIOS_EEPROM_Write
               00960 
0000 6EA9      00961         movwf   EEADR
0002 CFE9 FFD9 00962         movff   FSR0L, FSR2L
0006 50DC      00963         movf    PREINC2, W
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 45


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0008 EFB2 F016 00964         goto    MIOS_EEPROM_Write
               00965 
               00966 ;; --------------------------------------------------------------------------
               00967 .MIOS_EEPROM_ReadPage code
0000           00968 _MIOS_EEPROM_ReadPage
               00969         global  _MIOS_EEPROM_ReadPage
               00970 
0000 6EA9      00971         movwf   EEADR
0002 CFE9 FFD9 00972         movff   FSR0L, FSR2L
0006 CFDC FFE1 00973         movff   PREINC2, FSR1L
000A CFDC FFE2 00974         movff   PREINC2, FSR1H
               00975 
               00976 #if PARAMETER_PASSING_TEST
               00977         movlw   0x56
               00978         cpfseq  EEADR, ACCESS
               00979         return
               00980 
               00981         movlw   0x12
               00982         cpfseq  FSR1L, ACCESS
               00983         return
               00984 
               00985         movlw   0x03
               00986         cpfseq  FSR1H, ACCESS
               00987         return
               00988 
               00989         movlw   0x1a
               00990         movwf   MIOS_PARAMETER1
               00991         return
               00992 #endif
               00993 
000E EF1A F017 00994         goto    MIOS_EEPROM_ReadPage
               00995 
               00996 ;; --------------------------------------------------------------------------
               00997 .MIOS_EEPROM_WritePage code
0000           00998 _MIOS_EEPROM_WritePage
               00999         global  _MIOS_EEPROM_WritePage
               01000 
0000 6EA9      01001         movwf   EEADR
0002 CFE9 FFD9 01002         movff   FSR0L, FSR2L
0006 CFDC FFE1 01003         movff   PREINC2, FSR1L
000A CFDC FFE2 01004         movff   PREINC2, FSR1H
               01005 
               01006 #if PARAMETER_PASSING_TEST
               01007         movlw   0x56
               01008         cpfseq  EEADR, ACCESS
               01009         return
               01010 
               01011         movlw   0x12
               01012         cpfseq  FSR1L, ACCESS
               01013         return
               01014 
               01015         movlw   0x03
               01016         cpfseq  FSR1H, ACCESS
               01017         return
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 46


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               01018 
               01019         movlw   0x1a
               01020         movwf   MIOS_PARAMETER1
               01021         return
               01022 #endif
               01023 
000E EF1C F017 01024         goto    MIOS_EEPROM_WritePage
               01025 
               01026 ;; --------------------------------------------------------------------------
               01027 .MIOS_FLASH_Read code
0000           01028 _MIOS_FLASH_Read
               01029         global  _MIOS_FLASH_Read
               01030 
0000 6EF6      01031         movwf   TBLPTRL
0002 CFE9 FFD9 01032         movff   FSR0L, FSR2L
0006 CFDC FFF7 01033         movff   PREINC2, TBLPTRH
000A CFDC FFF8 01034         movff   PREINC2, TBLPTRU
000E CFDC FFE1 01035         movff   PREINC2, FSR1L
0012 CFDC FFE2 01036         movff   PREINC2, FSR1H
               01037 
               01038 #if PARAMETER_PASSING_TEST
               01039         movlw   0x56
               01040         cpfseq  TBLPTRL, ACCESS
               01041         return
               01042 
               01043         movlw   0x78
               01044         cpfseq  TBLPTRH, ACCESS
               01045         return
               01046 
               01047         movlw   0x00
               01048         cpfseq  TBLPTRU, ACCESS
               01049         return
               01050 
               01051         movlw   0x12
               01052         cpfseq  FSR1L, ACCESS
               01053         return
               01054 
               01055         movlw   0x03
               01056         cpfseq  FSR1H, ACCESS
               01057         return
               01058 
               01059         movlw   0x1a
               01060         movwf   MIOS_PARAMETER1
               01061         return
               01062 #endif
               01063 
0016 EFB4 F016 01064         goto    MIOS_FLASH_Read
               01065 
               01066 ;; --------------------------------------------------------------------------
               01067 .MIOS_FLASH_Write code
0000           01068 _MIOS_FLASH_Write
               01069         global  _MIOS_FLASH_Write
               01070 
0000 6EF6      01071         movwf   TBLPTRL
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 47


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0002 CFE9 FFD9 01072         movff   FSR0L, FSR2L
0006 CFDC FFF7 01073         movff   PREINC2, TBLPTRH
000A CFDC FFF8 01074         movff   PREINC2, TBLPTRU
000E CFDC FFE1 01075         movff   PREINC2, FSR1L
0012 CFDC FFE2 01076         movff   PREINC2, FSR1H
               01077 
               01078 #if PARAMETER_PASSING_TEST
               01079         movlw   0x56
               01080         cpfseq  TBLPTRL, ACCESS
               01081         return
               01082 
               01083         movlw   0x78
               01084         cpfseq  TBLPTRH, ACCESS
               01085         return
               01086 
               01087         movlw   0x00
               01088         cpfseq  TBLPTRU, ACCESS
               01089         return
               01090 
               01091         movlw   0x12
               01092         cpfseq  FSR1L, ACCESS
               01093         return
               01094 
               01095         movlw   0x03
               01096         cpfseq  FSR1H, ACCESS
               01097         return
               01098 
               01099         movlw   0x1a
               01100         movwf   MIOS_PARAMETER1
               01101         return
               01102 #endif
               01103 
0016 EFB6 F016 01104         goto    MIOS_FLASH_Write
               01105 
               01106 ;; --------------------------------------------------------------------------
               01107 .MIOS_BANKSTICK_Read code
0000           01108 _MIOS_BANKSTICK_Read
               01109         global  _MIOS_BANKSTICK_Read
               01110 
0000 6E03      01111         movwf   MIOS_PARAMETER1
0002 CFE9 FFD9 01112         movff   FSR0L, FSR2L
0006 CFDC F004 01113         movff   PREINC2, MIOS_PARAMETER2
               01114 
               01115 #if PARAMETER_PASSING_TEST
               01116         movlw   0x12
               01117         cpfseq  MIOS_PARAMETER1, ACCESS
               01118         return
               01119 
               01120         movlw   0x34
               01121         cpfseq  MIOS_PARAMETER2, ACCESS
               01122         return
               01123 
               01124         movlw   0x1a
               01125         movwf   MIOS_PARAMETER1
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 48


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               01126         return
               01127 #endif
000A EFB8 F016 01128         goto    MIOS_BANKSTICK_Read
               01129 
               01130 ;; --------------------------------------------------------------------------
               01131 .MIOS_BANKSTICK_Write code
0000           01132 _MIOS_BANKSTICK_Write
               01133         global  _MIOS_BANKSTICK_Write
               01134 
0000 6E03      01135         movwf   MIOS_PARAMETER1
0002 CFE9 FFD9 01136         movff   FSR0L, FSR2L
0006 CFDC F004 01137         movff   PREINC2, MIOS_PARAMETER2
000A 50DC      01138         movf    PREINC2, W
               01139 
               01140 #if PARAMETER_PASSING_TEST
               01141         movwf   TMP1
               01142         movlw   0x56
               01143         cpfseq  TMP1, ACCESS
               01144         return
               01145 
               01146         movlw   0x12
               01147         cpfseq  MIOS_PARAMETER1, ACCESS
               01148         return
               01149 
               01150         movlw   0x34
               01151         cpfseq  MIOS_PARAMETER2, ACCESS
               01152         return
               01153 
               01154         movlw   0x1a
               01155         movwf   MIOS_PARAMETER1
               01156         return
               01157 #endif
               01158 
000C EFBA F016 01159         goto    MIOS_BANKSTICK_Write
               01160 
               01161 ;; --------------------------------------------------------------------------
               01162 .MIOS_BANKSTICK_CtrlSet code MIOS_BANKSTICK_CtrlSet
2DDC           01163 _MIOS_BANKSTICK_CtrlSet
               01164         global  _MIOS_BANKSTICK_CtrlSet
               01165 
               01166 ;; --------------------------------------------------------------------------
               01167 .MIOS_BANKSTICK_CtrlGet code MIOS_BANKSTICK_CtrlGet
2DE0           01168 _MIOS_BANKSTICK_CtrlGet
               01169         global  _MIOS_BANKSTICK_CtrlGet
               01170 
               01171 ;; --------------------------------------------------------------------------
               01172 .MIOS_BANKSTICK_WritePage code
0000           01173 _MIOS_BANKSTICK_WritePage
               01174         global  _MIOS_BANKSTICK_WritePage
               01175 
0000 6E03      01176         movwf   MIOS_PARAMETER1
0002 CFE9 FFD9 01177         movff   FSR0L, FSR2L
0006 CFDC F004 01178         movff   PREINC2, MIOS_PARAMETER2
000A CFDC FFE1 01179         movff   PREINC2, FSR1L
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 49


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
000E CFDC FFE2 01180         movff   PREINC2, FSR1H
               01181 
               01182 #if PARAMETER_PASSING_TEST
               01183         movlw   0x56
               01184         cpfseq  MIOS_PARAMETER1, ACCESS
               01185         return
               01186 
               01187         movlw   0x78
               01188         cpfseq  MIOS_PARAMETER2, ACCESS
               01189         return
               01190 
               01191         movlw   0x12
               01192         cpfseq  FSR1L, ACCESS
               01193         return
               01194 
               01195         movlw   0x03
               01196         cpfseq  FSR1H, ACCESS
               01197         return
               01198 
               01199         movlw   0x1a
               01200         movwf   MIOS_PARAMETER1
               01201         return
               01202 #endif
               01203 
0012 EFF2 F016 01204         goto    MIOS_BANKSTICK_WritePage
               01205 
               01206 ;; --------------------------------------------------------------------------
               01207 .MIOS_BANKSTICK_ReadPage code
0000           01208 _MIOS_BANKSTICK_ReadPage
               01209         global  _MIOS_BANKSTICK_ReadPage
               01210         
0000 6E03      01211         movwf   MIOS_PARAMETER1
0002 CFE9 FFD9 01212         movff   FSR0L, FSR2L
0006 CFDC F004 01213         movff   PREINC2, MIOS_PARAMETER2
000A CFDC FFE1 01214         movff   PREINC2, FSR1L
000E CFDC FFE2 01215         movff   PREINC2, FSR1H
               01216 
               01217 #if PARAMETER_PASSING_TEST
               01218         movlw   0x56
               01219         cpfseq  MIOS_PARAMETER1, ACCESS
               01220         return
               01221 
               01222         movlw   0x78
               01223         cpfseq  MIOS_PARAMETER2, ACCESS
               01224         return
               01225 
               01226         movlw   0x12
               01227         cpfseq  FSR1L, ACCESS
               01228         return
               01229 
               01230         movlw   0x03
               01231         cpfseq  FSR1H, ACCESS
               01232         return
               01233 
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 50


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               01234         movlw   0x1a
               01235         movwf   MIOS_PARAMETER1
               01236         return
               01237 #endif
               01238 
0012 EF18 F017 01239         goto    MIOS_BANKSTICK_ReadPage
               01240 
               01241 ;; --------------------------------------------------------------------------
               01242 .MIOS_TIMER_Init code
0000           01243 _MIOS_TIMER_Init
               01244         global  _MIOS_TIMER_Init
               01245 
0000 CFE9 FFD9 01246         movff   FSR0L, FSR2L
0004 CFDC F003 01247         movff   PREINC2, MIOS_PARAMETER1
0008 CFDC F004 01248         movff   PREINC2, MIOS_PARAMETER2
               01249 
               01250 #if PARAMETER_PASSING_TEST
               01251         movwf   TMP1
               01252         movlw   0x56
               01253         cpfseq  TMP1, ACCESS
               01254         return
               01255 
               01256         movlw   0x12
               01257         cpfseq  MIOS_PARAMETER1, ACCESS
               01258         return
               01259 
               01260         movlw   0x34
               01261         cpfseq  MIOS_PARAMETER2, ACCESS
               01262         return
               01263 
               01264         movlw   0x1a
               01265         movwf   MIOS_PARAMETER1
               01266         return
               01267 #endif
               01268 
000C EFBC F016 01269         goto    MIOS_TIMER_Init
               01270 
               01271 ;; --------------------------------------------------------------------------
               01272 .MIOS_TIMER_Start code MIOS_TIMER_Start
2D7C           01273 _MIOS_TIMER_Start
               01274         global  _MIOS_TIMER_Start
               01275 
               01276 ;; --------------------------------------------------------------------------
               01277 .MIOS_TIMER_Stop code MIOS_TIMER_Stop
2D80           01278 _MIOS_TIMER_Stop
               01279         global  _MIOS_TIMER_Stop
               01280 
               01281 ;; --------------------------------------------------------------------------
               01282 .MIOS_TIMER_ReInit code
0000           01283 _MIOS_TIMER_ReInit
               01284         global  _MIOS_TIMER_ReInit
               01285 
0000 CFE9 FFD9 01286         movff   FSR0L, FSR2L
0004 CFDC F003 01287         movff   PREINC2, MIOS_PARAMETER1
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 51


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
0008 CFDC F004 01288         movff   PREINC2, MIOS_PARAMETER2
               01289 
               01290 #if PARAMETER_PASSING_TEST
               01291         movwf   TMP1
               01292         movlw   0x56
               01293         cpfseq  TMP1, ACCESS
               01294         return
               01295 
               01296         movlw   0x12
               01297         cpfseq  MIOS_PARAMETER1, ACCESS
               01298         return
               01299 
               01300         movlw   0x34
               01301         cpfseq  MIOS_PARAMETER2, ACCESS
               01302         return
               01303 
               01304         movlw   0x1a
               01305         movwf   MIOS_PARAMETER1
               01306         return
               01307 #endif
               01308 
000C EF1E F017 01309         goto    MIOS_TIMER_ReInit
               01310 
               01311 ;; --------------------------------------------------------------------------
               01312 .MIOS_HLP_GetBitANDMask code MIOS_HLP_GetBitANDMask
2D88           01313 _MIOS_HLP_GetBitANDMask
               01314         global  _MIOS_HLP_GetBitANDMask
               01315 
               01316 ;; --------------------------------------------------------------------------
               01317 .MIOS_HLP_GetBitORMask code MIOS_HLP_GetBitORMask
2D8C           01318 _MIOS_HLP_GetBitORMask
               01319         global  _MIOS_HLP_GetBitORMask
               01320 
               01321 ;; --------------------------------------------------------------------------
               01322 .MIOS_HLP_16bitAddSaturate code
0000           01323 _MIOS_HLP_16bitAddSaturate
               01324         global  _MIOS_HLP_16bitAddSaturate
               01325 
0000 CFE9 FFD9 01326         movff   FSR0L, FSR2L
0004 6E0A      01327         movwf   TMP5
               01328 
0006 CFDC FFE1 01329         movff   PREINC2, FSR1L
000A CFDC FFE2 01330         movff   PREINC2, FSR1H
000E 52DC      01331         movf    PREINC2, F
0010 CFDC F003 01332         movff   PREINC2, MIOS_PARAMETER1
0014 CFDC F004 01333         movff   PREINC2, MIOS_PARAMETER2
               01334 
0018 CFE6 F006 01335         movff   POSTINC1, TMP1  ; due to requirement that FSR1 is aligned to 16bit address
001C CFE6 F007 01336         movff   POSTINC1, TMP2
0020 EE10 F006 01337         lfsr    FSR1, TMP1
               01338 
0024 500A      01339         movf    TMP5, W
0026 ECDC F016 01340         call    MIOS_HLP_16bitAddSaturate
002A CFE9 FFD9 01341         movff   FSR0L, FSR2L
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 52


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
002E CFDC FFE1 01342         movff   PREINC2, FSR1L
0032 CFDC FFE2 01343         movff   PREINC2, FSR1H
0036 C006 FFE6 01344         movff   TMP1, POSTINC1
003A C007 FFE6 01345         movff   TMP2, POSTINC1
003E 0012      01346         return
               01347 
               01348 ;; --------------------------------------------------------------------------
               01349 .MIOS_HLP_Dec2BCD code
0000           01350 _MIOS_HLP_Dec2BCD
               01351         global  _MIOS_HLP_Dec2BCD
               01352 
0000 6E03      01353         movwf   MIOS_PARAMETER1
0002 CFE9 FFD9 01354         movff   FSR0L, FSR2L
0006 50DC      01355         movf    PREINC2, W
0008 EFF4 F016 01356         goto    MIOS_HLP_Dec2BCD
               01357 
               01358 ;; --------------------------------------------------------------------------
               01359 .MIOS_Delay code MIOS_Delay
2D9C           01360 _MIOS_Delay
               01361         global  _MIOS_Delay
               01362 
               01363 ;; --------------------------------------------------------------------------
               01364 .MIOS_GPCounterGet code MIOS_GPCounterGet
2DA0           01365 _MIOS_GPCounterGet
               01366         global  _MIOS_GPCounterGet
               01367 
               01368 ;; --------------------------------------------------------------------------
               01369 .MIOS_Reset code MIOS_Reset
2DA4           01370 _MIOS_Reset
               01371         global  _MIOS_Reset
               01372 
               01373 ;; --------------------------------------------------------------------------
               01374 .MIOS_SystemResume code MIOS_SystemResume
2DA8           01375 _MIOS_SystemResume
               01376         global  _MIOS_SystemResume
               01377 
               01378 ;; --------------------------------------------------------------------------
               01379 .MIOS_SystemSuspend code MIOS_SystemSuspend
2DAC           01380 _MIOS_SystemSuspend
               01381         global  _MIOS_SystemSuspend
               01382 
               01383 ;; --------------------------------------------------------------------------
               01384 .MIOS_UserResume code MIOS_UserResume
2DB0           01385 _MIOS_UserResume
               01386         global  _MIOS_UserResume
               01387 
               01388 ;; --------------------------------------------------------------------------
               01389 .MIOS_UserSuspend code MIOS_UserSuspend
2DB4           01390 _MIOS_UserSuspend
               01391         global  _MIOS_UserSuspend
               01392 
               01393 ;; --------------------------------------------------------------------------
               01394 .MIOS_DIN_PinAutoRepeatEnable code MIOS_DIN_PinAutoRepeatEnable
2DBC           01395 _MIOS_DIN_PinAutoRepeatEnable
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 53


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
               01396         global  _MIOS_DIN_PinAutoRepeatEnable
               01397 
               01398 ;; --------------------------------------------------------------------------
               01399 .MIOS_DIN_PinAutoRepeatDisable code MIOS_DIN_PinAutoRepeatDisable
2DC0           01400 _MIOS_DIN_PinAutoRepeatDisable
               01401         global  _MIOS_DIN_PinAutoRepeatDisable
               01402 
               01403 ;; --------------------------------------------------------------------------
               01404 .MIOS_DIN_PinAutoRepeatGet code MIOS_DIN_PinAutoRepeatGet
2DC4           01405 _MIOS_DIN_PinAutoRepeatGet
               01406         global  _MIOS_DIN_PinAutoRepeatGet
               01407 
               01408 ;; --------------------------------------------------------------------------
               01409 .MIOS_AIN_DynamicPrioSet code MIOS_AIN_DynamicPrioSet
2DD0           01410 _MIOS_AIN_DynamicPrioSet
               01411         global  _MIOS_AIN_DynamicPrioSet
               01412 
               01413 ;; --------------------------------------------------------------------------
               01414 .MIOS_AIN_DynamicPrioGet code MIOS_AIN_DynamicPrioGet
2DD4           01415 _MIOS_AIN_DynamicPrioGet
               01416         global  _MIOS_AIN_DynamicPrioGet
               01417 
               01418 ;; --------------------------------------------------------------------------
               01419 .MIOS_AIN_LastPinsGet code MIOS_AIN_LastPinsGet
2DD8           01420 _MIOS_AIN_LastPinsGet
               01421         global  _MIOS_AIN_LastPinsGet
               01422 
               01423 ;; --------------------------------------------------------------------------
               01424 .MIOS_IIC_Start code MIOS_IIC_Start
2E04           01425 _MIOS_IIC_Start
               01426         global  _MIOS_IIC_Start
               01427 
               01428 ;; --------------------------------------------------------------------------
               01429 .MIOS_IIC_Stop code MIOS_IIC_Stop
2E08           01430 _MIOS_IIC_Stop
               01431         global  _MIOS_IIC_Stop
               01432 
               01433 ;; --------------------------------------------------------------------------
               01434 .MIOS_IIC_ByteSend code MIOS_IIC_ByteSend
2E0C           01435 _MIOS_IIC_ByteSend
               01436         global  _MIOS_IIC_ByteSend
               01437 
               01438 ;; --------------------------------------------------------------------------
               01439 .MIOS_IIC_ByteReceive code MIOS_IIC_ByteReceive
2E10           01440 _MIOS_IIC_ByteReceive
               01441         global  _MIOS_IIC_ByteReceive
               01442 
               01443 ;; --------------------------------------------------------------------------
               01444 .MIOS_IIC_AckSend code MIOS_IIC_AckSend
2E14           01445 _MIOS_IIC_AckSend
               01446         global  _MIOS_IIC_AckSend
               01447 
               01448 ;; --------------------------------------------------------------------------
               01449 .MIOS_IIC_NakSend code MIOS_IIC_NakSend
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 54


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
2E18           01450 _MIOS_IIC_NakSend
               01451         global  _MIOS_IIC_NakSend
               01452 
               01453 ;; --------------------------------------------------------------------------
               01454 .MIOS_IIC_CtrlSet code MIOS_IIC_CtrlSet
2E1C           01455 _MIOS_IIC_CtrlSet
               01456         global  _MIOS_IIC_CtrlSet
               01457 
               01458 ;; --------------------------------------------------------------------------
               01459 .MIOS_IIC_CtrlGet code MIOS_IIC_CtrlGet
2E20           01460 _MIOS_IIC_CtrlGet
               01461         global  _MIOS_IIC_CtrlGet
               01462 
               01463 
               01464 ;; --------------------------------------------------------------------------
               01465 ;; ==========================================================================
               01466 ;;  Special functions supported by the wrapper
               01467 ;; ==========================================================================
               01468 ;; --------------------------------------------------------------------------
               01469 
               01470 ;; --------------------------------------------------------------------------
               01471 .MIOS_LCD_PrintCString code
0000           01472 _MIOS_LCD_PrintCString
               01473         global  _MIOS_LCD_PrintCString
               01474 
0000 6EF6      01475         movwf   TBLPTRL
0002 CFE9 FFD9 01476         movff   FSR0L, FSR2L
0006 CFDC FFF7 01477         movff   PREINC2, TBLPTRH
000A CFDC FFF8 01478         movff   PREINC2, TBLPTRU
000E           01479 _MIOS_LCD_PrintCStringLoop
000E 0009      01480         tblrd*+
0010 50F5      01481         movf    TABLAT, W
0012 E000      01482         bz      _MIOS_LCD_PrintCString_End
0014 EC94 F016 01483         call    MIOS_LCD_PrintChar
0018 D000      01484         bra     _MIOS_LCD_PrintCStringLoop
001A           01485 _MIOS_LCD_PrintCString_End
001A 0012      01486         return
               01487 
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 55


SYMBOL TABLE
  LABEL                             VALUE 

A                                 00000000
ACCESS                            00000000
ACKDT                             00000005
ACKEN                             00000004
ACKSTAT                           00000006
ADCON0                            00000FC2
ADCON1                            00000FC1
ADCS0                             00000006
ADCS1                             00000007
ADCS2                             00000006
ADDEN                             00000003
ADFM                              00000007
ADIE                              00000006
ADIF                              00000006
ADIP                              00000006
ADON                              00000000
ADRESH                            00000FC4
ADRESL                            00000FC3
AN0                               00000000
AN1                               00000001
AN2                               00000002
AN3                               00000003
AN4                               00000005
AN5                               00000000
AN6                               00000001
AN7                               00000002
BANKED                            00000001
BCLIE                             00000003
BCLIF                             00000003
BCLIP                             00000003
BF                                00000000
BOR                               00000000
BRGH                              00000002
BSR                               00000FE0
C                                 00000000
CCP1                              00000002
CCP1CON                           00000FBD
CCP1IE                            00000002
CCP1IF                            00000002
CCP1IP                            00000002
CCP1M0                            00000000
CCP1M1                            00000001
CCP1M2                            00000002
CCP1M3                            00000003
CCP1X                             00000005
CCP1Y                             00000004
CCP2                              00000001
CCP2A                             00000003
CCP2CON                           00000FBA
CCP2IE                            00000000
CCP2IF                            00000000
CCP2IP                            00000000
CCP2M0                            00000000
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 56


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
CCP2M1                            00000001
CCP2M2                            00000002
CCP2M3                            00000003
CCP2X                             00000005
CCP2Y                             00000004
CCPR1H                            00000FBF
CCPR1L                            00000FBE
CCPR2H                            00000FBC
CCPR2L                            00000FBB
CFGS                              00000006
CHS0                              00000003
CHS1                              00000004
CHS2                              00000005
CK                                00000006
CKE                               00000006
CKP                               00000004
CLKO                              00000006
CREN                              00000004
CS                                00000002
CSRC                              00000007
D                                 00000005
DATA_ADDRESS                      00000005
DC                                00000001
DC1B0                             00000004
DC1B1                             00000005
DC2B0                             00000004
DC2B1                             00000005
DONE                              00000002
D_A                               00000005
EEADR                             00000FA9
EECON1                            00000FA6
EECON2                            00000FA7
EEDATA                            00000FA8
EEIE                              00000004
EEIF                              00000004
EEIP                              00000004
EEPGD                             00000007
FAST                              00000001
FERR                              00000002
FREE                              00000004
FSR0                              00000000
FSR0H                             00000FEA
FSR0L                             00000FE9
FSR1                              00000001
FSR1H                             00000FE2
FSR1L                             00000FE1
FSR2                              00000002
FSR2H                             00000FDA
FSR2L                             00000FD9
GCEN                              00000007
GIE                               00000007
GIEH                              00000007
GIEL                              00000006
GO                                00000002
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 57


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
GO_DONE                           00000002
I2C_DAT                           00000005
I2C_READ                          00000002
I2C_START                         00000003
I2C_STOP                          00000004
IBF                               00000007
IBOV                              00000005
INDF0                             00000FEF
INDF1                             00000FE7
INDF2                             00000FDF
INT0                              00000000
INT0E                             00000004
INT0F                             00000001
INT0IE                            00000004
INT0IF                            00000001
INT1                              00000001
INT1IE                            00000003
INT1IF                            00000000
INT1IP                            00000006
INT2                              00000002
INT2IE                            00000004
INT2IF                            00000001
INT2IP                            00000007
INTCON                            00000FF2
INTCON1                           00000FF2
INTCON2                           00000FF1
INTCON3                           00000FF0
INTEDG0                           00000006
INTEDG1                           00000005
INTEDG2                           00000004
IPEN                              00000007
IPR1                              00000F9F
IPR2                              00000FA2
IRQ_TMP1                          0000000B
IRQ_TMP2                          0000000C
IRQ_TMP3                          0000000D
IRQ_TMP4                          0000000E
IRQ_TMP5                          0000000F
IRVST                             00000005
LATA                              00000F89
LATB                              00000F8A
LATC                              00000F8B
LATD                              00000F8C
LATE                              00000F8D
LVDCON                            00000FD2
LVDEN                             00000004
LVDIE                             00000002
LVDIF                             00000002
LVDIN                             00000005
LVDIP                             00000002
LVDL0                             00000000
LVDL1                             00000001
LVDL2                             00000002
LVDL3                             00000003
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 58


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_AIN_DeadbandGet              00002C5C
MIOS_AIN_DeadbandSet              00002C60
MIOS_AIN_DynamicPrioGet           00002DD4
MIOS_AIN_DynamicPrioSet           00002DD0
MIOS_AIN_LastPinsGet              00002DD8
MIOS_AIN_Muxed                    00002C64
MIOS_AIN_NumberGet                00002C68
MIOS_AIN_NumberSet                00002C6C
MIOS_AIN_Pin7bitGet               00002C70
MIOS_AIN_PinGet                   00002C74
MIOS_AIN_PinLSBGet                00002C78
MIOS_AIN_PinMSBGet                00002C7C
MIOS_AIN_UnMuxed                  00002C80
MIOS_BANKSTICK_CtrlGet            00002DE0
MIOS_BANKSTICK_CtrlSet            00002DDC
MIOS_BANKSTICK_Read               00002D70
MIOS_BANKSTICK_ReadPage           00002E30
MIOS_BANKSTICK_Write              00002D74
MIOS_BANKSTICK_WritePage          00002DE4
MIOS_BOX_CFG0                     00000000
MIOS_BOX_CFG0_20MHz               00000007
MIOS_BOX_CFG0_LCD_TYPE0           00000000
MIOS_BOX_CFG0_LCD_TYPE1           00000001
MIOS_BOX_CFG0_LCD_TYPE2           00000002
MIOS_BOX_CFG0_MBLINK              00000005
MIOS_BOX_CFG0_MERGER              00000004
MIOS_BOX_CFG0_TO_HOST             00000006
MIOS_BOX_CFG0_USE_GLCD            00000003
MIOS_BOX_CFG1                     00000001
MIOS_BOX_CFG1_BS_A0               00000000
MIOS_BOX_CFG1_BS_A1               00000001
MIOS_BOX_CFG1_BS_A2               00000002
MIOS_BOX_CFG1_BS_DIS_VERIFY       00000003
MIOS_BOX_CFG1_IIC_STRETCH_CLK     00000004
MIOS_BOX_STAT                     00000002
MIOS_BOX_STAT_AUTOREPEAT          00000004
MIOS_BOX_STAT_BS_AVAILABLE        00000000
MIOS_BOX_STAT_FERR                00000006
MIOS_BOX_STAT_MBLINK_TUNNEL_PASS  00000001
MIOS_BOX_STAT_MLCD_TRANSFER       00000005
MIOS_BOX_STAT_SUSPEND_ALL         00000002
MIOS_BOX_STAT_SUSPEND_USER        00000003
MIOS_CLCD_SpecialCharInit         00002DC8
MIOS_CLCD_SpecialCharsInit        00002DCC
MIOS_DIN_PinAutoRepeatDisable     00002DC0
MIOS_DIN_PinAutoRepeatEnable      00002DBC
MIOS_DIN_PinAutoRepeatGet         00002DC4
MIOS_DIN_PinGet                   00002CB4
MIOS_DIN_SRGet                    00002CB8
MIOS_DOUT_PinGet                  00002CBC
MIOS_DOUT_PinSet                  00002CC0
MIOS_DOUT_PinSet0                 00002CC4
MIOS_DOUT_PinSet1                 00002CC8
MIOS_DOUT_SRGet                   00002CCC
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 59


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_DOUT_SRSet                   00002CD0
MIOS_Delay                        00002D9C
MIOS_EEPROM_Read                  00002D60
MIOS_EEPROM_ReadPage              00002E34
MIOS_EEPROM_Write                 00002D64
MIOS_EEPROM_WritePage             00002E38
MIOS_ENC_Abs7bitAdd               00002CD4
MIOS_ENC_Abs7bitGet               00002CD8
MIOS_ENC_Abs7bitSet               00002CDC
MIOS_ENC_MODE_DETENTED            00000080
MIOS_ENC_MODE_DETENTED2           00000081
MIOS_ENC_MODE_NON_DETENTED        00000000
MIOS_ENC_NumberGet                00002CE0
MIOS_ENC_PIN_TABLE                00003280
MIOS_ENC_SPEED_FAST               00000002
MIOS_ENC_SPEED_NORMAL             00000001
MIOS_ENC_SPEED_SLOW               00000000
MIOS_ENC_SpeedGet                 00002CE4
MIOS_ENC_SpeedSet                 00002CE8
MIOS_FLASH_Read                   00002D68
MIOS_FLASH_Write                  00002D6C
MIOS_GLCD_BUFFER                  00000570
MIOS_GLCD_FONT                    00007CFC
MIOS_GLCD_FONT_HEIGHT             0000057E
MIOS_GLCD_FONT_OFFSET             00000580
MIOS_GLCD_FONT_PTRH               00000582
MIOS_GLCD_FONT_PTRL               00000581
MIOS_GLCD_FONT_WIDTH              0000057D
MIOS_GLCD_FONT_X0                 0000057F
MIOS_GLCD_FontInit                00002D54
MIOS_GLCD_GCURSOR_X               0000057B
MIOS_GLCD_GCURSOR_Y               0000057C
MIOS_GLCD_GCursorGet              00002D58
MIOS_GLCD_GCursorSet              00002D5C
MIOS_GLCD_TMP1                    00000585
MIOS_GLCD_TMP2                    00000586
MIOS_GLCD_TMP3                    00000587
MIOS_GLCD_TMP4                    00000588
MIOS_GPCounterGet                 00002DA0
MIOS_HLP_16bitAddSaturate         00002DB8
MIOS_HLP_AddressFromTable         00002D84
MIOS_HLP_Dec2BCD                  00002DE8
MIOS_HLP_GetBitANDMask            00002D88
MIOS_HLP_GetBitORMask             00002D8C
MIOS_HLP_GetIndex_2bytes          00002D90
MIOS_HLP_GetIndex_4bytes          00002D94
MIOS_HLP_IndirectJump             00002D98
MIOS_IIC_AckSend                  00002E14
MIOS_IIC_ByteReceive              00002E10
MIOS_IIC_ByteSend                 00002E0C
MIOS_IIC_CtrlGet                  00002E20
MIOS_IIC_CtrlSet                  00002E1C
MIOS_IIC_NakSend                  00002E18
MIOS_IIC_Start                    00002E04
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 60


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_IIC_Stop                     00002E08
MIOS_LCD_CURSOR_POS               0000057A
MIOS_LCD_CURSOR_POS_REAL          0000058D
MIOS_LCD_Clear                    00002D04
MIOS_LCD_Cmd                      00002D08
MIOS_LCD_CursorGet                00002D0C
MIOS_LCD_CursorSet                00002D10
MIOS_LCD_Data                     00002D14
MIOS_LCD_Init                     00002D18
MIOS_LCD_MessageStart             00002DF4
MIOS_LCD_MessageStop              00002DF8
MIOS_LCD_OPTION1                  00000578
MIOS_LCD_OPTION2                  00000579
MIOS_LCD_PrintBCD1                00002D1C
MIOS_LCD_PrintBCD2                00002D20
MIOS_LCD_PrintBCD3                00002D24
MIOS_LCD_PrintBCD4                00002DEC
MIOS_LCD_PrintBCD5                00002DF0
MIOS_LCD_PrintChar                00002D28
MIOS_LCD_PrintHex1                00002D2C
MIOS_LCD_PrintHex2                00002D30
MIOS_LCD_PrintMessage             00002D34
MIOS_LCD_PrintPreconfString       00002D38
MIOS_LCD_PrintString              00002D3C
MIOS_LCD_TIMEOUT0                 00000583
MIOS_LCD_TIMEOUT1                 00000584
MIOS_LCD_TYPE_CLCD                00000000
MIOS_LCD_TYPE_GLCD0               00000001
MIOS_LCD_TYPE_GLCD1               00000002
MIOS_LCD_TYPE_GLCD2               00000003
MIOS_LCD_TYPE_GLCD3               00000004
MIOS_LCD_TYPE_GLCD4               00000005
MIOS_LCD_TYPE_GLCD_CUSTOM         00000007
MIOS_LCD_TYPE_MLCD                00000006
MIOS_LCD_TypeAutoSet              00002D40
MIOS_LCD_TypeGet                  00002D44
MIOS_LCD_TypeSet                  00002D48
MIOS_LCD_Y0_OFFSET                00000589
MIOS_LCD_Y1_OFFSET                0000058A
MIOS_LCD_Y2_OFFSET                0000058B
MIOS_LCD_Y3_OFFSET                0000058C
MIOS_LCD_YAddressGet              00002D4C
MIOS_LCD_YAddressSet              00002D50
MIOS_MF_DeadbandGet               00002C94
MIOS_MF_DeadbandSet               00002C98
MIOS_MF_Disable                   00002C9C
MIOS_MF_Enable                    00002CA0
MIOS_MF_FaderMove                 00002CA4
MIOS_MF_PWM_DutyCycleDownGet      00002C84
MIOS_MF_PWM_DutyCycleDownSet      00002C88
MIOS_MF_PWM_DutyCycleUpGet        00002C8C
MIOS_MF_PWM_DutyCycleUpSet        00002C90
MIOS_MF_PWM_PeriodGet             00002DFC
MIOS_MF_PWM_PeriodSet             00002E00
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 61


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_MF_SuspendDisable            00002CA8
MIOS_MF_SuspendEnable             00002CAC
MIOS_MF_SuspendGet                00002CB0
MIOS_MF_TouchDetectionReset       00002E2C
MIOS_MIDI_BeginStream             00002C00
MIOS_MIDI_DeviceIDAutoSet         00002C04
MIOS_MIDI_DeviceIDGet             00002C08
MIOS_MIDI_DeviceIDSet             00002C0C
MIOS_MIDI_EndStream               00002C10
MIOS_MIDI_INTERFACE_COMMON        00000000
MIOS_MIDI_INTERFACE_TO_HOST       00000001
MIOS_MIDI_Init                    00002C14
MIOS_MIDI_InterfaceAutoSet        00002C18
MIOS_MIDI_InterfaceGet            00002C1C
MIOS_MIDI_InterfaceSet            00002C20
MIOS_MIDI_MERGER_DISABLED         00000000
MIOS_MIDI_MERGER_ENABLED          00000001
MIOS_MIDI_MERGER_MBLINK_EP        00000002
MIOS_MIDI_MERGER_MBLINK_FP        00000003
MIOS_MIDI_MergerGet               00002C24
MIOS_MIDI_MergerSet               00002C28
MIOS_MIDI_RxBufferFree            00002C2C
MIOS_MIDI_RxBufferGet             00002C30
MIOS_MIDI_RxBufferPut             00002C34
MIOS_MIDI_RxBufferUsed            00002C38
MIOS_MIDI_TxBufferFlush           00002C3C
MIOS_MIDI_TxBufferFree            00002C40
MIOS_MIDI_TxBufferGet             00002C44
MIOS_MIDI_TxBufferPut             00002C48
MIOS_MIDI_TxBufferUsed            00002C4C
MIOS_MPROC_EVENT_TABLE            00003080
MIOS_MPROC_MergerDisable          00002C50
MIOS_MPROC_MergerEnable           00002C54
MIOS_MPROC_MergerGet              00002C58
MIOS_PARAMETER1                   00000003
MIOS_PARAMETER2                   00000004
MIOS_PARAMETER3                   00000005
MIOS_RESERVED_144                 00002E40
MIOS_RESERVED_145                 00002E44
MIOS_RESERVED_146                 00002E48
MIOS_RESERVED_147                 00002E4C
MIOS_RESERVED_148                 00002E50
MIOS_RESERVED_149                 00002E54
MIOS_RESERVED_150                 00002E58
MIOS_RESERVED_151                 00002E5C
MIOS_RESERVED_152                 00002E60
MIOS_RESERVED_153                 00002E64
MIOS_RESERVED_154                 00002E68
MIOS_RESERVED_155                 00002E6C
MIOS_RESERVED_156                 00002E70
MIOS_RESERVED_157                 00002E74
MIOS_RESERVED_158                 00002E78
MIOS_RESERVED_159                 00002E7C
MIOS_RESERVED_160                 00002E80
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 62


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_RESERVED_161                 00002E84
MIOS_RESERVED_162                 00002E88
MIOS_RESERVED_163                 00002E8C
MIOS_RESERVED_164                 00002E90
MIOS_RESERVED_165                 00002E94
MIOS_RESERVED_166                 00002E98
MIOS_RESERVED_167                 00002E9C
MIOS_RESERVED_168                 00002EA0
MIOS_RESERVED_169                 00002EA4
MIOS_RESERVED_170                 00002EA8
MIOS_RESERVED_171                 00002EAC
MIOS_RESERVED_172                 00002EB0
MIOS_RESERVED_173                 00002EB4
MIOS_RESERVED_174                 00002EB8
MIOS_RESERVED_175                 00002EBC
MIOS_RESERVED_176                 00002EC0
MIOS_RESERVED_177                 00002EC4
MIOS_RESERVED_178                 00002EC8
MIOS_RESERVED_179                 00002ECC
MIOS_RESERVED_180                 00002ED0
MIOS_RESERVED_181                 00002ED4
MIOS_RESERVED_182                 00002ED8
MIOS_RESERVED_183                 00002EDC
MIOS_RESERVED_184                 00002EE0
MIOS_RESERVED_185                 00002EE4
MIOS_RESERVED_186                 00002EE8
MIOS_RESERVED_187                 00002EEC
MIOS_RESERVED_188                 00002EF0
MIOS_RESERVED_189                 00002EF4
MIOS_RESERVED_190                 00002EF8
MIOS_RESERVED_191                 00002EFC
MIOS_RESERVED_192                 00002F00
MIOS_RESERVED_193                 00002F04
MIOS_RESERVED_194                 00002F08
MIOS_RESERVED_195                 00002F0C
MIOS_RESERVED_196                 00002F10
MIOS_RESERVED_197                 00002F14
MIOS_RESERVED_198                 00002F18
MIOS_RESERVED_199                 00002F1C
MIOS_RESERVED_200                 00002F20
MIOS_RESERVED_201                 00002F24
MIOS_RESERVED_202                 00002F28
MIOS_RESERVED_203                 00002F2C
MIOS_RESERVED_204                 00002F30
MIOS_RESERVED_205                 00002F34
MIOS_RESERVED_206                 00002F38
MIOS_RESERVED_207                 00002F3C
MIOS_RESERVED_208                 00002F40
MIOS_RESERVED_209                 00002F44
MIOS_RESERVED_210                 00002F48
MIOS_RESERVED_211                 00002F4C
MIOS_RESERVED_212                 00002F50
MIOS_RESERVED_213                 00002F54
MIOS_RESERVED_214                 00002F58
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 63


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_RESERVED_215                 00002F5C
MIOS_RESERVED_216                 00002F60
MIOS_RESERVED_217                 00002F64
MIOS_RESERVED_218                 00002F68
MIOS_RESERVED_219                 00002F6C
MIOS_RESERVED_220                 00002F70
MIOS_RESERVED_221                 00002F74
MIOS_RESERVED_222                 00002F78
MIOS_RESERVED_223                 00002F7C
MIOS_RESERVED_224                 00002F80
MIOS_RESERVED_225                 00002F84
MIOS_RESERVED_226                 00002F88
MIOS_RESERVED_227                 00002F8C
MIOS_RESERVED_228                 00002F90
MIOS_RESERVED_229                 00002F94
MIOS_RESERVED_230                 00002F98
MIOS_RESERVED_231                 00002F9C
MIOS_RESERVED_232                 00002FA0
MIOS_RESERVED_233                 00002FA4
MIOS_RESERVED_234                 00002FA8
MIOS_RESERVED_235                 00002FAC
MIOS_RESERVED_236                 00002FB0
MIOS_RESERVED_237                 00002FB4
MIOS_RESERVED_238                 00002FB8
MIOS_RESERVED_239                 00002FBC
MIOS_RESERVED_240                 00002FC0
MIOS_RESERVED_241                 00002FC4
MIOS_RESERVED_242                 00002FC8
MIOS_RESERVED_243                 00002FCC
MIOS_RESERVED_244                 00002FD0
MIOS_RESERVED_245                 00002FD4
MIOS_RESERVED_246                 00002FD8
MIOS_RESERVED_247                 00002FDC
MIOS_RESERVED_248                 00002FE0
MIOS_RESERVED_249                 00002FE4
MIOS_RESERVED_250                 00002FE8
MIOS_RESERVED_251                 00002FEC
MIOS_RESERVED_252                 00002FF0
MIOS_RESERVED_253                 00002FF4
MIOS_RESERVED_254                 00002FF8
MIOS_RESERVED_255                 00002FFC
MIOS_Reset                        00002DA4
MIOS_SRIO_DebounceGet             00002E28
MIOS_SRIO_DebounceSet             00002E24
MIOS_SRIO_NumberGet               00002CEC
MIOS_SRIO_NumberSet               00002CF0
MIOS_SRIO_TS_SensitivityGet       00002CF4
MIOS_SRIO_TS_SensitivitySet       00002CF8
MIOS_SRIO_UpdateFrqGet            00002CFC
MIOS_SRIO_UpdateFrqSet            00002D00
MIOS_SystemResume                 00002DA8
MIOS_SystemSuspend                00002DAC
MIOS_TIMER_Init                   00002D78
MIOS_TIMER_ReInit                 00002E3C
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 64


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
MIOS_TIMER_Start                  00002D7C
MIOS_TIMER_Stop                   00002D80
MIOS_UserResume                   00002DB0
MIOS_UserSuspend                  00002DB4
N                                 00000004
NOT_A                             00000005
NOT_ADDRESS                       00000005
NOT_BOR                           00000000
NOT_DONE                          00000002
NOT_PD                            00000002
NOT_POR                           00000001
NOT_RBPU                          00000007
NOT_RC8                           00000006
NOT_RI                            00000004
NOT_T1SYNC                        00000002
NOT_T3SYNC                        00000002
NOT_TO                            00000003
NOT_TX8                           00000006
NOT_W                             00000002
NOT_WRITE                         00000002
OBF                               00000006
OERR                              00000001
OSC2                              00000006
OSCCON                            00000FD3
OV                                00000003
P                                 00000004
PCFG0                             00000000
PCFG1                             00000001
PCFG2                             00000002
PCFG3                             00000003
PCL                               00000FF9
PCLATH                            00000FFA
PCLATU                            00000FFB
PD                                00000002
PEIE                              00000006
PEN                               00000002
PIE1                              00000F9D
PIE2                              00000FA0
PIR1                              00000F9E
PIR2                              00000FA1
PLUSW0                            00000FEB
PLUSW1                            00000FE3
PLUSW2                            00000FDB
POR                               00000001
PORTA                             00000F80
PORTB                             00000F81
PORTC                             00000F82
PORTD                             00000F83
PORTE                             00000F84
POSTDEC0                          00000FED
POSTDEC1                          00000FE5
POSTDEC2                          00000FDD
POSTINC0                          00000FEE
POSTINC1                          00000FE6
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 65


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
POSTINC2                          00000FDE
PR2                               00000FCB
PREINC0                           00000FEC
PREINC1                           00000FE4
PREINC2                           00000FDC
PRODH                             00000FF4
PRODL                             00000FF3
PSA                               00000003
PSP0                              00000000
PSP1                              00000001
PSP2                              00000002
PSP3                              00000003
PSP4                              00000004
PSP5                              00000005
PSP6                              00000006
PSP7                              00000007
PSPIE                             00000007
PSPIF                             00000007
PSPIP                             00000007
PSPMODE                           00000004
R                                 00000002
RA0                               00000000
RA1                               00000001
RA2                               00000002
RA3                               00000003
RA4                               00000004
RA5                               00000005
RA6                               00000006
RB0                               00000000
RB1                               00000001
RB2                               00000002
RB3                               00000003
RB4                               00000004
RB5                               00000005
RB6                               00000006
RB7                               00000007
RBIE                              00000003
RBIF                              00000000
RBIP                              00000000
RBPU                              00000007
RC0                               00000000
RC1                               00000001
RC2                               00000002
RC3                               00000003
RC4                               00000004
RC5                               00000005
RC6                               00000006
RC7                               00000007
RC8_9                             00000006
RC9                               00000006
RCD8                              00000000
RCEN                              00000003
RCIE                              00000005
RCIF                              00000005
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 66


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
RCIP                              00000005
RCON                              00000FD0
RCREG                             00000FAE
RCSTA                             00000FAB
RD                                00000000
RD0                               00000000
RD1                               00000001
RD16                              00000007
RD2                               00000002
RD3                               00000003
RD4                               00000004
RD5                               00000005
RD6                               00000006
RD7                               00000007
RE0                               00000000
RE1                               00000001
RE2                               00000002
READ_WRITE                        00000002
RI                                00000004
RSEN                              00000001
RX                                00000007
RX9                               00000006
RX9D                              00000000
R_W                               00000002
S                                 00000003
SCK                               00000003
SCL                               00000003
SCS                               00000000
SDA                               00000004
SDI                               00000004
SDO                               00000005
SEN                               00000000
SMP                               00000007
SPBRG                             00000FAF
SPEN                              00000007
SREN                              00000005
SS                                00000005
SSPADD                            00000FC8
SSPBUF                            00000FC9
SSPCON1                           00000FC6
SSPCON2                           00000FC5
SSPEN                             00000005
SSPIE                             00000003
SSPIF                             00000003
SSPIP                             00000003
SSPM0                             00000000
SSPM1                             00000001
SSPM2                             00000002
SSPM3                             00000003
SSPOV                             00000006
SSPSTAT                           00000FC7
STATUS                            00000FD8
STKFUL                            00000007
STKPTR                            00000FFC
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 67


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
STKUNF                            00000006
SWDTE                             00000000
SWDTEN                            00000000
SYNC                              00000004
T08BIT                            00000006
T0CKI                             00000004
T0CON                             00000FD5
T0CS                              00000005
T0IE                              00000005
T0IF                              00000002
T0IP                              00000002
T0PS0                             00000000
T0PS1                             00000001
T0PS2                             00000002
T0SE                              00000004
T1CKI                             00000000
T1CKPS0                           00000004
T1CKPS1                           00000005
T1CON                             00000FCD
T1INSYNC                          00000002
T1OSCEN                           00000003
T1OSI                             00000001
T1OSO                             00000000
T1SYNC                            00000002
T2CKPS0                           00000000
T2CKPS1                           00000001
T2CON                             00000FCA
T3CCP1                            00000003
T3CCP2                            00000006
T3CKPS0                           00000004
T3CKPS1                           00000005
T3CON                             00000FB1
T3INSYNC                          00000002
T3SYNC                            00000002
TABLAT                            00000FF5
TBLPTRH                           00000FF7
TBLPTRL                           00000FF6
TBLPTRU                           00000FF8
TMP1                              00000006
TMP2                              00000007
TMP3                              00000008
TMP4                              00000009
TMP5                              0000000A
TMR0H                             00000FD7
TMR0IE                            00000005
TMR0IF                            00000002
TMR0IP                            00000002
TMR0L                             00000FD6
TMR0ON                            00000007
TMR1CS                            00000001
TMR1H                             00000FCF
TMR1IE                            00000000
TMR1IF                            00000000
TMR1IP                            00000000
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 68


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
TMR1L                             00000FCE
TMR1ON                            00000000
TMR2                              00000FCC
TMR2IE                            00000001
TMR2IF                            00000001
TMR2IP                            00000001
TMR2ON                            00000002
TMR3CS                            00000001
TMR3H                             00000FB3
TMR3IE                            00000001
TMR3IF                            00000001
TMR3IP                            00000001
TMR3L                             00000FB2
TMR3ON                            00000000
TO                                00000003
TOSH                              00000FFE
TOSL                              00000FFD
TOSU                              00000FFF
TOUTPS0                           00000003
TOUTPS1                           00000004
TOUTPS2                           00000005
TOUTPS3                           00000006
TRISA                             00000F92
TRISB                             00000F93
TRISC                             00000F94
TRISD                             00000F95
TRISE                             00000F96
TRISE0                            00000000
TRISE1                            00000001
TRISE2                            00000002
TRMT                              00000001
TX                                00000006
TX8_9                             00000006
TX9                               00000006
TX9D                              00000000
TXD8                              00000000
TXEN                              00000005
TXIE                              00000004
TXIF                              00000004
TXIP                              00000004
TXREG                             00000FAD
TXSTA                             00000FAC
UA                                00000001
USER_AIN_NotifyChange             000000F8
USER_DIN_NotifyToggle             0000009C
USER_DISPLAY_Init                 00000038
USER_DISPLAY_Tick                 00000044
USER_ENC_NotifyChange             000000AC
USER_Init                         00000000
USER_LCD_Clear                    00003302
USER_LCD_Cmd                      0000330A
USER_LCD_CursorSet                00003304
USER_LCD_Data                     00003308
USER_LCD_Init                     00003300
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 69


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
USER_LCD_PrintChar                00003306
USER_LCD_SpecialCharInit          0000330C
USER_MIDI_NotifyRx                0000009A
USER_MIDI_NotifyTx                00000098
USER_MPROC_DebugTrigger           00000036
USER_MPROC_NotifyFoundEvent       00000066
USER_MPROC_NotifyReceivedByte     0000008C
USER_MPROC_NotifyReceivedEvent    00000050
USER_MPROC_NotifyTimeout          00000080
USER_RESERVED_25                  00003060
USER_RESERVED_26                  00003064
USER_RESERVED_27                  00003068
USER_RESERVED_28                  0000306C
USER_RESERVED_29                  00003070
USER_RESERVED_30                  00003074
USER_RESERVED_31                  00003078
USER_RESERVED_32                  0000307C
USER_SR_Service_Finish            000000DA
USER_SR_Service_Prepare           000000BC
USER_Tick                         0000000C
USER_Timer                        00000018
VREFM                             00000002
VREFP                             00000003
W                                 00000000
WCOL                              00000007
WDTCON                            00000FD1
WR                                00000001
WREG                              00000FE8
WREN                              00000002
WRERR                             00000003
Z                                 00000002
_AIN_NotifyChange                 00000000
_BORV_20_2L                       000000FF
_BORV_27_2L                       000000FB
_BORV_42_2L                       000000F7
_BORV_45_2L                       000000F3
_BOR_OFF_2L                       000000FD
_BOR_ON_2L                        000000FF
_CCP2MX_OFF_3H                    000000FE
_CCP2MX_ON_3H                     000000FF
_CONFIG1H                         00300001
_CONFIG1L                         00300000
_CONFIG2H                         00300003
_CONFIG2L                         00300002
_CONFIG3H                         00300005
_CONFIG3L                         00300004
_CONFIG4H                         00300007
_CONFIG4L                         00300006
_CONFIG5H                         00300009
_CONFIG5L                         00300008
_CONFIG6H                         0030000B
_CONFIG6L                         0030000A
_CONFIG7H                         0030000D
_CONFIG7L                         0030000C
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 70


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
_CP0_OFF_5L                       000000FF
_CP0_ON_5L                        000000FE
_CP1_OFF_5L                       000000FF
_CP1_ON_5L                        000000FD
_CP2_OFF_5L                       000000FF
_CP2_ON_5L                        000000FB
_CP3_OFF_5L                       000000FF
_CP3_ON_5L                        000000F7
_CPB_OFF_5H                       000000FF
_CPB_ON_5H                        000000BF
_CPD_OFF_5H                       000000FF
_CPD_ON_5H                        0000007F
_DEBUG_OFF_4L                     000000FF
_DEBUG_ON_4L                      0000007F
_DEVID1                           003FFFFE
_DEVID2                           003FFFFF
_DIN_NotifyToggle                 00000000
_DISPLAY_Init                     00000000
_DISPLAY_Tick                     00000000
_EBTR0_OFF_7L                     000000FF
_EBTR0_ON_7L                      000000FE
_EBTR1_OFF_7L                     000000FF
_EBTR1_ON_7L                      000000FD
_EBTR2_OFF_7L                     000000FF
_EBTR2_ON_7L                      000000FB
_EBTR3_OFF_7L                     000000FF
_EBTR3_ON_7L                      000000F7
_EBTRB_OFF_7H                     000000FF
_EBTRB_ON_7H                      000000BF
_ECIO_OSC_1H                      000000FD
_EC_OSC_1H                        000000FC
_ENC_NotifyChange                 00000000
_HSPLL_OSC_1H                     000000FE
_HS_OSC_1H                        000000FA
_IDLOC0                           00200000
_IDLOC1                           00200001
_IDLOC2                           00200002
_IDLOC3                           00200003
_IDLOC4                           00200004
_IDLOC5                           00200005
_IDLOC6                           00200006
_IDLOC7                           00200007
_IRQ_TMP1                         0000000B
_IRQ_TMP2                         0000000C
_IRQ_TMP3                         0000000D
_IRQ_TMP4                         0000000E
_IRQ_TMP5                         0000000F
_Init                             00000000
_LP_OSC_1H                        000000F8
_LVP_OFF_4L                       000000FB
_LVP_ON_4L                        000000FF
_MIOS_AIN_DeadbandGet             00002C5C
_MIOS_AIN_DeadbandSet             00002C60
_MIOS_AIN_DynamicPrioGet          00002DD4
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 71


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
_MIOS_AIN_DynamicPrioSet          00002DD0
_MIOS_AIN_LastPinsGet             00002DD8
_MIOS_AIN_Muxed                   00002C64
_MIOS_AIN_NumberGet               00002C68
_MIOS_AIN_NumberSet               00002C6C
_MIOS_AIN_Pin7bitGet              00002C70
_MIOS_AIN_PinGet                  00000000
_MIOS_AIN_PinLSBGet               00002C78
_MIOS_AIN_PinMSBGet               00002C7C
_MIOS_AIN_UnMuxed                 00002C80
_MIOS_BANKSTICK_CtrlGet           00002DE0
_MIOS_BANKSTICK_CtrlSet           00002DDC
_MIOS_BANKSTICK_Read              00000000
_MIOS_BANKSTICK_ReadPage          00000000
_MIOS_BANKSTICK_Write             00000000
_MIOS_BANKSTICK_WritePage         00000000
_MIOS_BOX_CFG0                    00000000
_MIOS_BOX_CFG1                    00000001
_MIOS_BOX_STAT                    00000002
_MIOS_CLCD_SpecialCharInit        00000000
_MIOS_CLCD_SpecialCharsInit       00000000
_MIOS_DIN_PinAutoRepeatDisable    00002DC0
_MIOS_DIN_PinAutoRepeatEnable     00002DBC
_MIOS_DIN_PinAutoRepeatGet        00002DC4
_MIOS_DIN_PinGet                  00002CB4
_MIOS_DIN_SRGet                   00002CB8
_MIOS_DOUT_PinGet                 00002CBC
_MIOS_DOUT_PinSet                 00000000
_MIOS_DOUT_PinSet0                00002CC4
_MIOS_DOUT_PinSet1                00002CC8
_MIOS_DOUT_SRGet                  00002CCC
_MIOS_DOUT_SRSet                  00000000
_MIOS_Delay                       00002D9C
_MIOS_EEPROM_Read                 00000000
_MIOS_EEPROM_ReadPage             00000000
_MIOS_EEPROM_Write                00000000
_MIOS_EEPROM_WritePage            00000000
_MIOS_ENC_Abs7bitAdd              00000000
_MIOS_ENC_Abs7bitGet              00002CD8
_MIOS_ENC_Abs7bitSet              00000000
_MIOS_ENC_NumberGet               00002CE0
_MIOS_ENC_PIN_TABLE               00003280
_MIOS_ENC_SpeedGet                00000000
_MIOS_ENC_SpeedSet                00000000
_MIOS_FLASH_Read                  00000000
_MIOS_FLASH_Write                 00000000
_MIOS_GLCD_FontInit               00000000
_MIOS_GLCD_GCursorGet             00002D58
_MIOS_GLCD_GCursorSet             00000000
_MIOS_GPCounterGet                00002DA0
_MIOS_HLP_16bitAddSaturate        00000000
_MIOS_HLP_Dec2BCD                 00000000
_MIOS_HLP_GetBitANDMask           00002D88
_MIOS_HLP_GetBitORMask            00002D8C
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 72


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
_MIOS_IIC_AckSend                 00002E14
_MIOS_IIC_ByteReceive             00002E10
_MIOS_IIC_ByteSend                00002E0C
_MIOS_IIC_CtrlGet                 00002E20
_MIOS_IIC_CtrlSet                 00002E1C
_MIOS_IIC_NakSend                 00002E18
_MIOS_IIC_Start                   00002E04
_MIOS_IIC_Stop                    00002E08
_MIOS_LCD_Clear                   00002D04
_MIOS_LCD_Cmd                     00002D08
_MIOS_LCD_CursorGet               00002D0C
_MIOS_LCD_CursorSet               00002D10
_MIOS_LCD_Data                    00002D14
_MIOS_LCD_Init                    00002D18
_MIOS_LCD_MessageStart            00002DF4
_MIOS_LCD_MessageStop             00002DF8
_MIOS_LCD_PrintBCD1               00002D1C
_MIOS_LCD_PrintBCD2               00002D20
_MIOS_LCD_PrintBCD3               00002D24
_MIOS_LCD_PrintBCD4               00000000
_MIOS_LCD_PrintBCD5               00000000
_MIOS_LCD_PrintCString            00000000
_MIOS_LCD_PrintCStringLoop        0000000E
_MIOS_LCD_PrintCString_End        0000001A
_MIOS_LCD_PrintChar               00002D28
_MIOS_LCD_PrintHex1               00002D2C
_MIOS_LCD_PrintHex2               00002D30
_MIOS_LCD_PrintMessage            00000000
_MIOS_LCD_PrintPreconfString      00000000
_MIOS_LCD_PrintString             00000000
_MIOS_LCD_TypeAutoSet             00002D40
_MIOS_LCD_TypeGet                 00002D44
_MIOS_LCD_TypeSet                 00000000
_MIOS_LCD_YAddressGet             00000000
_MIOS_LCD_YAddressSet             00000000
_MIOS_MF_DeadbandGet              00002C94
_MIOS_MF_DeadbandSet              00002C98
_MIOS_MF_Disable                  00002C9C
_MIOS_MF_Enable                   00002CA0
_MIOS_MF_FaderMove                00000000
_MIOS_MF_PWM_DutyCycleDownGet     00002C84
_MIOS_MF_PWM_DutyCycleDownSet     00002C88
_MIOS_MF_PWM_DutyCycleUpGet       00002C8C
_MIOS_MF_PWM_DutyCycleUpSet       00002C90
_MIOS_MF_PWM_PeriodGet            00002DFC
_MIOS_MF_PWM_PeriodSet            00002E00
_MIOS_MF_SuspendDisable           00002CA8
_MIOS_MF_SuspendEnable            00002CAC
_MIOS_MF_SuspendGet               00002CB0
_MIOS_MF_TouchDetectionReset      00002E2C
_MIOS_MIDI_BeginStream            00002C00
_MIOS_MIDI_DeviceIDAutoSet        00002C04
_MIOS_MIDI_DeviceIDGet            00002C08
_MIOS_MIDI_DeviceIDSet            00002C0C
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 73


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
_MIOS_MIDI_EndStream              00002C10
_MIOS_MIDI_Init                   00002C14
_MIOS_MIDI_InterfaceAutoSet       00002C18
_MIOS_MIDI_InterfaceGet           00002C1C
_MIOS_MIDI_InterfaceSet           00002C20
_MIOS_MIDI_MergerGet              00002C24
_MIOS_MIDI_MergerSet              00002C28
_MIOS_MIDI_RxBufferFree           00002C2C
_MIOS_MIDI_RxBufferGet            00002C30
_MIOS_MIDI_RxBufferPut            00002C34
_MIOS_MIDI_RxBufferUsed           00002C38
_MIOS_MIDI_TxBufferFlush          00002C3C
_MIOS_MIDI_TxBufferFree           00002C40
_MIOS_MIDI_TxBufferGet            00002C44
_MIOS_MIDI_TxBufferPut            00002C48
_MIOS_MIDI_TxBufferUsed           00002C4C
_MIOS_MPROC_EVENT_TABLE           00003080
_MIOS_MPROC_MergerDisable         00002C50
_MIOS_MPROC_MergerEnable          00002C54
_MIOS_MPROC_MergerGet             00002C58
_MIOS_PARAMETER1                  00000003
_MIOS_PARAMETER2                  00000004
_MIOS_PARAMETER3                  00000005
_MIOS_Reset                       00002DA4
_MIOS_SRIO_DebounceGet            00002E28
_MIOS_SRIO_DebounceSet            00002E24
_MIOS_SRIO_NumberGet              00002CEC
_MIOS_SRIO_NumberSet              00002CF0
_MIOS_SRIO_TS_SensitivityGet      00002CF4
_MIOS_SRIO_TS_SensitivitySet      00002CF8
_MIOS_SRIO_UpdateFrqGet           00002CFC
_MIOS_SRIO_UpdateFrqSet           00002D00
_MIOS_SystemResume                00002DA8
_MIOS_SystemSuspend               00002DAC
_MIOS_TIMER_Init                  00000000
_MIOS_TIMER_ReInit                00000000
_MIOS_TIMER_Start                 00002D7C
_MIOS_TIMER_Stop                  00002D80
_MIOS_UserResume                  00002DB0
_MIOS_UserSuspend                 00002DB4
_MPROC_NotifyFoundEvent           00000000
_MPROC_NotifyReceivedByte         00000000
_MPROC_NotifyReceivedEvnt         00000000
_MPROC_NotifyTimeout              00000000
_OSCS_OFF_1H                      000000FF
_OSCS_ON_1H                       000000DF
_PWRT_OFF_2L                      000000FF
_PWRT_ON_2L                       000000FE
_RCIO_OSC_1H                      000000FF
_RC_OSC_1H                        000000FB
_SR_Service_Finish                00000000
_SR_Service_Prepare               00000000
_STVR_OFF_4L                      000000FE
_STVR_ON_4L                       000000FF
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 74


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
_TMP1                             00000006
_TMP2                             00000007
_TMP3                             00000008
_TMP4                             00000009
_TMP5                             0000000A
_Tick                             00000000
_Timer                            00000000
_USER_AIN_NotifyChange            00003028
_USER_DIN_NotifyToggle            00003020
_USER_DISPLAY_Init                00003010
_USER_DISPLAY_Tick                00003014
_USER_ENC_NotifyChange            00003024
_USER_LCD_Clear                   00003040
_USER_LCD_Cmd                     00003058
_USER_LCD_CursorSet               00003044
_USER_LCD_Data                    00003054
_USER_LCD_Init                    0000303C
_USER_LCD_PrintChar               00003048
_USER_LCD_SpecialCharInit         0000305C
_USER_MIDI_NotifyRx               0000304C
_USER_MIDI_NotifyTx               00003050
_USER_MPROC_DebugTrigger          0000300C
_USER_MPROC_NotifyFoundEvent      00003038
_USER_MPROC_NotifyReceivedByte    0000302C
_USER_MPROC_NotifyReceivedEvent   00003034
_USER_MPROC_NotifyTimeout         00003030
_USER_SR_Service_Finish           0000301C
_USER_SR_Service_Prepare          00003018
_USER_Tick                        00003004
_USER_Timer                       00003008
_User_Init                        00003000
_WDTPS_128_2H                     000000FF
_WDTPS_16_2H                      000000F9
_WDTPS_1_2H                       000000F1
_WDTPS_2_2H                       000000F3
_WDTPS_32_2H                      000000FB
_WDTPS_4_2H                       000000F5
_WDTPS_64_2H                      000000FD
_WDTPS_8_2H                       000000F7
_WDT_OFF_2H                       000000FE
_WDT_ON_2H                        000000FF
_WRT0_OFF_6L                      000000FF
_WRT0_ON_6L                       000000FE
_WRT1_OFF_6L                      000000FF
_WRT1_ON_6L                       000000FD
_WRT2_OFF_6L                      000000FF
_WRT2_ON_6L                       000000FB
_WRT3_OFF_6L                      000000FF
_WRT3_ON_6L                       000000F7
_WRTB_OFF_6H                      000000FF
_WRTB_ON_6H                       000000BF
_WRTC_OFF_6H                      000000FF
_WRTC_ON_6H                       000000DF
_WRTD_OFF_6H                      000000FF
gpasm-0.13.4 beta               mios_wrapper\mios_wrapper.asm2-10-2007  01:08:14          PAGE 75


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE
 
_WRTD_ON_6H                       0000007F
_XT_OSC_1H                        000000F9
__18F452                          00000001
DDRA                              TRISA          
DDRB                              TRISB          
DDRC                              TRISC          
DDRD                              TRISD          
DDRE                              TRISE          
PARAMETER_PASSING_TEST            0
PIC_DERIVATIVE_TYPE               0


Errors   :       0
Warnings :       0 reported,       0 suppressed
Messages :       0 reported,       0 suppressed

