⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lst

📁 gps mmc logging using z8f6421 zilog microcontroller
💻 LST
📖 第 1 页 / 共 5 页
字号:
                           A   218    .define "longRMC"
                           A   219    .alias "_longRMC"
                           A   220    .class 83
                           A   221    .value _longRMC
                           A   222    .dim 15
                           A   223    .type 98
                           A   224    .type 0
                           A   225    .endef
00002E                     A   226    _EW:
00002E                     A   227    	DS	1
                           A   228    .define "EW"
                           A   229    .alias "_EW"
                           A   230    .class 83
                           A   231    .value _EW
                           A   232    .type 2
                           A   233    .type 0
                           A   234    .endef
00002F                     A   235    _satusedGGA:
00002F                     A   236    	DS	15
                           A   237    .define "satusedGGA"
                           A   238    .alias "_satusedGGA"
                           A   239    .class 83
                           A   240    .value _satusedGGA
                           A   241    .dim 15
                           A   242    .type 98
                           A   243    .type 0
                           A   244    .endef
                           A   245    	SEGMENT FAR_DATA
000000                     A   246    _strfile:
000000 30                  A   247    	DB	48
000001 30                  A   248    	DB	48
000002 30                  A   249    	DB	48
000003 30                  A   250    	DB	48
000004 30                  A   251    	DB	48
000005 30                  A   252    	DB	48
000006 00                  A   253    	DB	0
000007 00                  A   254    	DB	0
000008 00                  A   255    	DB	0
000009 00                  A   256    	DB	0
                           A   257    .define "strfile"
                           A   258    .alias "_strfile"
                           A   259    .class 69
                           A   260    .value _strfile
ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402)                                         14-Jan-09     10:50:23     page:   6


PC     Object              I  Line    Source main.src
                           A   261    .dim 10
                           A   262    .type 98
                           A   263    .type 0
                           A   264    .endef
                           A   265    	SEGMENT FAR_BSS
00003E                     A   266    _newdata:
00003E                     A   267    	DS	100
                           A   268    .define "newdata"
                           A   269    .alias "_newdata"
                           A   270    .class 83
                           A   271    .value _newdata
                           A   272    .dim 100
                           A   273    .type 98
                           A   274    .type 0
                           A   275    .endef
                           A   276    	SEGMENT ROM_DATA
                           A   277    
                           A   278    
                           A   279    ;**************************** _main ***************************
                           A   280    ;Name                         Addr/Register   Size   Type
                           A   281    ;__u_dtof                            IMPORT  -----   function
                           A   282    ;___print_fmt                        IMPORT      8   variable
                           A   283    ;_atof                               IMPORT  -----   function
                           A   284    ;_EW                                 STATIC      0   variable
                           A   285    ;_longRMC                            STATIC      7   variable
                           A   286    ;_RMClong                            IMPORT  -----   function
                           A   287    ;_NS                                 STATIC      0   variable
                           A   288    ;_latRMC                             STATIC      7   variable
                           A   289    ;_RMClat                             IMPORT  -----   function
                           A   290    ;_timeRMC                            STATIC      7   variable
                           A   291    ;_RMCtime                            IMPORT  -----   function
                           A   292    ;_RMC                                IMPORT      1   variable
                           A   293    ;_RMCstring                          IMPORT  -----   function
                           A   294    ;_satusedGGA                         STATIC      7   variable
                           A   295    ;_strncpy                            IMPORT  -----   function
                           A   296    ;___print_sendstring                 IMPORT  -----   function
                           A   297    ;_GGA                                IMPORT      1   variable
                           A   298    ;_GGAstring                          IMPORT  -----   function
                           A   299    ;_strcpy                             IMPORT  -----   function
                           A   300    ;_select_port                        IMPORT  -----   function
                           A   301    ;_strfile                            STATIC      5   variable
                           A   302    ;_writetommc                         IMPORT  -----   function
                           A   303    ;___print_send                       IMPORT  -----   function
                           A   304    ;___print_buff                       IMPORT      0   variable
                           A   305    ;___print_out                        IMPORT      1   variable
                           A   306    ;_newdata                            STATIC     50   variable
                           A   307    ;_create_folder_file                 IMPORT  -----   function
                           A   308    ;___print_sputch                     IMPORT  -----   function
                           A   309    ;___print_putromstring               IMPORT  -----   function
                           A   310    ;___print_xputch                     IMPORT      1   variable
                           A   311    ;___print_uputch                     IMPORT  -----   function
                           A   312    ;_format_to_fat16                    IMPORT  -----   function
ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402)                                         14-Jan-09     10:50:23     page:   7


PC     Object              I  Line    Source main.src
                           A   313    ;_get_freq                           IMPORT  -----   function
                           A   314    ;_init_uart                          IMPORT  -----   function
                           A   315    ;_0temp0                             STATIC      4   variable
                           A   316    ;i                                   R15-23      1   variable
                           A   317    ;filename                            R15-21      4   variable
                           A   318    ;degLONG                             R15-12      1   variable
                           A   319    ;degLAT                              R15-10      1   variable
                           A   320    ;coordLONG                            R15-8      2   variable
                           A   321    ;coordLAT                             R15-4      2   variable
                           A   322    
                           A   323    
                           A   324    ; Aggregate Stack Size: -23 (words)
                           A   325    
                           A   326    
                           A   327    	SEGMENT ROM_TEXT
