⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i2c.asm

📁 根据I2C协议传输的源代码
💻 ASM
📖 第 1 页 / 共 3 页
字号:
#pragma debug scope 30 29 ; 231 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
INC CR20
L138:
#line 231 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,CR20
SUB A,_I2C[7]
SNZ [0ah].0
JMP L135
L137:
#line 237 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,080h
MOV _I2C[1],A
#line 238 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV _I2C[4],A
#line 239 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CALL _PulseOut
#line 240 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR [05H]
SET [05H].0
#line 240 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L112
L121:
#line 243 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 29 28 ; 243 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,0fdh
MOV _ucWatch,A
#line 244 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR [05H]
#line 244 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L112
L119:
#line 246 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 28 27 ; 246 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
SET _ucWatch
#line 246 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR [05H]
#line 246 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L112
L113:
#line 248 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 27 1 ; 248 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,0feh
MOV _ucWatch,A
#line 248 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR [05H]
L112:
RET
LOCAL b0_8 DB ?
#line 212 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR20 DB ? ; i
#pragma debug variable 8 27 CR20 i
_Send ENDP
#line 252 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
@MAIN .SECTION 'CODE'
PUBLIC _MAIN
_MAIN PROC
#pragma debug scope 34 1 ; 256 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 256 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CALL _SYSTEM_INITIAL
#line 258 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CALL _GameInitial
#line 259 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR CR32
#line 259 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR CR37
#line 259 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR CR38
#line 259 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR _ucWatch
#line 259 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR _ucWatch2
#line 259 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L148
L147:
#pragma debug scope 35 34 ; 262 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 262 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR CR31
CLR CR31[1]
MOV A,01h
MOV CR27,A
MOV A,02h
MOV CR28,A
MOV A,03h
MOV CR29,A
MOV A,04h
MOV CR30,A
#line 262 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L153
L150:
#pragma debug scope 36 35 ; 264 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 264 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV _I2C[5],A
#line 265 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV _I2C[6],A
#line 266 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,04h
MOV _I2C[7],A
#line 267 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,CR27
MOV _I2C[8],A
#line 268 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,CR28
MOV _I2C[9],A
#line 269 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,CR29
MOV _I2C[10],A
#line 270 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,CR30
MOV _I2C[11],A
#line 271 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[8]
MOV CR33,A
#line 272 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[9]
MOV CR34,A
#line 273 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[10]
MOV CR35,A
#line 274 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[11]
MOV CR36,A
#line 275 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CALL _Send
MOV b0_9,A
SZ b0_9.0
JMP L171
#pragma debug scope 37 36 ; 276 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 276 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV CR37,A
#line 276 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L152
L171:
#line 277 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 36 35 ; 277 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR CR26
CLR CR26[1]
#line 277 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L176
L173:
L174:
#line 277 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
INC CR26
SZ [0AH].2
INC CR26[1]
L176:
#line 277 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,0ffh
SUB A,CR26[1]
SNZ [0ah].0
JMP L218
SNZ [0ah].2
JMP L173
MOV A,0ffh
SUB A,CR26
SNZ [0ah].0
JMP L218
SNZ [0ah].2
JMP L173
L218:
#line 278 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR _I2C[8]
#line 279 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR _I2C[9]
#line 280 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR _I2C[10]
#line 281 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR _I2C[11]
#line 282 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV _I2C[5],A
#line 283 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,03h
MOV _I2C[6],A
#line 284 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,04h
MOV _I2C[7],A
#line 285 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CALL _Send
MOV b0_9,A
SZ b0_9.0
JMP L187
#pragma debug scope 38 36 ; 286 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 286 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,02h
MOV CR38,A
#line 286 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L152
L187:
#line 287 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 36 35 ; 287 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[8]
MOV CR33,A
#line 288 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[9]
MOV CR34,A
#line 289 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[10]
MOV CR35,A
#line 290 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[11]
MOV CR36,A
#line 291 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[8]
XOR A,CR27
SZ [0ah].2
JMP L196
#pragma debug scope 39 36 ; 292 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 292 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV CR32,A
#line 292 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L152
L196:
#line 293 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 36 35 ; 293 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[9]
XOR A,CR28
SZ [0ah].2
JMP L199
#pragma debug scope 40 36 ; 294 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 294 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,02h
MOV CR32,A
#line 294 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L152
L199:
#line 295 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 36 35 ; 295 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[10]
XOR A,CR29
SZ [0ah].2
JMP L203
#pragma debug scope 41 36 ; 296 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 296 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,03h
MOV CR32,A
#line 296 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L152
L203:
#line 297 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 36 35 ; 297 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,_I2C[11]
XOR A,CR30
SZ [0ah].2
JMP L207
#pragma debug scope 42 36 ; 298 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#line 298 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,04h
MOV CR32,A
#line 298 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L152
L207:
#line 299 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 36 35 ; 299 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
CLR CR26
CLR CR26[1]
#line 299 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L214
L211:
L212:
#line 299 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
INC CR26
SZ [0AH].2
INC CR26[1]
L214:
#line 299 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,0ffh
SUB A,CR26[1]
SNZ [0ah].0
JMP L219
SNZ [0ah].2
JMP L211
MOV A,0ffh
SUB A,CR26
SNZ [0ah].0
JMP L219
SNZ [0ah].2
JMP L211
L219:
L151:
#line 262 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 35 34 ; 262 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
INC CR31
SZ [0AH].2
INC CR31[1]
INC CR27
MOV A,02h
ADDM A,CR28
MOV A,03h
ADDM A,CR29
MOV A,04h
ADDM A,CR30
L153:
#line 262 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,0ffh
SUB A,CR31[1]
SNZ [0ah].0
JMP L220
SNZ [0ah].2
JMP L150
MOV A,0feh
SUB A,CR31
SNZ [0ah].0
JMP L220
SNZ [0ah].2
JMP L150
L220:
L152:
#line 301 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,CR31
XOR A,0ffh
SNZ [0ah].2
JMP L221
MOV A,CR31[1]
XOR A,0ffh
SZ [0ah].2
JMP L215
L221:
#line 302 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
MOV A,01h
MOV _I2C[8],A
L215:
L148:
#line 260 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
#pragma debug scope 34 1 ; 260 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
JMP L147
L146:
RET
LOCAL b0_9 DB ?
#line 255 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR26 DB 2 DUP (?) ; n
#pragma debug variable 10 34 CR26 n
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR27 DB ? ; i1
#pragma debug variable 8 34 CR27 i1
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR28 DB ? ; i2
#pragma debug variable 8 34 CR28 i2
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR29 DB ? ; i3
#pragma debug variable 8 34 CR29 i3
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR30 DB ? ; i4
#pragma debug variable 8 34 CR30 i4
#line 255 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR31 DB 2 DUP (?) ; j
#pragma debug variable 10 34 CR31 j
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR32 DB ? ; k
#pragma debug variable 8 34 CR32 k
#line 253 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR33 DB ? ; ucTemp1
#pragma debug variable 8 34 CR33 ucTemp1
#line 253 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR34 DB ? ; ucTemp2
#pragma debug variable 8 34 CR34 ucTemp2
#line 253 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR35 DB ? ; ucTemp3
#pragma debug variable 8 34 CR35 ucTemp3
#line 253 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR36 DB ? ; ucTemp4
#pragma debug variable 8 34 CR36 ucTemp4
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR37 DB ? ; t1
#pragma debug variable 8 34 CR37 t1
#line 254 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
LOCAL CR38 DB ? ; t2
#pragma debug variable 8 34 CR38 t2
_MAIN ENDP
PUBLIC _ucI2CStatus
@ucI2CStatus .SECTION 'DATA'
#line 36 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
_ucI2CStatus DB ? ; ucI2CStatus
#pragma debug variable 8 1 _ucI2CStatus ucI2CStatus
PUBLIC _ucI2CAcc
@ucI2CAcc .SECTION 'DATA'
#line 36 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
_ucI2CAcc DB ? ; ucI2CAcc
#pragma debug variable 8 1 _ucI2CAcc ucI2CAcc
PUBLIC _ucWatch3
@ucWatch3 .SECTION 'DATA'
#line 6 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
_ucWatch3 DB ? ; ucWatch3
#pragma debug variable 8 1 _ucWatch3 ucWatch3
PUBLIC _ucWatch2
@ucWatch2 .SECTION 'DATA'
#line 6 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
_ucWatch2 DB ? ; ucWatch2
#pragma debug variable 8 1 _ucWatch2 ucWatch2
PUBLIC _ucWatch
@ucWatch .SECTION 'DATA'
#line 6 "F:\我的文档\产品资料\DCT\I2C\I2C.C"
_ucWatch DB ? ; ucWatch
#pragma debug variable 8 1 _ucWatch ucWatch
EXTERN _SPEECH_INITIAL:NEAR
PUBLIC _I2C
@I2C .SECTION 'DATA'
#line 1 "./Variable.H"
_I2C DB 16 DUP (?) ;I2C
#pragma debug variable 4 1 _I2C I2C

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -