Author Topic: 89 Basic Tutorial  (Read 21827 times)

0 Members and 1 Guest are viewing this topic.

Offline mdjenkins86

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 235
  • Rating: +0/-0
    • View Profile
89 Basic Tutorial
« on: June 12, 2005, 09:12:00 am »
I will post info related to the tutorial here in this topic

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
89 Basic Tutorial
« Reply #1 on: June 12, 2005, 09:20:00 am »
cool, but if its a project the topic should be moved in the announce your project section then the tutorial should be posted in the archives if avaliable in HTML/doc/txt format, like Asmguru and Asm in 28 days :)smile.gif

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
89 Basic Tutorial
« Reply #2 on: June 12, 2005, 09:24:00 am »
well, once something comes out, I will start putting it up on the site, with credits going to you of course. :)smile.gif

Don't want people to think that I am smarter than I am... :laugh:evillaugh.gif
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline mdjenkins86

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 235
  • Rating: +0/-0
    • View Profile
89 Basic Tutorial
« Reply #3 on: June 12, 2005, 09:31:00 am »
Opps... Could you move this to Announce your project section for me Kevin. My bad...

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
89 Basic Tutorial
« Reply #4 on: June 12, 2005, 09:34:00 am »
moved :)smile.gif

Offline mdjenkins86

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 235
  • Rating: +0/-0
    • View Profile
89 Basic Tutorial
« Reply #5 on: June 12, 2005, 09:55:00 am »
Ok well here is the first chapter WITHOUT FORMATTING


Chapter 1: Good Bye, Cruel World

From, the home screen while the desktop is turned off:  APPS, 6 if running ASM 1.0 or 7 if running ASM 2 or higher, 3 for new program, for program name enter ?hellowd?.  Type the following code as followed:

Hellowd()
Prgm
Disp ?Good Bye, Cruel Would?
EndPrgm

Input and output.  This is how you as the programmer communicates with the user, the person running your program.  The be honest, Input and Output is how we communicate and is a way of life.  When you go to work, you input your time and services.  The output is your paycheck.  When you ask someone for his or her name, you are outputting the question (or inquiry).  Their response is the input.  Repeating their name back to them would be output.  When you put your MAC card into an ATM that is input.  The ATM then uses output when it asks you?re for your pin.  When you enter the pin, this is input.

In general when dealing with a calculator program, input is something that the user does to interact with the program.  Some sort of output usually and generally follows this input?if the user presses (inputs) enter then display (output) ?Thank You ? on the screen.

On 68k calculators, there is a separate reserved screen for input and output.  This is completely and utterly independent of the home screen.  To view the I/O screen press F5 from the home screen.  Press ESC to return to the home screen.  Clearing the home screen will not affect the I/O screen and clearing the I/O screen will not affect the home screen.

The program listed above is an example of simple output.  This program doesn?t have code to except input from the user.

Hellowd()
Prgm
Disp ?Good Bye, Cruel World?
EndPrgm

The program launcher, that is the force that runs your program, will begin executing your code after Prgm statement is detected. Concordantly the program has no life beyond the EndPrgm statement.  Thus, all code should be written between Prgm and EndPrgm.  You will notice that ?Hellowd()? rests above the Prgm statement.  Hellowd is the name of your program and () is the space where you can input arguments for that program.  Arguments will discussed in a later chapter so don?t focus on that too much just yet.

As I stated, all code between Prgm and EndPrgm is open for execution.  In the program above the only code that is executable is ?Disp ?Good Bye, Cruel World??.

Disp is the simplest output function in BASIC.  To display a literal, that is to display a string you use quotation marks.  To display a number, you can simply type that number without quotations.  To go to the next line, use a comma.  Input the following code to see the result.

Hellowd()
Prgm
Disp ?The world?s greatest.?
Disp 45
Disp ?Infinity?, 42,?Complex?, 6*7

arti

  • Guest
89 Basic Tutorial
« Reply #6 on: June 12, 2005, 11:17:00 am »
Nice work mdjenkins86! Your English is very versatile, I still need to work a lot on mine :Dbiggrin.gif

I can't wait to see how your tutorial will turn out. Damn exams, you've got a 9-day head start because of them ;)wink.gif

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
89 Basic Tutorial
« Reply #7 on: June 12, 2005, 11:45:00 am »
MY english isnt very good, I speak french :(sad.gif

very nice tutorial mjenkins86  B)cool.gif . I dopnt know if I'll do BASIC if I gewt a 89t because I am really curious about GFA BASIC and ETP Studio but if I mess around with BASIC this tutorial may be THE one I'll refer too. ;)wink.gif

arti

  • Guest
89 Basic Tutorial
« Reply #8 on: June 12, 2005, 11:50:00 am »
Wow... I never knew about ETP Basic! http://www.etpstudio.com

Seems very very nice, I can't wait to try it out! *tries it out*  :gift:party3.gif

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
89 Basic Tutorial
« Reply #9 on: June 12, 2005, 12:01:00 pm »
Wow I didnt knew there was even a website dedicated to the language. Added in link sections :bounce:bounce.gif

Offline mdjenkins86

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 235
  • Rating: +0/-0
    • View Profile
89 Basic Tutorial
« Reply #10 on: June 12, 2005, 01:19:00 pm »
Wow, that is really nice.  This might make my battle system so much easier...I off to learn a new language...Don't worry, I still have every intention to finish my tutorial...but wow.

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
89 Basic Tutorial
« Reply #11 on: June 13, 2005, 07:19:00 am »
its now installed on my comp. It look nice, I will try to mess around with it once I have time.

Offline mdjenkins86

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 235
  • Rating: +0/-0
    • View Profile
89 Basic Tutorial
« Reply #12 on: June 14, 2005, 03:43:00 am »
This is super high level function in basic.  Basic is a high level language (Compared to C and 68k), but EPT is sky high.

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
89 Basic Tutorial
« Reply #13 on: June 14, 2005, 03:45:00 am »
I looked at it and it sound nice. I dont know why but it almost seemed like Casio BASIC and MLC in some way, so I should be familliar with the syntax. The only thing that look weird is how to display black text with Grayscale enabled. I should try to make a small game with it and if I need help I can ask over TI-Gen, they have a ETP studio forum in french.  

Offline mdjenkins86

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 235
  • Rating: +0/-0
    • View Profile
89 Basic Tutorial
« Reply #14 on: June 14, 2005, 05:27:00 am »
I will continue to post my tutorial...