Paweł,
wielkie dzięki , jak "sklecę" całość dam znać czy działa.
Pozdrawiam
Andrzej
Nie mogę tego skompilować , zbyt wiele błędów.
Coś tu jest namieszane a hex z tej strony po "odwróceniu" do asm pokazuje to:
Kod:
; Generated by WinDis84, (c) Nigel Goodwin 1998.
LIST P=16F84, F=INHX8M
include "P16FXX.inc"
ORG 0x0000
GOTO Label_0001
ORG 0x0004
GOTO Label_0001
Label_0001 CLRF INTCON
CLRF PORTA
MOVLW 0x07
MOVWF 0x19
BSF STATUS , RP0
CLRF 0x1F
MOVLW 0x38
MOVWF TRISA
CLRF OPTION_REG
CLRF 0x0C
BCF STATUS , RP0
CLRF 0x21
CLRF 0x20
CLRF 0x22
MOVLW 0x00
CALL Label_0002
MOVWF 0x24
MOVLW 0x01
CALL Label_0002
MOVWF 0x23
Label_0009 MOVF 0x23 , W
ADDWF 0x20 , f
BTFSC STATUS , C
GOTO Label_0003
NOP
NOP
NOP
NOP
NOP
NOP
GOTO Label_0004
Label_0003 MOVLW 0x01
ADDWF 0x21 , f
BTFSC STATUS , C
GOTO Label_0005
NOP
GOTO Label_0004
Label_0005 MOVLW 0x01
ADDWF 0x22 , f
Label_0004 MOVF 0x24 , W
ADDWF 0x21 , f
BTFSC STATUS , C
GOTO Label_0006
NOP
GOTO Label_0007
Label_0006 MOVLW 0x01
ADDWF 0x22 , f
Label_0007 CALL Label_0008
MOVWF PORTA
GOTO Label_0009
Label_0008 MOVLW 0x01
MOVWF PCLATH
MOVF 0x22 , W
MOVWF PCL
ORG 0x0100
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x07
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x06
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x05
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x04
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x00
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x01
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x02
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
RETLW 0x03
Label_0002 BSF STATUS , RP0
MOVWF 0x1B
BSF 0x1C , 00
MOVF 0x1A , W
BCF STATUS , RP0
RETURN
ORG 0x2000
DATA 0x0F
DATA 0x0F
DATA 0x0F
DATA 0x0F
ORG 0x2007
DATA 0x01
END