📄 graphic.src
字号:
; Statics:
;
; CSEs:
;
; graphic.c 61 coordinate Dot;
?LINE 61
?SYMB 'Dot',3,98,258
?SYMB '-4',$,101,3
; graphic.c 62 char i,j;
?LINE 62
?SYMB 'i',2,98,2
?SYMB '-5',$,101,2
?SYMB 'j',1,98,2
?SYMB '-6',$,101,1
; graphic.c 63 Dot.x = 0;
?LINE 63
MOV R12,#00h
MOV [R0+#02H],R12
; graphic.c 64 Dot.y = 0;
?LINE 64
MOV R12,#00h
MOV [R0+#04H],R12
; graphic.c 65 for (j = 0x0F; j > 0;j--)
?LINE 65
MOVB RL1,#0Fh
MOVB [R0],RL1
JMPR cc_UC,_14
_11:
; graphic.c 66 {
; graphic.c 67 for (i=0;i<15;i++)
?LINE 67
MOVB RL1,#00h
MOVB [R0+#01H],RL1
JMPR cc_UC,_13
_12:
; graphic.c 68 {
; graphic.c 69 linex(Dot,312,j);
?LINE 69
MOVB RL1,[R0]
MOVBS R12,RL1
MOV [-R0],R12
?SYMB '',$,96,8
MOV R12,#0138h
MOV [-R0],R12
?SYMB '',$,96,10
MOV R12,[R0+#06H]
MOV R13,[R0+#08H]
MOV [-R0],R13
?SYMB '',$,96,12
MOV [-R0],R12
?SYMB '',$,96,14
CALLA cc_UC,_linex
ADD R0,#08h
?SYMB '',$,96,6
; graphic.c 70 Dot.y++;
?LINE 70
MOV R12,[R0+#04H]
ADD R12,#01h
MOV [R0+#04H],R12
?LINE 67
MOVB RL1,[R0+#01H]
ADDB RL1,#01h
MOVB [R0+#01H],RL1
_13:
MOVB RL1,[R0+#01H]
CMPB RL1,#0Fh
JMPR cc_SLT,_12
?LINE 65
MOVB RL1,[R0]
SUBB RL1,#01h
MOVB [R0],RL1
_14:
MOVB RL1,[R0]
CMPB RL1,#00h
JMPR cc_SGT,_11
; graphic.c 71 }
; graphic.c 72 }
; graphic.c 73 }
?LINE 73
?SYMB '',$,102,1
?SYMB '',$,102,2
?SYMB '',$,102,3
ADD R0,#06h
?SYMB '',$,96,0
RET
_shadow_boxs ENDP
?SYMB '',$,17,73
; graphic.c 74 //*****************************************************************************
; graphic.c 75 void box(coordinate Begin, unsigned short Side, unsigned char Color)
; graphic.c 76 {
?LINE 76
PUBLIC _box
?SYMB 'box',_box,37,1
?SYMB '',76,8,34
_box PROC NEAR
?SYMB '',00H,95,0
SUB R0,#02h
?SYMB '',$,96,2
; Locals:
; i = offset 0
; Side = offset 6
; Begin = offset 2
; Color = offset 8
;
; Statics:
;
; CSEs:
;
?LINE 76
?SYMB 'Begin',3,99,258
?SYMB '0',$,101,3
?SYMB 'Side',2,99,5
?SYMB '4',$,101,2
?SYMB 'Color',4,99,3
?SYMB '6',$,101,4
; graphic.c 77 unsigned int i;
?LINE 77
?SYMB 'i',1,98,18
?SYMB '-2',$,101,1
; graphic.c 78 for (i=0; i< Side;i++)
?LINE 78
MOV R12,#00h
MOV [R0],R12
JMPR cc_UC,_16
_15:
; graphic.c 79 {
; graphic.c 80 Begin.y ++;
?LINE 80
MOV R12,[R0+#04H]
ADD R12,#01h
MOV [R0+#04H],R12
; graphic.c 81 linex(Begin,Side,Color);
?LINE 81
MOVB RL1,[R0+#08H]
MOVBZ R12,RL1
MOV [-R0],R12
?SYMB '',$,96,4
MOV R12,[R0+#08H]
MOV [-R0],R12
?SYMB '',$,96,6
MOV R12,[R0+#06H]
MOV R13,[R0+#08H]
MOV [-R0],R13
?SYMB '',$,96,8
MOV [-R0],R12
?SYMB '',$,96,10
CALLA cc_UC,_linex
ADD R0,#08h
?SYMB '',$,96,2
?LINE 78
MOV R12,[R0]
ADD R12,#01h
MOV [R0],R12
_16:
MOV R12,[R0]
MOV R13,[R0+#06H]
CMP R12,R13
JMPR cc_ULT,_15
; graphic.c 82 }
; graphic.c 83 }
?LINE 83
?SYMB '',$,102,1
?SYMB '',$,102,4
?SYMB '',$,102,2
?SYMB '',$,102,3
ADD R0,#02h
?SYMB '',$,96,0
RET
_box ENDP
?SYMB '',$,17,83
; graphic.c 84 //*****************************************************************************
; graphic.c 85
; graphic.c 86 void rectangle(coordinate Begin, unsigned char SizeX,unsigned char SizeY,unsigned char Color)
; graphic.c 87 {
?LINE 87
PUBLIC _rectangle
?SYMB 'rectangle',_rectangle,37,1
?SYMB '',87,8,34
_rectangle PROC NEAR
?SYMB '',00H,95,0
SUB R0,#02h
?SYMB '',$,96,2
; Locals:
; i = offset 0
; Begin = offset 2
; SizeY = offset 8
; Color = offset 10
; SizeX = offset 6
;
; Statics:
;
; CSEs:
;
?LINE 87
?SYMB 'Begin',2,99,258
?SYMB '0',$,101,2
?SYMB 'SizeX',5,99,3
?SYMB '4',$,101,5
?SYMB 'SizeY',3,99,3
?SYMB '6',$,101,3
?SYMB 'Color',4,99,3
?SYMB '8',$,101,4
; graphic.c 88 unsigned int i;
?LINE 88
?SYMB 'i',1,98,18
?SYMB '-2',$,101,1
; graphic.c 89 for (i=0; i< SizeY;i++)
?LINE 89
MOV R12,#00h
MOV [R0],R12
JMPR cc_UC,_18
_17:
; graphic.c 90 {
; graphic.c 91 Begin.y ++;
?LINE 91
MOV R12,[R0+#04H]
ADD R12,#01h
MOV [R0+#04H],R12
; graphic.c 92 linex(Begin,SizeX,Color);
?LINE 92
MOVB RL1,[R0+#0AH]
MOVBZ R12,RL1
MOV [-R0],R12
?SYMB '',$,96,4
MOVB RL1,[R0+#08H]
MOVBZ R12,RL1
MOV [-R0],R12
?SYMB '',$,96,6
MOV R12,[R0+#06H]
MOV R13,[R0+#08H]
MOV [-R0],R13
?SYMB '',$,96,8
MOV [-R0],R12
?SYMB '',$,96,10
CALLA cc_UC,_linex
ADD R0,#08h
?SYMB '',$,96,2
?LINE 89
MOV R12,[R0]
ADD R12,#01h
MOV [R0],R12
_18:
MOV R12,[R0]
MOVB RL1,[R0+#08H]
MOVBZ R13,RL1
CMP R12,R13
JMPR cc_ULT,_17
; graphic.c 93 }
; graphic.c 94 }
?LINE 94
?SYMB '',$,102,1
?SYMB '',$,102,4
?SYMB '',$,102,3
?SYMB '',$,102,5
?SYMB '',$,102,2
ADD R0,#02h
?SYMB '',$,96,0
RET
_rectangle ENDP
?SYMB '',$,17,94
; graphic.c 95 //******************************************************************************
; graphic.c 96
; graphic.c 97 /*
; graphic.c 98 void lcd_write_char(unsigned char Pismeno, unsigned char Color)
; graphic.c 99 {
; graphic.c 100 switch (Pismeno)
; graphic.c 101 {
; graphic.c 102 case ' ':lcd_write(Address - 8,Color);
; graphic.c 103 lcd_write_data(0x00);lcd_write_data(0x00);
; graphic.c 104 lcd_write_data(0x00);lcd_write_data(0x00);
; graphic.c 105 lcd_write_data(0x00);lcd_write_data(0x00);break;
; graphic.c 106 case 'A':lcd_write_data(0x7E);lcd_write_data(0x11);
; graphic.c 107 lcd_write_data(0x11);lcd_write_data(0x11);
; graphic.c 108 lcd_write_data(0x7E);lcd_write_data(0x00);break;
; graphic.c 109 case 'B':lcd_write_data(0x7F);lcd_write_data(0x49);
; graphic.c 110 lcd_write_data(0x49);lcd_write_data(0x49);
; graphic.c 111 lcd_write_data(0x67);lcd_write_data(0x00);break;
; graphic.c 112 case 'C':lcd_write_data(0x3E);lcd_write_data(0x41);
; graphic.c 113 lcd_write_data(0x41);lcd_write_data(0x41);
; graphic.c 114 lcd_write_data(0x22);lcd_write_data(0x00);break;
; graphic.c 115 case 'D':lcd_write_data(0x7F);lcd_write_data(0x41);
; graphic.c 116 lcd_write_data(0x41);lcd_write_data(0x22);
; graphic.c 117 lcd_write_data(0x1C);lcd_write_data(0x00);break;
; graphic.c 118 case 'E':lcd_write_data(0x7F);lcd_write_data(0x49);
; graphic.c 119 lcd_write_data(0x49);lcd_write_data(0x49);
; graphic.c 120 lcd_write_data(0x41);lcd_write_data(0x00);break;
; graphic.c 121 case 'F':lcd_write_data(0x7F);lcd_write_data(0x09);
; graphic.c 122 lcd_write_data(0x09);lcd_write_data(0x09);
; graphic.c 123 lcd_write_data(0x01);lcd_write_data(0x00);break;
; graphic.c 124 case 'G':lcd_write_data(0x3E);lcd_write_data(0x41);
; graphic.c 125 lcd_write_data(0x49);lcd_write_data(0x49);
; graphic.c 126 lcd_write_data(0x7A);lcd_write_data(0x00);break;
; graphic.c 127 case 'H':lcd_write_data(0x7F);lcd_write_data(0x80);
; graphic.c 128 lcd_write_data(0x80);lcd_write_data(0x80);
; graphic.c 129 lcd_write_data(0x7F);lcd_write_data(0x00);break;
; graphic.c 130 case 'I':lcd_write_data(0x00);lcd_write_data(0x41);
; graphic.c 131 lcd_write_data(0x7F);lcd_write_data(0x41);
; graphic.c 132 lcd_write_data(0x00);lcd_write_data(0x00);break;
; graphic.c 133 case 'J':lcd_write_data(0x20);lcd_write_data(0x40);
; graphic.c 134 lcd_write_data(0x41);lcd_write_data(0x3F);
; graphic.c 135 lcd_write_data(0x01);lcd_write_data(0x00);break;
; graphic.c 136 case 'K':lcd_write_data(0x7F);lcd_write_data(0x08);
; graphic.c 137 lcd_write_data(0x14);lcd_write_data(0x22);
; graphic.c 138 lcd_write_data(0x41);lcd_write_data(0x00);break;
; graphic.c 139 case 'L':lcd_write_data(0x7F);lcd_write_data(0x40);
; graphic.c 140 lcd_write_data(0x40);lcd_write_data(0x40);
; graphic.c 141 lcd_write_data(0x40);lcd_write_data(0x00);break;
; graphic.c 142 case 'M':lcd_write_data(0x7F);lcd_write_data(0x02);
; graphic.c 143 lcd_write_data(0x0C);lcd_write_data(0x02);
; graphic.c 144 lcd_write_data(0x7F);lcd_write_data(0x00);break;
; graphic.c 145 case 'N':lcd_write_data(0x7F);lcd_write_data(0x04);
; graphic.c 146 lcd_write_data(0x08);lcd_write_data(0x10);
; graphic.c 147 lcd_write_data(0x7F);lcd_write_data(0x00);break;
; graphic.c 148 case 'O':lcd_write_data(0x3E);lcd_write_data(0x41);
; graphic.c 149 lcd_write_data(0x41);lcd_write_data(0x41);
; graphic.c 150 lcd_write_data(0x3E);lcd_write_data(0x00);break;
; graphic.c 151 case 'P':lcd_write_data(0x7F);lcd_write_data(0x09);
; graphic.c 152 lcd_write_data(0x09);lcd_write_data(0x09);
; graphic.c 153 lcd_write_data(0x06);lcd_write_data(0x00);break;
; graphic.c 154 case 'Q':lcd_write_data(0x3E);lcd_write_data(0x41);
; graphic.c 155 lcd_write_data(0x51);lcd_write_data(0x21);
; graphic.c 156 lcd_write_data(0x5E);lcd_write_data(0x00);break;
; graphic.c 157 case 'R':lcd_write_data(0x7F);lcd_write_data(0x09);
; graphic.c 158 lcd_write_data(0x19);lcd_write_data(0x29);
; graphic.c 159 lcd_write_data(0x46);lcd_write_data(0x00);break;
; graphic.c 160 case 'S':lcd_write_data(0x26);lcd_write_data(0x49);
; graphic.c 161 lcd_write_data(0x49);lcd_write_data(0x49);
; graphic.c 162 lcd_write_data(0x32);lcd_write_data(0x00);break;
; graphic.c 163 case 'T':lcd_write_data(0x01);lcd_write_data(0x01);
; graphic.c 164 lcd_write_data(0x7F);lcd_write_data(0x01);
; graphic.c 165 lcd_write_data(0x01);lcd_write_data(0x00);break;
; graphic.c 166 case 'U':lcd_write_data(0x3F);lcd_write_data(0x40);
; graphic.c 167 lcd_write_data(0x40);lcd_write_data(0x40);
; graphic.c 168 lcd_write_data(0x3F);lcd_write_data(0x00);break;
; graphic.c 169 case 'V':lcd_write_data(0x1F);lcd_write_data(0x20);
; graphic.c 170 lcd_write_data(0x40);lcd_write_data(0x20);
; graphic.c 171 lcd_write_data(0x1F);lcd_write_data(0x00);break;
; graphic.c 172 case 'W':lcd_write_data(0x3F);lcd_write_data(0x40);
; graphic.c 173 lcd_write_data(0x38);lcd_write_data(0x40);
; graphic.c 174 lcd_write_data(0x3F);lcd_write_data(0x00);break;
; graphic.c 175 case 'X':lcd_write_data(0x63);lcd_write_data(0x14);
; graphic.c 176 lcd_write_data(0x08);lcd_write_data(0x14);
; graphic.c 177 lcd_write_data(0x63);lcd_write_data(0x00);break;
; graphic.c 178 case 'Y':lcd_write_data(0x07);lcd_write_data(0x08);
; graphic.c 179 lcd_write_data(0x70);lcd_write_data(0x08);
; graphic.c 180 lcd_write_data(0x07);lcd_write_data(0x00);break;
; graphic.c 181 case 'Z':lcd_write_data(0x61);lcd_write_data(0x51);
; graphic.c 182 lcd_write_data(0x49);lcd_write_data(0x45);
; graphic.c 183 lcd_write_data(0x43);lcd_write_data(0x00);break;
; graphic.c 184 }
; graphic.c 185
; graphic.c 186 */
GRAPHIC_1_PR ENDS
C166_US SECTION DATA WORD GLBUSRSTACK 'CUSTACK'
DS 44
C166_US ENDS
EXTERN _lcd_read_reg:NEAR
EXTERN _lcd_write:NEAR
REGDEF R0-R15
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -