Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
ReadSerialMem example (allocmem ??)
#1
hi

how does this command works? is there any example ?
what is this "address" ?

thanx
Christos
Zitieren
#2
address is the memory location of the buffer you have created to read the data from serial into.
Amiga. Just to let ya know....
Zitieren
#3
buffer ?

wher is writen in blitbasic manual to dont bother you with questions Smile

thanx

address is this?

address = allocmem(1024,1) ?
Christos
Zitieren
#4
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
Christos
Zitieren
#5
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.
Amiga. Just to let ya know....
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste