22 June 2022, 17:09 | #1 |
Long time Amiga Owner
Join Date: Jun 2017
Location: Uxbridge Canada
Age: 56
Posts: 182
|
Amiga Basic Question
Hello,
Look at my old Amiga Basic Code. Looking through the manual I don't see what this command does. Can someone help me? DEF SEG = VARSEG(m%(0)) FOR i% = 0 TO 32 READ d% POKE VARPTR(m%(0)) + i%, d% NEXT i% Thanks RC |
22 June 2022, 19:07 | #2 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
|
While it's been literal decades since I did any BASIC programming, the "VARSEG" thing makes me think this isn't AmigaBASIC but a snippet from a DOS variant of Microsoft Basic. It doesn't seem to be recognized by the version included with WB1.3 and isn't in the manual (VARPTR is on 8-153).
The loop reads 33 integers from the "DATA" section and puts them into the raw storage provided by the "m%" array. |
22 June 2022, 19:26 | #3 |
Registered User
Join Date: Oct 2008
Location: EU
Posts: 163
|
Looks similar to some example code of QBasic.
|
22 June 2022, 22:04 | #4 | |
Long time Amiga Owner
Join Date: Jun 2017
Location: Uxbridge Canada
Age: 56
Posts: 182
|
Quote:
|
|
22 June 2022, 22:30 | #5 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
There are two versions of Basic for Amiga ABasiC Amiga Basic. I remember stuff in a Amiga Basic book for kids not being right.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
basic question about Amibian | AlKemyst | New to Emulation or Amiga scene | 0 | 16 October 2019 02:10 |
CLI basic question: wildcards | r0ber7 | support.Other | 2 | 18 February 2011 19:18 |
Just started with Amiga emulation - please help with a basic question. Thanks. | AmigaBeginner | support.Amiga Forever | 24 | 29 August 2010 00:30 |
Basic Question about AmigaOS 3.1 | Tbird | support.Apps | 18 | 23 January 2003 23:31 |
Very basic connection question. | Muzkat | New to Emulation or Amiga scene | 2 | 23 February 2002 12:06 |
|
|