hi
how does this command works? is there any example ?
what is this "address" ?
thanx
address is the memory location of the buffer you have created to read the data from serial into.
buffer ?
wher is writen in blitbasic manual to dont bother you with questions
thanx
address is this?
address = allocmem(1024,1) ?
ok, works with
initbank 0,1024,0
ReadSerialMem 0,bank(0),256
its wrong i guess with
1kmem = AllocMem(1024,1)
ReadSerialMem 0,1kmem,256
it depends.
1kmem is a variable, and it should be .l (32bit) to hold the address and of course you should check if you really got the memory block you've asked for before reading anything to it.