Posts: 615
Threads: 49
Joined: Feb 2009
Reputation:
2
Hi Boriel,
Code: poke Uinteger adr,peek(Uinteger,adr+128)
poke Uinteger adr+2,peek(Uinteger,adr+130)
works, it should do the same as
Code: poke Ulong adr+(a<<5),peek(Ulong,adr+128)
should copy 4 bytes, but the first 2 bytes are not correct.
Posts: 1,770
Threads: 55
Joined: Aug 2019
Reputation:
24
LCD Wrote:Hi Boriel,
Code: poke Uinteger adr,peek(Uinteger,adr+128)
poke Uinteger adr+2,peek(Uinteger,adr+130)
works, it should do the same as
Code: poke Ulong adr+(a<<5),peek(Ulong,adr+128)
should copy 4 bytes, but the first 2 bytes are not correct. Hmmm. I can't understand this example. 'adr' is an Ulong variable? What is 'a'?
Anyway, I guess this is related to a previous fixed bug with poke Uinteger (except I forgot to check for Ulong, Long, Fixed and Float types).
Posts: 615
Threads: 49
Joined: Feb 2009
Reputation:
2
boriel Wrote:LCD Wrote:Hi Boriel,
Code: poke Uinteger adr,peek(Uinteger,adr+128)
poke Uinteger adr+2,peek(Uinteger,adr+130)
works, it should do the same as
Code: poke Ulong adr+(a<<5),peek(Ulong,adr+128)
should copy 4 bytes, but the first 2 bytes are not correct. Hmmm. I can't understand this example. 'adr' is an Ulong variable? What is 'a'?
Anyway, I guess this is related to a previous fixed bug with poke Uinteger (except I forgot to check for Ulong, Long, Fixed and Float types).
Oooops, it should be
Code: poke Ulong adr,peek(Ulong,adr+128)
forget the a variable.
adr is a uinteger variable and the example should copy 4 bytes from one address to another, but the first 2 bytes are corrupted after copying.
Posts: 1,770
Threads: 55
Joined: Aug 2019
Reputation:
24
Can you download the latest version 1.3.0s920 and check if it is fixed?
Posts: 615
Threads: 49
Joined: Feb 2009
Reputation:
2
boriel Wrote:Can you download the latest version 1.3.0s920 and check if it is fixed? Okay, I will do it later today. Thx!
Posts: 615
Threads: 49
Joined: Feb 2009
Reputation:
2
Tested. It works now fine. Thank you again.
|