Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE ULONG (*solved*)
#1
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#2
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).
Reply
#3
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#4
Can you download the latest version 1.3.0s920 and check if it is fixed?
Reply
#5
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!
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#6
Tested. It works now fine. Thank you again.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)