红 {MOD}字体为出错提示,都是在调用函数时出错。
MPASM 5.20 PIC.ASM 10-9-2009 10:55:46 PAGE 2
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0016 0586 00050 BSF RB,4
0017 0506 00051 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)0018 095B 00052 CALL DELAY 00053
0019 0486 00054 BCF RB,4
001A 0406 00055 BCF RB,0
001B 0000 00056 NOP
00057
001C 0C00 00058 MOVLW 00H
001D 0033 00059 MOVWF U1
00060
001E 0C00 00061 MOVLW 00H
001F 0034 00062 MOVWF D1
00063
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0020 0964 00064 CALL send8 00065
0021 0586 00066 BSF RB,4
0022 0506 00067 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0023 095B 00068 CALL DELAY
00069
0024 0486 00070 BCF RB,4
0025 0406 00071 BCF RB,0
0026 0000 00072 NOP
00073
0027 0CA0 00074 MOVLW 0A0H
0028 0033 00075 MOVWF U1
00076
0029 0CA0 00077 MOVLW 0A0H
002A 0034 00078 MOVWF D1
00079
Error[120] : Call or jump not allowed at this address (must be in low half of page)
002B 0964 00080 CALL send8
00081
002C 0586 00082 BSF RB,4
002D 0506 00083 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)
002E 095B 00084 CALL DELAY
00085
002F 0486 00086 BCF RB,4
此帖出自
小平头技术问答
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00E3 0CF1 00348 MOVLW 0F1H
00E4 0034 00349 MOVWF D1
00350
00E5 09F1 00351 CALL send8
00352
00E6 0000 00353 NOP
00E7 09E8 00354 CALL DELAY
00355
00356
00357
00E8 0CFF 00358 DELAY MOVLW 0FFH
00E9 0030 00359 MOVWF count
00360
00EA 0CFF 00361 L10 MOVLW 0FFH
00EB 0031 00362 MOVWF count1
00363
00EC 02F1 00364 L20 DECFSZ count1,1
00ED 0AEC 00365 GOTO L20
00366
00EE 02F0 00367 DECFSZ count,1
00EF 0AEA 00368 GOTO L10
00369
00F0 0800 00370 RETLW 0
00371
00F1 00372 send8
00F1 0C08 00373 MOVLW 8
00F2 0030 00374 MOVWF count
00F3 00375 LOOP0
00F3 06F3 00376 BTFSC U1,7
00F4 0526 00377 BSF RB,1
00F5 07F3 00378 BTFSS U1,7
00F6 0426 00379 BCF RB,1
00380
00F7 06F4 00381 BTFSC D1,7
00F8 05A6 00382 BSF RB,5
00F9 07F4 00383 BTFSS D1,7
00FA 04A6 00384 BCF RB,5
00385
00FB 0000 00386 NOP
00387
00FC 04C6 00388 BCF RB,6
00FD 0446 00389 BCF RB,2
00FE 0000 00390 NOP
00FF 0000 00391 NOP
0100 0000 00392 NOP
00393
MPASM 5.20 PIC.ASM 10-9-2009 15:57:57 PAGE 10
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0101 05C6 00394 BSF RB,6
0102 0546 00395 BSF RB,2
0103 0000 00396 NOP
00397
0104 0373 00398 RLF U1,1
0105 0374 00399 RLF D1,1
00400
0106 02F0 00401 DECFSZ count,1
0107 0AF3 00402 GOTO LOOP0
00403
0108 0800 00404 RETLW 0
00405
0109 0586 00406 BSF RB,4
010A 0506 00407 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)
010B 097B 00408 CALL DELAY1
00409
010C 0486 00410 BCF RB,4
010D 0406 00411 BCF RB,0
010E 0000 00412 NOP
00413
010F 0C07 00414 MOVLW 07H
0110 0033 00415 MOVWF U1
00416
0111 0C07 00417 MOVLW 07H
0112 0034 00418 MOVWF D1
00419
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0113 0984 00420 CALL send81 ;
00421
0114 0586 00422 BSF RB,4
0115 0506 00423 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0116 097B 00424 CALL DELAY1
00425
0117 0486 00426 BCF RB,4
0118 0406 00427 BCF RB,0
0119 0000 00428 NOP
00429
011A 0CA5 00430 MOVLW 0A5H
011B 0033 00431 MOVWF U1
00432
011C 0CA5 00433 MOVLW 0A5H
MPASM 5.20 PIC.ASM 10-9-2009 15:57:57 PAGE 11
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
011D 0034 00434 MOVWF D1
00435
Error[120] : Call or jump not allowed at this address (must be in low half of page)
011E 0984 00436 CALL send81
00437
011F 0586 00438 BSF RB,4
0120 0506 00439 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0121 097B 00440 CALL DELAY1
00441
0122 0486 00442 BCF RB,4
0123 0406 00443 BCF RB,0
0124 0000 00444 NOP
00445
0125 0C01 00446 MOVLW 01H
0126 0033 00447 MOVWF U1
00448
0127 0C01 00449 MOVLW 01H
0128 0034 00450 MOVWF D1
00451
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0129 0984 00452 CALL send81
00453
012A 0000 00454 NOP
Error[120] : Call or jump not allowed at this address (must be in low half of page)
012B 097B 00455 CALL DELAY1
00456
012C 0586 00457 BSF RB,4
012D 0506 00458 BSF RB,0
Error[120] : Call or jump not allowed at this address (must be in low half of page)
012E 097B 00459 CALL DELAY1
00460
012F 0486 00461 BCF RB,4
0130 0406 00462 BCF RB,0
0131 0000 00463 NOP
00464
0132 0C08 00465 MOVLW 08H
0133 0033 00466 MOVWF U1
00467
0134 0C08 00468 MOVLW 08H
0135 0034 00469 MOVWF D1
00470
Error[120] : Call or jump not allowed at this address (must be in low half of page)
0136 0984 00471 CALL send81 ;
00472
一周热门 更多>