📄 12864.s
字号:
.byte 0,0
.byte 0,64
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,0
.byte 0,127
.byte 255,252
.byte 0,64
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,128
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,0
.byte 0,0
.byte 3,224
.byte 0,128
.byte 1,0
.byte 0,0
.byte 0,0
.byte 192,0
.byte 0,0
.byte 0,0
.byte 6,32
.byte 1,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 224,0
.byte 0,0
.byte 0,0
.byte 0,32
.byte 3,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 159,255
.byte 240,0
.byte 0,0
.byte 0,60
.byte 12,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 15,192
.byte 0,0
.byte 0,36
.byte 48,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,60
.byte 0,0
.byte 0,36
.byte 64,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,3
.byte 255,255
.byte 255,228
.byte 128,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,0
.byte 0,0
.byte 0,5
.byte 128,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 128,0
.byte 0,0
.byte 0,0
.byte 0,4
.byte 0,0
.byte 1,0
.byte 0,0
.byte 0,0
.byte 255,0
.byte 0,0
.byte 0,0
.byte 0,6
.byte 0,0
.byte 30,0
.byte 0,0
.byte 0,0
.byte 1,192
.byte 0,0
.byte 0,0
.byte 0,5
.byte 0,3
.byte 224,0
.byte 0,0
.byte 0,0
.byte 0,32
.byte 0,0
.byte 0,0
.byte 0,4
.byte 128,12
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,24
.byte 0,0
.byte 0,0
.byte 0,4
.byte 127,240
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,12
.byte 0,0
.byte 'U,0
.byte 137,4
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,2
.byte 0,0
.byte 0,0
.byte 0,12
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,2
.byte 0,0
.byte 0,0
.byte 0,'x
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,3
.byte 128,0
.byte 0,0
.byte 0,192
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 127,255
.byte 255,255
.byte 255,128
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.dbsym e Bitmap _Bitmap A[1024:1024]kc
.area text(rom, con, rel)
.dbfile F:\BBIBBI\12864.C
.dbfunc e ShowBmp _ShowBmp fV
; a -> R20,R21
; y -> R22,R23
; i -> R12,R13
; x -> R10,R11
.even
_ShowBmp::
xcall push_gset4
.dbline -1
.dbline 289
; }
;
; //#if LCD12864==TRUE //条件编译指令
; //#pragma data:code //指定存储位置为Flash
; const unsigned char Bitmap[]={/*-- 宽度x高度=128x64图像 --*/
;
;
;
; 0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x82,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x01,0x06,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x02,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x04,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x04,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x04,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x04,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x0F,0xFE,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x10,0x01,0xFF,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x3F,0xFC,0x00,0x00,0xC8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x04,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x04,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x04,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x02,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x01,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x01,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0xFF,0xF0,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x06,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x08,0x00,0x04,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x7F,0xF0,0x09,0xE0,0x04,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x60,0x00,0x08,0x20,0x04,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x40,0x00,0x08,0x20,0x04,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0xC0,0x00,0x0F,0xE0,0x04,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x3F,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x20,0x0F,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x0F,0x80,0x00,0x00,0x00,0x40,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x7F,0xFF,0xFC,0x00,0x40,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x80,0x01,0x00,0x00,0x00,
; 0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x06,0x20,0x01,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x03,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x9F,0xFF,0xF0,0x00,0x00,0x00,0x00,0x3C,0x0C,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x0F,0xC0,0x00,0x00,0x00,0x24,0x30,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x3C,0x00,0x00,0x00,0x24,0x40,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x03,0xFF,0xFF,0xFF,0xE4,0x80,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x80,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x01,0x00,0x00,0x00,
; 0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x1E,0x00,0x00,0x00,
; 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x03,0xE0,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x04,0x80,0x0C,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x04,0x7F,0xF0,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x0C,0x00,0x00,0x55,0x00,0x89,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
;
; };
;
; /*******************************************************/
; /****** 函数名称: ShowBmp() ******/
; /****** 功 能: 显示一幅128*64的BMP位图 ******/
; /****** 参 数: 无 ******/
; /****** 返回值 : 无 ******/
; /*******************************************************/
; void ShowBmp(void)
; {
.dbline 290
; unsigned int i,a,x=0,y=0;
clr R10
clr R11
.dbline 290
clr R22
clr R23
.dbline 291
; WR_control(0x34); //关闭绘图显示功能
ldi R16,52
xcall _WR_control
.dbline 292
; for(a=0;a<32;a++)
clr R20
clr R21
xjmp L60
L57:
.dbline 293
; {
.dbline 294
; WR_control(0x80+a);
mov R16,R20
subi R16,128 ; offset = 128
sbci R17,255
xcall _WR_control
.dbline 295
; WR_control(0x80);
ldi R16,128
xcall _WR_control
.dbline 296
; for(i=0;i<8;i++)
clr R12
clr R13
xjmp L64
L61:
.dbline 297
.dbline 298
movw R30,R22
add R30,R10
adc R31,R11
ldi R24,<_Bitmap
ldi R25,>_Bitmap
add R30,R24
adc R31,R25
lpm R16,Z
xcall _WR_dat
.dbline 299
movw R30,R22
add R30,R10
adc R31,R11
adiw R30,1
ldi R24,<_Bitmap
ldi R25,>_Bitmap
add R30,R24
adc R31,R25
lpm R16,Z
xcall _WR_dat
.dbline 300
movw R24,R10
adiw R24,2
movw R10,R24
.dbline 301
L62:
.dbline 296
movw R24,R12
adiw R24,1
movw R12,R24
L64:
.dbline 296
movw R24,R12
cpi R24,8
ldi R30,0
cpc R25,R30
brlo L61
.dbline 302
; {
; WR_dat(Bitmap[y+x]);
; WR_dat(Bitmap[y+x+1]);
; x+=2;
; }
; x=0;
clr R10
clr R11
.dbline 303
; for(i=0;i<8;i++)
clr R12
clr R13
xjmp L68
L65:
.dbline 304
.dbline 305
movw R30,R22
subi R30,0 ; offset = 512
sbci R31,254
add R30,R10
adc R31,R11
ldi R24,<_Bitmap
ldi R25,>_Bitmap
add R30,R24
adc R31,R25
lpm R16,Z
xcall _WR_dat
.dbline 306
movw R30,R22
subi R30,0 ; offset = 512
sbci R31,254
add R30,R10
adc R31,R11
adiw R30,1
ldi R24,<_Bitmap
ldi R25,>_Bitmap
add R30,R24
adc R31,R25
lpm R16,Z
xcall _WR_dat
.dbline 307
movw R24,R10
adiw R24,2
movw R10,R24
.dbline 308
L66:
.dbline 303
movw R24,R12
adiw R24,1
movw R12,R24
L68:
.dbline 303
movw R24,R12
cpi R24,8
ldi R30,0
cpc R25,R30
brlo L65
.dbline 309
clr R10
clr R11
.dbline 310
subi R22,240 ; offset = 16
sbci R23,255
.dbline 311
L58:
.dbline 292
subi R20,255 ; offset = 1
sbci R21,255
L60:
.dbline 292
cpi R20,32
ldi R30,0
cpc R21,R30
brsh X2
xjmp L57
X2:
.dbline 312
; {
; WR_dat(Bitmap[512+y+x]);
; WR_dat(Bitmap[512+y+x+1]);
; x+=2;
; }
; x=0;
; y+=16;
; }
; WR_control(0x36); //打开绘图显示功能
ldi R16,54
xcall _WR_control
.dbline 313
; delay_nus(80);
ldi R16,80
ldi R17,0
xcall _delay_nus
.dbline 314
; WR_control(0x30); //基本指令
ldi R16,48
xcall _WR_control
.dbline 315
; delay_nus(80);
ldi R16,80
ldi R17,0
xcall _delay_nus
.dbline -2
L56:
xcall pop_gset4
.dbline 0 ; func end
ret
.dbsym r a 20 i
.dbsym r y 22 i
.dbsym r i 12 i
.dbsym r x 10 i
.dbend
.dbfunc e main _main fV
.even
_main::
.dbline -1
.dbline 320
; }
; //#endif
; //条件编译结束
; void main()
; {
.dbline 321
; Lcd_INT();
xcall _Lcd_INT
.dbline 326
; //LCD_writeasc(2,1,64);
; //lcd_writechar(3,1,16);
; //lcd_write2(0,0,12);
; //LCD_Write_string(1,4,"45445");
; ShowBmp();
xcall _ShowBmp
.dbline -2
L69:
.dbline 0 ; func end
ret
.dbend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -