Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 76:cc657f9915d8
small fix with battery sign
author | heinrichsweikamp |
---|---|
date | Mon, 06 Dec 2010 17:12:39 +0100 |
parents | 35d947d7a6e7 |
children | de8ed3c55db1 |
comparison
equal
deleted
inserted
replaced
75:35d947d7a6e7 | 76:cc657f9915d8 |
---|---|
1963 movff WREG,box_temp+3 ; column left (0-159) | 1963 movff WREG,box_temp+3 ; column left (0-159) |
1964 movlw .34 | 1964 movlw .34 |
1965 movff WREG,box_temp+4 ; column right (0-159) | 1965 movff WREG,box_temp+4 ; column right (0-159) |
1966 call PLED_box ; Full Cap | 1966 call PLED_box ; Full Cap |
1967 | 1967 |
1968 ; GETCUSTOM8 d'35' ; Standard output color | |
1969 ; movff WREG,box_temp+0 ; Data | |
1970 ; movlw .181 | |
1971 ; movff WREG,box_temp+1 ; row top (0-239) | |
1972 ; movlw .187 | |
1973 ; movff WREG,box_temp+2 ; row bottom (0-239) | |
1974 ; movlw .31 | |
1975 ; movff WREG,box_temp+3 ; column left (0-159) | |
1976 ; movlw .33 | |
1977 ; movff WREG,box_temp+4 ; column right (0-159) | |
1978 ; call PLED_frame ; Empty cap | |
1979 ; | |
1980 update_batt_voltage3: | 1968 update_batt_voltage3: |
1981 GETCUSTOM8 d'34' ; Color battery | 1969 GETCUSTOM8 d'34' ; Color battery |
1982 movff WREG,box_temp+0 ; Color Data | 1970 movff WREG,box_temp+0 ; Color Data |
1983 movlw .176 | 1971 movlw .176 |
1984 movff WREG,box_temp+1 ; row top (0-239) | 1972 movff WREG,box_temp+1 ; row top (0-239) |
1986 movff WREG,box_temp+2 ; row bottom (0-239) | 1974 movff WREG,box_temp+2 ; row bottom (0-239) |
1987 movlw .2 | 1975 movlw .2 |
1988 movff WREG,box_temp+3 ; column left (0-159) | 1976 movff WREG,box_temp+3 ; column left (0-159) |
1989 movff wait_temp,box_temp+4 ; column right (0-159) | 1977 movff wait_temp,box_temp+4 ; column right (0-159) |
1990 call PLED_box | 1978 call PLED_box |
1979 | |
1980 ; Then clear use EMPTY part of the battery | |
1981 clrf box_temp+0 ; Black background | |
1982 movff wait_temp,box_temp+3; Last filled column | |
1983 incf box_temp+3, BANKED ; +1 -> first cleared one. | |
1984 movlw .31 ; end of battery | |
1985 movwf box_temp+4 | |
1986 call PLED_box | |
1991 | 1987 |
1992 call PLED_standard_color | 1988 call PLED_standard_color |
1993 return | 1989 return |
1994 | 1990 |
1995 update_batt_voltage2_empty: | 1991 update_batt_voltage2_empty: |