![]() |
ReadSerialMem example (allocmem ??) - Druckversion +- AmiBlitz³ (https://www.amiblitz.de/community) +-- Forum: AmiBlitz³ (https://www.amiblitz.de/community/forum-3.html) +--- Forum: Questions & Answers (https://www.amiblitz.de/community/forum-7.html) +--- Thema: ReadSerialMem example (allocmem ??) (/thread-292.html) |
ReadSerialMem example (allocmem ??) - plouf - 05.03.2025 hi how does this command works? is there any example ? what is this "address" ? thanx RE: ReadSerialMem example (allocmem ??) - hackball - 05.03.2025 address is the memory location of the buffer you have created to read the data from serial into. RE: ReadSerialMem example (allocmem ??) - plouf - 05.03.2025 buffer ? wher is writen in blitbasic manual to dont bother you with questions ![]() thanx address is this? address = allocmem(1024,1) ? RE: ReadSerialMem example (allocmem ??) - plouf - 06.03.2025 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 RE: ReadSerialMem example (allocmem ??) - hackball - 06.03.2025 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. |