📄 test_sim.lst
字号:
015A 0230 M SUBWF D1,W
00466 JNZ NO_EF
015B 1D03 M BTFSS 3H,2
015C 2965 M GOTO NO_EF
00467 MOVLF R0,EF_INFO
Warning[202]: Argument out of range. Least significant bits used.
015D 300D M MOVLW EF_INFO
015E 008C M MOVWF R0
015F 2172 00468 CALL TEST_FILE
00469 JZ NO_EF
0160 1903 M BTFSC 3H,2
0161 2965 M GOTO NO_EF
00470 OK_EEF MOVLF R0,0FH
0162 300F M MOVLW 0FH
0163 008C M MOVWF R0
00471 JMP SEND_9FA ;select EF (6fxx)
0164 294A M GOTO SEND_9FA
00472
00473 NO_EF CMP D1,2FH
0165 302F M MOVLW 2FH
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0166 0230 M SUBWF D1,W
00474 JNZ ERR_9404 ;no_eef
0167 1D03 M BTFSS 3H,2
MPASM 02.13 Released TEST_SIM.ASM 6-15-1999 11:47:43 PAGE 21
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0168 296E M GOTO ERR_9404
00475 MOVLF R0,EEF_INFO
Warning[202]: Argument out of range. Least significant bits used.
0169 300A M MOVLW EEF_INFO
016A 008C M MOVWF R0
016B 2172 00476 CALL TEST_FILE
00477 JNZ OK_EEF ;select EEF (2fxx)
016C 1D03 M BTFSS 3H,2
016D 2962 M GOTO OK_EEF
00478
00479 ;=======================================
00480 ERR_9404 MOVLF R0,4
016E 3004 M MOVLW 4
016F 008C M MOVWF R0
0170 3094 00481 SEND_94 MOVLW 94H
00482 JMP SEND_ANSWER
0171 28B4 M GOTO SEND_ANSWER
00483
00484
00485
00486
00487
00488
00489 ;**************************************
00490 ;r0=index in table3 of valid files
00491 ;d2=file to test (low byte)
00492 ;
00493 ;RET z=1 file not found
00494 ; z=0 OK r0=index to selected file data
00495 ;--------------------------------------
0172 080C 00496 TEST_FILE MOVF R0,W
0173 2300 00497 CALL GET_DATA3
0174 39FF 00498 ANDLW 0FFH
00499 JZ END_TF
0175 1903 M BTFSC 3H,2
0176 297E M GOTO END_TF
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
0177 0631 00500 XORWF D2,W
00501 JZ END_OKTF
0178 1903 M BTFSC 3H,2
0179 297D M GOTO END_OKTF
Message[305]: Using default destination of 1 (file).
017A 0A8C 00502 INCF R0
Message[305]: Using default destination of 1 (file).
017B 0A8C 00503 INCF R0
00504 JMP TEST_FILE
017C 2972 M GOTO TEST_FILE
00505
017D 3801 00506 END_OKTF IORLW 1
00507 END_TF RET
017E 0008 M RETURN
00508 ;--------------------------------------
00509
MPASM 02.13 Released TEST_SIM.ASM 6-15-1999 11:47:43 PAGE 22
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00510
00511
00512
00513 ;************************************************
017F 209C 00514 SEND_RESPONSE CALL SEND_INS ;always OK
00515
00516 CMP SEL_F1,3FH
0180 303F M MOVLW 3FH
0181 021F M SUBWF SEL_F1,W
00517 JNE NO__MF
0182 1D03 M BTFSS 3H,2
0183 2987 M GOTO NO__MF
00518
00519 MOVLF R0,MF_D
Warning[202]: Argument out of range. Least significant bits used.
0184 302A M MOVLW MF_D
0185 008C M MOVWF R0
00520 JMP SEND_RESP ;MF
0186 299B M GOTO SEND_RESP
00521
00522 NO__MF CMP SEL_F1,7FH
0187 307F M MOVLW 7FH
0188 021F M SUBWF SEL_F1,W
00523 JNE NO__DF
0189 1D03 M BTFSS 3H,2
018A 298E M GOTO NO__DF
00524
00525 MOVLF R0,DF_D
Warning[202]: Argument out of range. Least significant bits used.
018B 3040 M MOVLW DF_D
018C 008C M MOVWF R0
00526 JMP SEND_RESP ;DF
018D 299B M GOTO SEND_RESP
00527
00528 NO__DF CMP SEL_F1,6FH
018E 306F M MOVLW 6FH
018F 021F M SUBWF SEL_F1,W
00529 JE RESP_EF ;EF (6fxx)
0190 1903 M BTFSC 3H,2
0191 29AC M GOTO RESP_EF
00530
00531 CMP SEL_F1,2FH
0192 302F M MOVLW 2FH
0193 021F M SUBWF SEL_F1,W
00532 JE RESP_EEF ;EEF (2fxx)
0194 1903 M BTFSC 3H,2
0195 29AA M GOTO RESP_EEF
00533
0196 0103 00534 SEND_ZEROS CLRW
0197 20EB 00535 CALL SEND_BYTE
00536 DJNZ P3,SEND_ZEROS
0198 0B90 M DECFSZ P3,1
0199 2996 M GOTO SEND_ZEROS
MPASM 02.13 Released TEST_SIM.ASM 6-15-1999 11:47:43 PAGE 23
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00537 JMP OK_END
019A 28B2 M GOTO OK_END
00538
00539
00540 ;***************************************
00541 SEND_RESP CLR R7
M IF R7==1000
M CLRW
M ELSE
019B 0193 M CLRF R7
M ENDIF
00542
00543 NEX_SRR CMP R7,5
019C 3005 M MOVLW 5
019D 0213 M SUBWF R7,W
00544 JNZ NO_INF
019E 1D03 M BTFSS 3H,2
019F 29A2 M GOTO NO_INF
01A0 0820 00545 MOVF SEL_F2,W
00546 JMP NOO_INF
01A1 29A4 M GOTO NOO_INF
00547
01A2 080C 00548 NO_INF MOVF R0,W
01A3 2300 00549 CALL GET_DATA3
01A4 20EB 00550 NOO_INF CALL SEND_BYTE
Message[305]: Using default destination of 1 (file).
01A5 0A93 00551 INCF R7
Message[305]: Using default destination of 1 (file).
01A6 0A8C 00552 INCF R0
00553 DJNZ P3,NEX_SRR
01A7 0B90 M DECFSZ P3,1
01A8 299C M GOTO NEX_SRR
00554 JMP OK_END
01A9 28B2 M GOTO OK_END
00555 ;---------------------------------------
00556
00557 ;************************************************
Warning[202]: Argument out of range. Least significant bits used.
01AA 300A 00558 RESP_EEF MOVLW EEF_INFO
00559 JMP SP_EF
01AB 29AD M GOTO SP_EF
00560 ;************************************************
Warning[202]: Argument out of range. Least significant bits used.
01AC 300D 00561 RESP_EF MOVLW EF_INFO
01AD 008C 00562 SP_EF MOVWF R0
00563 MOVFF D2,SEL_F2
01AE 0820 M MOVF SEL_F2,W
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
01AF 00B1 M MOVWF D2
01B0 2172 00564 CALL TEST_FILE ;always OK
01B1 0A0C 00565 INCF R0,W
01B2 2300 00566 CALL GET_DATA3 ;addr of selected file info
01B3 008C 00567 MOVWF R0
MPASM 02.13 Released TEST_SIM.ASM 6-15-1999 11:47:43 PAGE 24
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00568 ;----------------------------
01B4 3085 00569 MOVLW 85H
01B5 20EB 00570 CALL SEND_BYTE
01B6 300D 00571 MOVLW 0DH
01B7 20EB 00572 CALL SEND_BYTE ;send 85 0d
00573
00574 MOVLF R7,2
01B8 3002 M MOVLW 2
01B9 0093 M MOVWF R7
01BA 21C8 00575 CALL SEND_R0 ;send file size
00576
01BB 081F 00577 MOVF SEL_F1,W
01BC 20EB 00578 CALL SEND_BYTE
01BD 0820 00579 MOVF SEL_F2,W
01BE 20EB 00580 CALL SEND_BYTE ;send file ID
00581
00582 MOVLF R7,3
01BF 3003 M MOVLW 3
01C0 0093 M MOVWF R7
01C1 21C8 00583 CALL SEND_R0
00584
00585 MOVLF R7,6
01C2 3006 M MOVLW 6
01C3 0093 M MOVWF R7
00586 MOVLF R0,EF_D
Warning[202]: Argument out of range. Least significant bits used.
01C4 3056 M MOVLW EF_D
01C5 008C M MOVWF R0
01C6 21C8 00587 CALL SEND_R0
00588 JMP OK_END
01C7 28B2 M GOTO OK_END
00589
00590 ;--------------------------------------
00591
00592 ;**************************************
00593 ; r0=index in table3
00594 ; r7=count
00595 ;--------------------------------------
01C8 080C 00596 SEND_R0 MOVF R0,W
01C9 2300 00597 CALL GET_DATA3
01CA 20EB 00598 CALL SEND_BYTE
Message[305]: Using default destination of 1 (file).
01CB 0A8C 00599 INCF R0
00600 DJNZ R7,SEND_R0
01CC 0B93 M DECFSZ R7,1
01CD 29C8 M GOTO SEND_R0
00601 RET
01CE 0008 M RETURN
00602 ;--------------------------------------
00603
00604
00605
00606
MPASM 02.13 Released TEST_SIM.ASM 6-15-1999 11:47:43 PAGE 25
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00607 ;************************************************
00608 READ_BIN CMP SEL_F1,6FH
01CF 306F M MOVLW 6FH
01D0 021F M SUBWF SEL_F1,W
Warning[202]: Argument out of range. Least significant bits used.
01D1 300D 00609 MOVLW EF_INFO
01D2 1D03 00610 BTFSS STATUS,Z
Warning[202]: Argument out of range. Least significant bits used.
01D3 300A 00611 MOVLW EEF_INFO
01D4 008C 00612 MOVWF R0
00613 MOVFF D2,SEL_F2
01D5 0820 M MOVF SEL_F2,W
Message[302]: Register in operand not in bank 0. Ensure that bank bits are correct.
01D6 00B1 M MOVWF D2
01D7 2172 00614 CALL TEST_FILE
00615 JZ ERR_9408
01D8 1903 M BTFSC 3H,2
01D9 28AB M GOTO ERR_9408
00616
01
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -