HI,
my PBP does not recognize the PEEKCODE and POKECODE. so any hint can help
thanks
HI,
my PBP does not recognize the PEEKCODE and POKECODE. so any hint can help
thanks
Hi, MINHLE
Will you post a relevant piece of code ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
the code is very simple. but the words: peekcode and poke code are not bolded and capitalized automatically (i.e. they become: PEEKCODE and POKECODE
----------------
CMCON = 1
TRISA = 0
TRISB = 0
I VAR BYTE
OUT_STORAGE VAR WORD ; OUTPUT STORRAGE TEMP.
address VAR WORD
LOOP:
PORTA.1 = 1 ;RESET 4017
PORTA.1 = 0
PORTB = 0 ; set port B all zero
address = $11 ; storage data location beginning here
FOR I = 0 TO 1 ; loop 2 times
peekcode address , OUT_STORAGE ; retrieve data ready for output
PORTB = OUT_STORAGE ; output data by port B
address = address +1 ; fetch the next data
PAUSE 10 ; pause for 10ms
CALL CLOCK ; call clock of 4017
NEXT I
GOSUB LOOP
clock:
porta.0 = 1 ; clock the 4017
@nop
porta.0 = 0
RETURN
END
pokecode @address, $55,$2A
;
;note that the peekcode and pokecode is not capitalized and bolded automatically as the other keywords i.e. PEEK or POKE
Hi, MINHLE
1) address = $11 ; storage data location beginning here
pokecode @address, $55,$2A
Very Strange ... as the table might be located at the program END ( see manual ... ) you are right into the PBP "macro" 's locations !!!
2) Those commands did not ever exist ... which version of PBP do you work with ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hello,
the manuel said place the pokecoke after the END "FOR THE REASON OF INTERRUPTION OF FLOWING PROGRAM".
anyway, the PBP does not recognize the functions PEEKCODE and POKECODE. then issue the compile error
whatever wrong with the code, the keywords should be in upper and bold automatically, similiar to other keywords or functions
in this case i assume there are no such FUNCTIONS IN THE PBP COMPILER.
THANKS FOR YOUR ATTENTION,
i keep looking for answer
p/s the version i do is 3.0.0.5
regards
Last edited by MINHLE; - 7th December 2009 at 16:00. Reason: add answer:
Question 2 was ...
...2) Those commands did not ever exist ... which version of PBP do you work with ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks