Welcome, Guest. Please login or register.

Author Topic: Amiga Basic  (Read 14639 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline persia

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 3753
    • Show only replies by persia
Re: Amiga Basic
« Reply #44 from previous page: January 10, 2009, 04:01:13 PM »
Just program in malbolge or LOLCODE...

Hello World

malbolge
Quote

(=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**
 hKs_dG5[m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCAA@98\6543W10/.R,+O<


LOLCODE
Quote

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
[SIGPIC][/SIGPIC]

What we\'re witnessing is the sad, lonely crowing of that last, doomed cock.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #45 on: January 10, 2009, 04:06:26 PM »
:lol: @LOLCODE :-D

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Amiga Basic
« Reply #46 on: January 10, 2009, 04:17:45 PM »
Quote

bloodline wrote:

Eh? I mean that you don't need things like pointers, references and datatypes if you want to write simple programs in C... Just like you don't need them in BASIC... Though BlitzBasic also had these features... Then once you are used to the C syntax then you an learn about the more advanced concepts...

You have to be kidding about C++ is is a huge improvment over C!!!


I learned Assembly on the 68000 before I learned C.  That's the only way I could understand it.  Otherwise I'd still be learning it.

As for C++, it is an improvement over C.  It isn't an improvement over an Object Oriented Basic like VB.NET or anything like that.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Amiga Basic
« Reply #47 on: January 10, 2009, 04:26:36 PM »
Quote

bloodline wrote:
Quote

amiga_3k wrote:
@bloodline:

Pardon my ignorance... but I've never heard of SDL :-S. Would it provide functions for, for instance, drawing a line between two coordinates? Could you point me to a good starting-point for information on this? I'm willing to learn :-).


Yes exacty, it is a C library that provides these functions! :-)

Head over to SDLorg website, if you need any help let me know!


Link:  http://www.libsdl.org/
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #48 on: January 10, 2009, 06:09:42 PM »
Quote

SamuraiCrow wrote:
Quote

bloodline wrote:

Eh? I mean that you don't need things like pointers, references and datatypes if you want to write simple programs in C... Just like you don't need them in BASIC... Though BlitzBasic also had these features... Then once you are used to the C syntax then you an learn about the more advanced concepts...

You have to be kidding about C++ is is a huge improvment over C!!!


I learned Assembly on the 68000 before I learned C.  That's the only way I could understand it.  Otherwise I'd still be learning it.


I could never go back to ASM now :-) I like all the creature comforts of C/C++ too much now!

Quote

As for C++, it is an improvement over C.  It isn't an improvement over an Object Oriented Basic like VB.NET or anything like that.


Well, I can't really comment... I think VB is a crime against nature... Though I did like BlitzBasic a bit... That would be quite good with some OOP features added...

Actually... AmigaE always looked more like a dialect BASIC, than anything else to my eyes... :-D

Offline melott

  • Hero Member
  • *****
  • Join Date: Dec 2002
  • Posts: 989
    • Show only replies by melott
Re: Amiga Basic
« Reply #49 on: January 10, 2009, 07:00:25 PM »
An interesting discussion ..
Am enjoying and learning from it.

Mel
Stealth ONE  8-)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #50 on: January 10, 2009, 07:04:17 PM »
Quote

melott wrote:
An interesting discussion ..
Am enjoying and learning from it.

Mel


People forget Amiga.org has lots of really really talented coders in many languages.. if anyone has any problems I expect someone here can help... I know I've had loads of help from people here (Which makes me want to return the favour) :-)

Offline amiga_3k

  • Sr. Member
  • ****
  • Join Date: Apr 2006
  • Posts: 467
    • Show only replies by amiga_3k
    • http://www.elf8.nl
Re: Amiga Basic
« Reply #51 on: January 10, 2009, 07:30:33 PM »
@bloodline:

I'm ashamed to admit that I'm using a WinXP machine at the moment  :oops:. Any tip on what freeware c/c++ version to use on WinXP? I don't want to go through the hassle of installing VisualStudio.
Get a SAM, while you can! The new AMIGA is here!
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #52 on: January 10, 2009, 07:55:01 PM »
Quote

amiga_3k wrote:
@bloodline:

I'm ashamed to admit that I'm using a WinXP machine at the moment  :oops:. Any tip on what freeware c/c++ version to use on WinXP? I don't want to go through the hassle of installing VisualStudio.


I used to use MinGW and Bloodshed's Dev C++ on WinXP... it's a great IDE system and really fun to use.

If you use a Mac... then XCode is great... GDB makes life so simple...

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com

Offline amiga_3k

  • Sr. Member
  • ****
  • Join Date: Apr 2006
  • Posts: 467
    • Show only replies by amiga_3k
    • http://www.elf8.nl
Re: Amiga Basic
« Reply #54 on: January 10, 2009, 08:53:16 PM »
@ Bloodline:

Thanks a lot! I've just installed it and toying around with it. Has been a good 4 years since I last used C++ so I'm currently studying 'Hello World' again :-D.

I'll first try to get back into the basics of C++ again, then I'll try and add eyecandy step by step.

Get a SAM, while you can! The new AMIGA is here!
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Amiga Basic
« Reply #55 on: January 10, 2009, 08:55:46 PM »
Quote
bloodline wrote:
char* just means that the function wants a pointer to the string rather than passing the whole string (which would be slow)... You proabably should have  referenced the string :-)

I really have no idea what any of that means... I'll just stick to basic ;-) I like programming because I enjoy thinking about the procedure and logic of how the application should work. What I don't like is the intricacies of the language getting in the way.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #56 on: January 10, 2009, 09:19:55 PM »
Quote

amiga_3k wrote:
@ Bloodline:

Thanks a lot! I've just installed it and toying around with it. Has been a good 4 years since I last used C++ so I'm currently studying 'Hello World' again :-D.

I'll first try to get back into the basics of C++ again, then I'll try and add eyecandy step by step.



Cool, DevC++ uses gcc, so anything you write (and eventually with SDL), will be compilable (with little or no changes) on MacOSX and Linux as well... Oh and some old system called an armooger or something ;-)

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #57 on: January 10, 2009, 09:25:41 PM »
Quote

motorollin wrote:
Quote
bloodline wrote:
char* just means that the function wants a pointer to the string rather than passing the whole string (which would be slow)... You proabably should have  referenced the string :-)

I really have no idea what any of that means... I'll just stick to basic ;-) I like programming because I enjoy thinking about the procedure and logic of how the application should work. What I don't like is the intricacies of the language getting in the way.

--
moto


Hehehe :-)

well, for those interested:

Code: [Select]

int  A = 5;   //means that the integer variable A = 5
int* B = &A;  //means that variable B, now is a pointer to the integer variable A


All types with a * after them are memory addresses.

The "&" operator means, "The Address of"

If you pass a variable to a function, you will notice in the C code that the variable is actually copied to a new variable for use in the function... if you pass a pointer of the variable to the function instead, then the function will act upon the original variable rather than a copy of it!

If the function requires char* and your string is in an array (it is important to remember that a string is an array of characters)... then you need to reference your array with a preceding "&" operator.

Offline amiga_3k

  • Sr. Member
  • ****
  • Join Date: Apr 2006
  • Posts: 467
    • Show only replies by amiga_3k
    • http://www.elf8.nl
Re: Amiga Basic
« Reply #58 on: January 10, 2009, 09:31:10 PM »
@bloodline:

I think portability is a good thing. Especially with niches like the AmigaOS.

Don't expect top of the line action games. I'll first have a go at porting my JavaScript versions of Mastermind and 'HotNumber DeLuxe', both being rather old-school 2D games. Don't expect results very soon as I'm about to change homes (and computers, once again, next system probably an EeeBox).

Get a SAM, while you can! The new AMIGA is here!
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Amiga Basic
« Reply #59 on: January 10, 2009, 09:48:10 PM »
Quote

amiga_3k wrote:
@bloodline:

I think portability is a good thing. Especially with niches like the AmigaOS.

Don't expect top of the line action games. I'll first have a go at porting my JavaScript versions of Mastermind and 'HotNumber DeLuxe', both being rather old-school 2D games. Don't expect results very soon as I'm about to change homes (and computers, once again, next system probably an EeeBox).



Well, JavaScript is so close to C syntax it really shouldn't take long to get into... You are seriosuly going to love SDL, anyone who has spent much time blitting gfx around on the Amiga, will have no problems with SDL!