000000                     A   328    L__3:
000000 43726561 74696E67   A   329    	DB	"Creating CSV"
000008 20435356 
00000C 0A00                A   330    	DB	10,0
00000E                     A   331    L__4:
00000E 54696D65 2C4C6174   A   332    	DB	"Time,Lat (Deg),Lat(string),N/S,Long (Deg),Long (string),E/W,Satellites Used"
000016 20284465 67292C4C 
00001E 61742873 7472696E 
000026 67292C4E 2F532C4C 
00002E 6F6E6720 28446567 
000036 292C4C6F 6E672028 
00003E 73747269 6E67292C 
000046 452F572C 53617465 
00004E 6C6C6974 65732055 
000056 736564 
000059 00                  A   333    	DB	0
00005A                     A   334    L__5:
00005A 57726974 696E6720   A   335    	DB	"Writing location data in MMC"
000062 6C6F6361 74696F6E 
00006A 20646174 6120696E 
000072 204D4D43 
000076 0A00                A   336    	DB	10,0
000078                     A   337    L__6:
000078 0A0A                A   338    	DB	10,10
00007A 47474120 52656164   A   339    	DB	"GGA Reading: "
000082 696E673A 20 
000087 0A00                A   340    	DB	10,0
000089                     A   341    L__7:
000089 53617465 6C6C6C69   A   342    	DB	"Satelllites used: "
000091 74657320 75736564 
000099 3A20 
00009B 00                  A   343    	DB	0
00009C                     A   344    L__8:
00009C 0A0A                A   345    	DB	10,10
00009E 524D4320 52656164   A   346    	DB	"RMC Reading:"
0000A6 696E673A 
0000AA 0A00                A   347    	DB	10,0
ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402)                                         14-Jan-09     10:50:23     page:   8


PC     Object              I  Line    Source main.src
0000AC                     A   348    L__9:
0000AC 54696D65 3A20       A   349    	DB	"Time: "
0000B2 00                  A   350    	DB	0
0000B3                     A   351    L__10:
0000B3 4C617469 74756465   A   352    	DB	"Latitude: "
0000BB 3A20 
0000BD 00                  A   353    	DB	0
0000BE                     A   354    L__11:
0000BE 4C6F6E67 69747564   A   355    	DB	"Longitude: "
0000C6 653A20 
0000C9 00                  A   356    	DB	0
                           A   357    	SEGMENT FAR_DATA
00000A                     A   358    _0temp0:
00000A 30                  A   359    	DB	48
00000B 30                  A   360    	DB	48
00000C 30                  A   361    	DB	48
00000D 30                  A   362    	DB	48
00000E 30                  A   363    	DB	48
00000F 30                  A   364    	DB	48
000010 00                  A   365    	DB	0
000011 00                  A   366    	DB	0
000012 00                  A   367    	DB	0
                           A   368    ;    1	#include <ez8.h>
                           A   369    ;    2	#include <sio.h>
                           A   370    ;    3	#include <string.h>
                           A   371    ;    4	#include <stdlib.h>
                           A   372    ;    5	#include "mmc.h"
                           A   373    ;    6	#include "spi.h"
                           A   374    ;    7	#include "fat.h"
                           A   375    ;    8	#include "GPS_parsing.h"
                           A   376    ;    9	
                           A   377    ;   10	#define STR_LEN 15
                           A   378    ;   11	
                           A   379    ;   12	char timeRMC[STR_LEN];
                           A   380    ;   13	char latRMC[STR_LEN];
                           A   381    ;   14	char NS;
                           A   382    ;   15	char longRMC[STR_LEN];
                           A   383    ;   16	char EW;
                           A   384    ;   17	char satusedGGA[STR_LEN];
                           A   385    ;   18	
                           A   386    ;   19	char strfile[10]="000000";			// CSV Filename (numeric only)
                           A   387    ;   20	char newdata[100];			// MMC Buffer
                           A   388    	SEGMENT main_TEXT
                           A   389    ;   21	
                           A   390    ;   22	
                           A   391    ;   23	
                           A   392    ;   24	void main (void)
                           A   393    ;   25	{
000000                     A   394    _main:
                           A   395    .define "_main"
                           A   396    .value _main
                           A   397    .class 2
ZiLOG Z8 Encore! Macro Assembler Version 2.45 (06120402)                                         14-Jan-09     10:50:23     page:   9


PC     Object              I  Line    Source main.src
                           A   398    .type 65
                           A   399    .type 0
                           A   400    .endef
                           A   401    .begfunc "main",25,"_main"
                           A   402    .define "coordLAT"
                           A   403    .class 1
                           A   404    .value -4
                           A   405    .type 6
                           A   406    .type 0
                           A   407    .endef
                           A   408    .define "coordLONG"
                           A   409    .class 1
                           A   410    .value -8
                           A   411    .type 6
                           A   412    .type 0
                           A   413    .endef
                           A   414    .define "degLAT"
                           A   415    .class 1
                           A   416    .value -10
                           A   417    .type 3
                           A   418    .type 0
                           A   419    .endef

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -