English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 22 June 2022, 17:09   #1
rcman
Long time Amiga Owner
 
rcman's Avatar
 
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
rcman is offline  
Old 22 June 2022, 19:07   #2
paraj
Registered User
 
paraj's Avatar
 
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.
paraj is offline  
Old 22 June 2022, 19:26   #3
a4k-oerx
Registered User
 
Join Date: Oct 2008
Location: EU
Posts: 163
Looks similar to some example code of QBasic.
a4k-oerx is offline  
Old 22 June 2022, 22:04   #4
rcman
Long time Amiga Owner
 
rcman's Avatar
 
Join Date: Jun 2017
Location: Uxbridge Canada
Age: 56
Posts: 182
Quote:
Originally Posted by paraj View Post
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.
Thanks
rcman is offline  
Old 22 June 2022, 22:30   #5
Retro1234
Phone Homer
 
Retro1234's Avatar
 
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.
Retro1234 is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:14.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.35720 seconds with 13 queries