QB + 16 Bit

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
QB + 16 Bit

Post by Guest » Sat Oct 26, 2002 4:08 pm

Hello,
i want to write and read from pc analog i/o Board a 16 bit variable , i heard its possible with PEEK and POKE ,
can someone tell me about it.
many thanks for every answer
Hans

User avatar
frankiebaby
Global Moderator
Posts:95
Joined:Tue Apr 30, 2002 1:38 am
Location:Pennsylvania
Contact:

Re: QB + 16 Bit

Post by frankiebaby » Mon Jun 09, 2003 4:14 pm

I do not think that it is possible wit peek and poke, they only do one byte. I think the solution is using BLOAD and BSAVE to load or save X amount of data from the segment and offset you specify.

After BSAVE-ing from the 16bit source, you can BLOAD it into a string

Guest

Re: QB + 16 Bit

Post by Guest » Thu Jun 12, 2003 3:31 am

If I remember correctly, Peek/Poke will only change bits of data in MEMORY.

IF this board is connected, you'll have to track down it's data segment address and then you may be able to change it directly or possibly read the bits as Frankiebaby suggested -- so long as it's data segs are in the conventional region of RAM (meaning: < 64K.)

--MiggyD

Post Reply