Beiträge: 22
Themen: 4
Registriert seit: Feb 2025
Bewertung:
0
hi
how does this command works? is there any example ?
what is this "address" ?
thanx
Christos
Beiträge: 324
Themen: 55
Registriert seit: Sep 2013
Bewertung:
7
address is the memory location of the buffer you have created to read the data from serial into.
Amiga. Just to let ya know....
Beiträge: 22
Themen: 4
Registriert seit: Feb 2025
Bewertung:
0
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
Beiträge: 324
Themen: 55
Registriert seit: Sep 2013
Bewertung:
7
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....