comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 574:101fec6a6137

New Custom Functions III menu (CF64-CF95)
author heinrichsweikamp
date Sat, 21 Apr 2012 13:58:30 +0200
parents 80a1d2d5a9ee
children ab2686087bce
comparison
equal deleted inserted replaced
573:77c8ff191cd7 574:101fec6a6137
910 910
911 movff WREG,win_top 911 movff WREG,win_top
912 STRCPY_PRINT "\xB7" 912 STRCPY_PRINT "\xB7"
913 return 913 return
914 914
915 PLED_static_raw_data:
916 WIN_FONT FT_SMALL
917 WIN_LEFT .0
918 WIN_TOP .27
919 STRCPY "C1:"
920 movff C1+0,lo
921 movff C1+1,hi
922 output_16
923 call word_processor
924 WIN_LEFT .80
925 WIN_TOP .27
926 STRCPY "C2:"
927 movff C2+0,lo
928 movff C2+1,hi
929 output_16
930 call word_processor
931
932 WIN_LEFT .0
933 WIN_TOP .52
934 STRCPY "C3:"
935 movff C3+0,lo
936 movff C3+1,hi
937 output_16
938 call word_processor
939 WIN_LEFT .80
940 WIN_TOP .52
941 STRCPY "C4:"
942 movff C4+0,lo
943 movff C4+1,hi
944 output_16
945 call word_processor
946
947 WIN_LEFT .0
948 WIN_TOP .77
949 STRCPY "C5:"
950 movff C5+0,lo
951 movff C5+1,hi
952 output_16
953 call word_processor
954 WIN_LEFT .80
955 WIN_TOP .77
956 STRCPY "C6:"
957 movff C6+0,lo
958 movff C6+1,hi
959 output_16
960 call word_processor
961 return
962
963 PLED_update_raw_data:
964 WIN_LEFT .0
965 WIN_TOP .102
966 STRCPY "D1:"
967 movff D1+0,lo
968 movff D1+1,hi
969 output_16
970 call word_processor
971 WIN_LEFT .80
972 WIN_TOP .102
973 STRCPY "D2:"
974 movff D2+0,lo
975 movff D2+1,hi
976 output_16
977 call word_processor
978
979 WIN_LEFT .0
980 WIN_TOP .127
981 STRCPY "OFF:"
982 movff OFF+0,lo
983 movff OFF+1,hi
984 output_16
985 call word_processor
986 WIN_LEFT .80
987 WIN_TOP .127
988 STRCPY "SENS:"
989 movff SENS+0,lo
990 movff SENS+1,hi
991 output_16
992 call word_processor
993
994 WIN_LEFT .0
995 WIN_TOP .152
996 STRCPY "xdT:"
997 movff xdT+0,lo
998 movff xdT+1,hi
999 output_16
1000 call word_processor
1001 WIN_LEFT .80
1002 WIN_TOP .152
1003 STRCPY "xdT2:"
1004 movff xdT2+0,lo
1005 movff xdT2+1,hi
1006 output_16
1007 call word_processor
1008
1009 WIN_LEFT .0
1010 WIN_TOP .177
1011 STRCPY "amb:"
1012 SAFE_2BYTE_COPY amb_pressure, lo
1013 output_16
1014 call word_processor
1015 WIN_LEFT .80
1016 WIN_TOP .177
1017 STRCPY "temp:"
1018 SAFE_2BYTE_COPY temperature, lo
1019 call PLED_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
1020 output_16
1021 call word_processor
1022
1023 call get_battery_voltage ; get battery voltage
1024 WIN_LEFT .0
1025 WIN_TOP .202
1026 STRCPY "AD0:"
1027 movff ADRESL,lo
1028 movff ADRESH,hi
1029 output_16
1030 call word_processor
1031 WIN_LEFT .80
1032 WIN_TOP .202
1033 STRCPY "BATT:"
1034 movff batt_voltage+0,lo
1035 movff batt_voltage+1,hi
1036 output_16
1037 call word_processor
1038 return
1039
1040 PLED_menu_mask: 915 PLED_menu_mask:
1041 call PLED_topline_box 916 call PLED_topline_box
1042 WIN_INVERT .1 ; Init new Wordprocessor 917 WIN_INVERT .1 ; Init new Wordprocessor
1043 DISPLAYTEXT .5 ; Menu: 918 DISPLAYTEXT .5 ; Menu:
1044 WIN_INVERT .0 ; Init new Wordprocessor 919 WIN_INVERT .0 ; Init new Wordprocessor
1055 WIN_INVERT .1 ; Init new Wordprocessor 930 WIN_INVERT .1 ; Init new Wordprocessor
1056 DISPLAYTEXT .98 ; Setup Menu: 931 DISPLAYTEXT .98 ; Setup Menu:
1057 WIN_INVERT .0 ; Init new Wordprocessor 932 WIN_INVERT .0 ; Init new Wordprocessor
1058 DISPLAYTEXT .99 ; Custom FunctionsI 933 DISPLAYTEXT .99 ; Custom FunctionsI
1059 DISPLAYTEXT .153 ; Custom FunctionsII 934 DISPLAYTEXT .153 ; Custom FunctionsII
1060 DISPLAYTEXTH .276 ; Salinity: 935 DISPLAYTEXTH .295 ; Custom FunctionsIII
1061 DISPLAYTEXT .100 ; Decotype: 936 DISPLAYTEXT .100 ; Decotype:
1062 DISPLAYTEXT .142 ; More... 937 DISPLAYTEXT .142 ; More...
1063 DISPLAYTEXT .11 ; Exit 938 DISPLAYTEXT .11 ; Exit
1064 return 939 return
1065 940
1069 DISPLAYTEXTH .258 ; Setup Menu 2: 944 DISPLAYTEXTH .258 ; Setup Menu 2:
1070 WIN_INVERT .0 ; Init new Wordprocessor 945 WIN_INVERT .0 ; Init new Wordprocessor
1071 DISPLAYTEXTH .257 ; Date format: 946 DISPLAYTEXTH .257 ; Date format:
1072 DISPLAYTEXT .129 ; Debug: 947 DISPLAYTEXT .129 ; Debug:
1073 DISPLAYTEXT .187 ; Show License 948 DISPLAYTEXT .187 ; Show License
1074 DISPLAYTEXTH .295 ; Show raw data 949 DISPLAYTEXTH .276 ; Salinity:
1075 DISPLAYTEXTH .280 ; Brightness: 950 DISPLAYTEXTH .280 ; Brightness:
1076 DISPLAYTEXT .11 ; Exit 951 DISPLAYTEXT .11 ; Exit
1077 return 952 return
1078 953
1079 PLED_more_menu_mask: 954 PLED_more_menu_mask: