📄 lcd_dis.asm
字号:
// GCC for SUNPLUS u'nSP version 1.0.21-11
// Command: C:\PROGRA~1\Sunplus\UNSPID~1.0\cc1.exe C:\DOCUME~1\xq\LOCALS~1\Temp\ccUVaaaa.i -fkeep-inline-functions -quiet -dumpbase LCD_Dis.c -mglobal-var-iram -gstabs -Wall -o .\Debug/LCD_Dis.asm
.external __sn_func_ptr_sec
// gcc2_compiled.:
.debug
.dw '.stabs "E:/Mz work/MzT24-01/code/MzT24_Driver_SPCE061/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
.dw '.stabs "E:/Mz work/MzT24-01/code/MzT24_Driver_SPCE061/LCDDriver/LCD_Dis.c",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.code
Ltext0:
.debug
.dw '.stabs "int:t1=r1;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "char:t2=r2;0;127;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long int:t3=r3;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "unsigned int:t4=r4;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long unsigned int:t5=r5;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long long int:t6=r6;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long long unsigned int:t7=r7;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "short int:t8=r8;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "short unsigned int:t9=r9;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "signed char:t10=r10;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "unsigned char:t11=r11;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "float:t12=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "double:t13=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "long double:t14=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex int:t15=s2real:1,0,16;imag:1,16,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex float:t16=r16;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex double:t17=r17;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "complex long double:t18=r18;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "void:t19=19",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "X_Witch:G1",32,0,0,',0,0,offset _X_Witch,seg _X_Witch,0x0d,0x0a
.CODE
.debug
.dw '.stabs "Y_Witch:G1",32,0,0,',0,0,offset _Y_Witch,seg _Y_Witch,0x0d,0x0a
.CODE
.debug
.dw '.stabs "Font_Wrod:G1",32,0,0,',0,0,offset _Font_Wrod,seg _Font_Wrod,0x0d,0x0a
.CODE
.debug
.dw '.stabs "Char_TAB:G20=*11",32,0,0,',0,0,offset _Char_TAB,seg _Char_TAB,0x0d,0x0a
.CODE
.debug
.dw '.stabs "Plot_Mode:G1",32,0,0,',0,0,offset _Plot_Mode,seg _Plot_Mode,0x0d,0x0a
.CODE
.debug
.dw '.stabs "BMP_Color:G4",32,0,0,',0,0,offset _BMP_Color,seg _BMP_Color,0x0d,0x0a
.CODE
.debug
.dw '.stabs "Char_Color:G4",32,0,0,',0,0,offset _Char_Color,seg _Char_Color,0x0d,0x0a
.CODE
.code
.debug
.dw '.stabs "FontSet:F19",36,0,0,',0,0,offset _FontSet,seg _FontSet,0x0d,0x0a
.CODE
.public _FontSet
_FontSet: .proc
.debug
.dw '.stabn 0x44,0,49,',0,0
.dd LM1-_FontSet
.dw 0x0d,0x0a
.code
LM1:
// total=0, vars=0
// frame_pointer_needed: 1
.debug
.dw '.stabn 0xa6,0,0,0',0x0d, 0x0a
.code
PUSH BP to [SP]
BP=SP+1
R1=BP+3
.debug
.dw '.stabn 0x44,0,50,',0,0
.dd LM2-_FontSet
.dw 0x0d,0x0a
.code
LM2:
R3=R1 // QImode move
R2=[R3] // QImode move
CMP R2,1 // QImode compare
NSJZ L5 //QImode EQ
CMP R2,1 // QImode compare
NSJG L9 //QImode GT
CMP R2,0 // QImode test
NSJZ L4 //QImode EQ
PC=L7 // jump
L9:
CMP R2,2 // QImode compare
NSJZ L6 //QImode EQ
PC=L7 // jump
.debug
.dw '.stabn 0x44,0,52,',0,0
.dd LM3-_FontSet
.dw 0x0d,0x0a
.code
LM3:
L4:
R2=8 // QImode move
[_Font_Wrod]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,53,',0,0
.dd LM4-_FontSet
.dw 0x0d,0x0a
.code
LM4:
R2=8 // QImode move
[_X_Witch]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,54,',0,0
.dd LM5-_FontSet
.dw 0x0d,0x0a
.code
LM5:
R2=16 // QImode move
[_Y_Witch]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,55,',0,0
.dd LM6-_FontSet
.dw 0x0d,0x0a
.code
LM6:
R2=R1 // QImode move
R3=R1+1
R4=R3 // QImode move
R2=[R4] // QImode move
[_Char_Color]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,56,',0,0
.dd LM7-_FontSet
.dw 0x0d,0x0a
.code
LM7:
R2=_Asii0816-256 // QImode move
[_Char_TAB]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,57,',0,0
.dd LM8-_FontSet
.dw 0x0d,0x0a
.code
LM8:
PC=L3 // jump
L5:
.debug
.dw '.stabn 0x44,0,58,',0,0
.dd LM9-_FontSet
.dw 0x0d,0x0a
.code
LM9:
R2=29 // QImode move
[_Font_Wrod]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,59,',0,0
.dd LM10-_FontSet
.dw 0x0d,0x0a
.code
LM10:
R2=15 // QImode move
[_X_Witch]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,60,',0,0
.dd LM11-_FontSet
.dw 0x0d,0x0a
.code
LM11:
R2=29 // QImode move
[_Y_Witch]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,61,',0,0
.dd LM12-_FontSet
.dw 0x0d,0x0a
.code
LM12:
R2=R1 // QImode move
R3=R1+1
R4=R3 // QImode move
R2=[R4] // QImode move
[_Char_Color]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM13-_FontSet
.dw 0x0d,0x0a
.code
LM13:
R2=_Asii1529-928 // QImode move
[_Char_TAB]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,63,',0,0
.dd LM14-_FontSet
.dw 0x0d,0x0a
.code
LM14:
PC=L3 // jump
L6:
.debug
.dw '.stabn 0x44,0,64,',0,0
.dd LM15-_FontSet
.dw 0x0d,0x0a
.code
LM15:
R2=64 // QImode move
[_Font_Wrod]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,65,',0,0
.dd LM16-_FontSet
.dw 0x0d,0x0a
.code
LM16:
R2=32 // QImode move
[_X_Witch]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,66,',0,0
.dd LM17-_FontSet
.dw 0x0d,0x0a
.code
LM17:
R2=32 // QImode move
[_Y_Witch]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,67,',0,0
.dd LM18-_FontSet
.dw 0x0d,0x0a
.code
LM18:
R2=R1 // QImode move
R3=R1+1
R4=R3 // QImode move
R2=[R4] // QImode move
[_Char_Color]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,68,',0,0
.dd LM19-_FontSet
.dw 0x0d,0x0a
.code
LM19:
R2=_GB32 // QImode move
[_Char_TAB]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,69,',0,0
.dd LM20-_FontSet
.dw 0x0d,0x0a
.code
LM20:
PC=L3 // jump
L7:
.debug
.dw '.stabn 0x44,0,76,',0,0
.dd LM21-_FontSet
.dw 0x0d,0x0a
.code
LM21:
PC=L3 // jump
L3:
.debug
.dw '.stabn 0x44,0,79,',0,0
.dd LM22-_FontSet
.dw 0x0d,0x0a
.code
LM22:
.debug
.dw '.stabn 0x44,0,79,',0,0
.dd LM23-_FontSet
.dw 0x0d,0x0a
.code
LM23:
L2:
POP BP from [SP]
RETF
.endp // end of FontSet
.debug
.dw '.stabs "Font_NUM:p1",160,0,0,3',0x0d,0x0a
.CODE
.debug
.dw '.stabs "Color:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
.dw '.stabf ',0,0
.dd LME1-_FontSet
.dw 0x0d,0x0a
.code
LME1:
.code
.debug
.dw '.stabs "PutChar:F19",36,0,0,',0,0,offset _PutChar,seg _PutChar,0x0d,0x0a
.CODE
.public _PutChar
_PutChar: .proc
.debug
.dw '.stabn 0x44,0,92,',0,0
.dd LM24-_PutChar
.dw 0x0d,0x0a
.code
LM24:
// total=7, vars=7
// frame_pointer_needed: 1
.debug
.dw '.stabn 0xa6,0,0,7',0x0d, 0x0a
.code
PUSH BP to [SP]
SP-=7
BP=SP+1
R1=BP+10
[BP+5]=R1 // QImode move
LBB2:
.debug
.dw '.stabn 0x44,0,96,',0,0
.dd LM25-_PutChar
.dw 0x0d,0x0a
.code
LM25:
R1=BP // QImode move
R2=BP+4
R1=0 // QImode move
R3=R2 // QImode move
[R3]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,97,',0,0
.dd LM26-_PutChar
.dw 0x0d,0x0a
.code
LM26:
R2=BP // QImode move
R1=BP+2
R2=[BP+5] // QImode move
R4=[BP+5] // QImode move
R3=R4+2
R4=R3 // QImode move
R2=[R4] // QImode move
R3=[_Font_Wrod] // QImode move
[BP+6]=R3 // QImode move
R4=[BP+6] // QImode move
MR=R2*R4 // R3=R2*R4 16bit=16bit*16bit
R4=[_Char_TAB] // QImode move
R2=R4 // QImode move
R2 = R2 + R3 //addqi3
R3=R1 // QImode move
[R3]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,98,',0,0
.dd LM27-_PutChar
.dw 0x0d,0x0a
.code
LM27:
R1=BP // QImode move
R2=BP+1
R1=0 // QImode move
R4=R2 // QImode move
[R4]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,99,',0,0
.dd LM28-_PutChar
.dw 0x0d,0x0a
.code
LM28:
L15:
R2=BP // QImode move
R1=BP+1
R3=R1 // QImode move
R2=[R3] // QImode move
R3=R2 // QImode move
R2=R2+1
R4=R1 // QImode move
[R4]=R2 // QImode move
CMP R3,[_Y_Witch] // QImode compare
NSJL L17 //QImode LT
PC=L16 // jump
L17:
.debug
.dw '.stabn 0x44,0,101,',0,0
.dd LM29-_PutChar
.dw 0x0d,0x0a
.code
LM29:
R1=[BP+5] // QImode move
R1=[BP+5] // QImode move
R2=R1+1
R3=R2 // QImode move
R1=[R3] // QImode move
CMP R1,319 // QImode compare
NSJNG L18 //QImode LE
PC=L16 // jump
L18:
.debug
.dw '.stabn 0x44,0,102,',0,0
.dd LM30-_PutChar
.dw 0x0d,0x0a
.code
LM30:
R1=0 // QImode move
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,103,',0,0
.dd LM31-_PutChar
.dw 0x0d,0x0a
.code
LM31:
L19:
R1=[BP] // QImode move
CMP R1,[_X_Witch] // QImode compare
NSJL L21 //QImode LT
PC=L20 // jump
L21:
.debug
.dw '.stabn 0x44,0,105,',0,0
.dd LM32-_PutChar
.dw 0x0d,0x0a
.code
LM32:
R4=[BP] // QImode move
R1=R4&7
CMP R1,0 // QImode test
NSJNZ L22 //QImode NE
.debug
.dw '.stabn 0x44,0,107,',0,0
.dd LM33-_PutChar
.dw 0x0d,0x0a
.code
LM33:
R2=BP // QImode move
R1=BP+3
R2=BP // QImode move
R3=BP+4
R2=R3 // QImode move
R4=[R2] // QImode move
R2=R4 lsr 1
R3=BP // QImode move
R3=BP+2
[BP+6]=R3 // QImode move
R4=[BP+6] // QImode move
R3=[R4] // QImode move
R2 = R2 + R3 //addqi3
R4=R2 // QImode move
R3=[R4] // QImode move
R2=R1 // QImode move
[R2]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,108,',0,0
.dd LM34-_PutChar
.dw 0x0d,0x0a
.code
LM34:
R1=BP // QImode move
R2=BP+4
R3=R2 // QImode move
R3=[R3]
R1=R3&1
CMP R1,0 // QImode test
NSJNZ L23 //QImode NE
R2=BP // QImode move
R1=BP+3
R2=BP // QImode move
R3=BP+3
R4=R3 // QImode move
R2=[R4] // QImode move
R3=R2 lsr 4
R3=R3 lsr 4
R2=R1 // QImode move
[R2]=R3 // QImode move
L23:
.debug
.dw '.stabn 0x44,0,109,',0,0
.dd LM35-_PutChar
.dw 0x0d,0x0a
.code
LM35:
R1=BP // QImode move
R2=BP+4
R3=BP // QImode move
R1=BP+4
R2=BP // QImode move
R3=BP+4
R4=R3 // QImode move
R2=[R4] // QImode move
R3=R2+1
R2=R1 // QImode move
[R2]=R3 // QImode move
L22:
.debug
.dw '.stabn 0x44,0,112,',0,0
.dd LM36-_PutChar
.dw 0x0d,0x0a
.code
LM36:
R1=BP // QImode move
R2=BP+3
R3=R2 // QImode move
R3=[R3]
R1=R3&128
CMP R1,0 // QImode test
NSJZ L24 //QImode EQ
R1=[_Char_Color] // QImode move
[SP--]=R1 // QImode move
R1=[BP+5] // QImode move
R4=[BP+5] // QImode move
R2=R4+1
R3=R2 // QImode move
R1=[R3] // QImode move
[SP--]=R1 // QImode move
R4=[BP+5] // QImode move
R2=[R4] // QImode move
R1=R2 // QImode move
R1 = R1 + [BP] //addqi3
[SP--]=R1 // QImode move
CALL _Write_Dot_LCD // call without return value
SP = SP + 3 //SP
L24:
.debug
.dw '.stabn 0x44,0,113,',0,0
.dd LM37-_PutChar
.dw 0x0d,0x0a
.code
LM37:
R2=BP // QImode move
R1=BP+3
R2=BP // QImode move
R3=BP+3
R4=R3 // QImode move
R2=[R4] // QImode move
R3=R2 lsl 1
R2=R1 // QImode move
[R2]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,114,',0,0
.dd LM38-_PutChar
.dw 0x0d,0x0a
.code
LM38:
R3=[BP+5] // QImode move
R2=[R3] // QImode move
R1=R2 // QImode move
R1 = R1 + [BP] //addqi3
CMP R1,238 // QImode compare
NSJNG L25 //QImode LE
.debug
.dw '.stabn 0x44,0,116,',0,0
.dd LM39-_PutChar
.dw 0x0d,0x0a
.code
LM39:
R2=BP // QImode move
R1=BP+4
R3=BP // QImode move
R2=BP+4
R3=[_X_Witch] // QImode move
R4=R3 // QImode move
R4-=[BP] // subqi3_r0R R4=R4-[BP]
// ashrqi3_rr1 R3 R4 3
R3=R4 asr 3
R4=R2 // QImode move
R4=[R4] // QImode move
[BP+6]=R4 // QImode move
R2=[BP+6] // QImode move
R2 = R2 + R3 //addqi3
R3=R1 // QImode move
[R3]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,117,',0,0
.dd LM40-_PutChar
.dw 0x0d,0x0a
.code
LM40:
PC=L20 // jump
L25:
.debug
.dw '.stabn 0x44,0,119,',0,0
.dd LM41-_PutChar
.dw 0x0d,0x0a
.code
LM41:
R1=[BP] // QImode move
R2=R1+1
[BP]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,120,',0,0
.dd LM42-_PutChar
.dw 0x0d,0x0a
.code
LM42:
PC=L19 // jump
L20:
.debug
.dw '.stabn 0x44,0,121,',0,0
.dd LM43-_PutChar
.dw 0x0d,0x0a
.code
LM43:
R1=[BP+5] // QImode move
R4=[BP+5] // QImode move
R2=R4+1
R3=[BP+5] // QImode move
R2=[BP+5] // QImode move
R1=R2+1
R2=[BP+5] // QImode move
R4=[BP+5] // QImode move
R3=R4+1
R4=R3 // QImode move
R2=[R4] // QImode move
R3=R2+1
R2=R1 // QImode move
[R2]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,122,',0,0
.dd LM44-_PutChar
.dw 0x0d,0x0a
.code
LM44:
PC=L15 // jump
L16:
.debug
.dw '.stabn 0x44,0,123,',0,0
.dd LM45-_PutChar
.dw 0x0d,0x0a
.code
LM45:
LBE2:
.debug
.dw '.stabn 0x44,0,123,',0,0
.dd LM46-_PutChar
.dw 0x0d,0x0a
.code
LM46:
L14:
SP+=7
POP BP from [SP]
RETF
.endp // end of PutChar
.debug
.dw '.stabs "x:p1",160,0,0,10',0x0d,0x0a
.CODE
.debug
.dw '.stabs "y:p1",160,0,0,11',0x0d,0x0a
.CODE
.debug
.dw '.stabs "a:p4",160,0,0,12',0x0d,0x0a
.CODE
.debug
.dw '.stabn 0xc0,0,0,',0,0
.dd LBB2-_PutChar
.dw 0x0d,0x0a
.code
.debug
.dw '.stabs "i:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
.dw '.stabs "j:1",128,0,0,1',0x0d,0x0a
.CODE
.debug
.dw '.stabs "p_data:20",128,0,0,2',0x0d,0x0a
.CODE
.debug
.dw '.stabs "Temp:11",128,0,0,3',0x0d,0x0a
.CODE
.debug
.dw '.stabs "Index:4",128,0,0,4',0x0d,0x0a
.CODE
.debug
.dw '.stabn 0xe0,0,0,',0,0
.dd LBE2-_PutChar
.dw 0x0d,0x0a
.code
.debug
.dw '.stabf ',0,0
.dd LME2-_PutChar
.dw 0x0d,0x0a
.code
LME2:
.code
.debug
.dw '.stabs "PutString:F19",36,0,0,',0,0,offset _PutString,seg _PutString,0x0d,0x0a
.CODE
.public _PutString
_PutString: .proc
.debug
.dw '.stabn 0x44,0,136,',0,0
.dd LM47-_PutString
.dw 0x0d,0x0a
.code
LM47:
// total=1, vars=1
// frame_pointer_needed: 1
.debug
.dw '.stabn 0xa6,0,0,1',0x0d, 0x0a
.code
PUSH BP to [SP]
SP-=1
BP=SP+1
R1=BP+4
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,137,',0,0
.dd LM48-_PutString
.dw 0x0d,0x0a
.code
LM48:
L34:
R1=[BP] // QImode move
R3=[BP] // QImode move
R2=R3+2
R4=R2 // QImode move
R1=[R4] // QImode move
R3=R1 // QImode move
R2=[R3] // QImode move
CMP R2,0 // QImode test
NSJNZ L36 //QImode NE
PC=L35 // jump
L36:
.debug
.dw '.stabn 0x44,0,139,',0,0
.dd LM49-_PutString
.dw 0x0d,0x0a
.code
LM49:
R1=[BP] // QImode move
R4=[BP] // QImode move
R2=R4+2
R3=R2 // QImode move
R1=[R3] // QImode move
R4=R1 // QImode move
R2=[R4] // QImode move
[SP--]=R2 // QImode move
R1=[BP] // QImode move
R1=[BP] // QImode move
R2=R1+1
R3=R2 // QImode move
R1=[R3] // QImode move
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -