Jump to content



Photo
- - - - -

Basic Programming


  • Please log in to reply
16 replies to this topic

#1 bardonw

bardonw

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Philadelphia, PA
  • Interests:I am interested in a lot of things but recently I have been interested in creating add ins for the Algebra FX 2.0.

  • Calculators:
    Algebra FX 2.0

Posted 08 March 2004 - 10:47 PM

I am all out of ideas for efficient BASIC games and programs for the Algebra FX 2.0. I know that most people don't program in BASIC anymore, but since I don't know how to program in C/ASM, I just continue helping others with their games or programs. If you would like to know program in the BASIC calculator code for the Algebra FX 2.0 or the FX-7400G PLUS, feel free to ask me by posting a reply.

If you have an idea for a BASIC program or game please post your idea or send it to me at brodonw AT hotmail.com. If you would like to check out a few of my programs click here or go to http://geocities.com...o/programs.html.

B) Holla Back!!! B)

#2 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 09 March 2004 - 05:41 AM

I'm currently in progress of writing a casio basic extender.
It works quite well now and can already write and
read te hardware prts using standard BASIC.

In future it'll be able to trigger ints and read / write to the memory
thus enabling you to write to the flash or
to use the comport.

#3 dscoshpe

dscoshpe

    Casio Freak

  • [Legends]
  • PipPipPipPip
  • 185 posts
  • Location:California, USA

  • Calculators:
    AFX 2.0 (v1.00), 9850Ga+, 9800, BE-300 other..

Posted 09 March 2004 - 11:44 AM

How are you going about it? New interpreter?

Good idea huhn, Im sure all Basic programmers would appreciate a more robust display function too.

- dscoshpe -

#4 Brazzucko

Brazzucko

    UCF BASIC Programming Champion

  • Super Member
  • PipPipPipPipPipPip
  • 412 posts

  • Calculators:
    FX 1.0, CFX 9850 GB Plus and FX 9750G

Posted 09 March 2004 - 12:50 PM

:D I just want to see how the Gang Fight2 will run in your program huhn_m I can?t wait for that, just keep the good work?..

#5 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 09 March 2004 - 01:03 PM

The Extended BASIC is a driver that hooks onto the display
driver (INT 10h) and is controlled by special char output.

I already mentioned to display the real time clock of the calc.
I still need to implement an "echo" mode that enables you to
prevent the control chars from printing.

And it is still a little unstable causing the calc to crash even if it is not
installed anymore.

I'll do the memory access today and try to make it more stable.
Next thing to do is to write a tut and then I'm gonna release it.

This will enable you to even use grayscale (3 buffers) in games and
to use fast display methods.

I'll also include some special functions that will be hooked on an other
interrupt like "displaysprite" or "clearsprite" and such things that would
still be slow using basic.

#6 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking & Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool & Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 09 March 2004 - 01:28 PM

sounds brilliant, i cant wait for it. will we be able to just program in the standard BASIC editor, or will we be using a builtin editor that you have made?

#7 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 09 March 2004 - 02:21 PM

huhn... thank you :bow: :bow: :bow: :bow: :bow: :bow: :bow: :bow: :bow:

#8 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 09 March 2004 - 04:37 PM

you'll use the standard editor and all Casio Basic functions will still work.

Its quite unstable now but here is an example what you can do:

0-A
"~1" 'Launch Basic Extender
If A=0
THEN "NO BASIC EXTENDER FOUND!"
STOP
ENDIF
A-J   'Confirm usage of basic extender (to avoid errors because of other progs)
29->B;Port containing Seconds
"P" 'Read port
LOCATE 1,1,P 'Print the seconds
"Q" 'Leave Extended mode
"BASIC EXTENDER EXITED"

This works well and stable now and I turned of the echo of the control chars.
I also wrote the "write mem" part but there are errors though.

And somehow the calc sometimes reboots if you turn it on after having it turned off.

There are quite some things to do but it looks nice.

The prog size is now 1070Bytes (~900 Bytes loaded into RAM rest loader)

#9 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 09 March 2004 - 05:20 PM

you should use # for commands, other than the checker. it would make more sense. :)

#10 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 09 March 2004 - 05:29 PM

nope since then I'd have to test for 2 chars what is more difficult than to test for one
since they are given to the handler char by char.

And if you have a prog that uses the text "#ROBOT#' then
you'd reboot the calc while even a program

'~1ROBOT' wouldn't for the reason that the variable needs to be assigned.
This variable is, btw. dependant on the current time.

#11 bardonw

bardonw

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Philadelphia, PA
  • Interests:I am interested in a lot of things but recently I have been interested in creating add ins for the Algebra FX 2.0.

  • Calculators:
    Algebra FX 2.0

Posted 09 March 2004 - 08:36 PM

:rock: Huhn_m, that is straight up off da hook dog!!! :rock:

When you are done with getting the bugs out of this editor and everything, you will have to tell us. I have been waiting for something crazy like this and now it is almost here!!!

B) Keep up the good work, huhn_m, and Holla Back!!! B)

#12 Bob Vila

Bob Vila

    Casio Overlord

  • Members
  • PipPipPipPipPipPipPip
  • 768 posts
  • Gender:Male
  • Location:USA

  • Calculators:
    FX 1.0+ : CFX-9850 GB Plus : TI-81

Posted 09 March 2004 - 10:59 PM

i'm guessing that the basic extender thing is for the afx right?

#13 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 10 March 2004 - 01:11 AM

im confused, why would you have to test for more than one char?

im thinking:
#DRAWSPRITE 1,1,"SPRITENAME"
and
#REFRESH

like in C.

you would only have to test the beging of each line. and as for the checker it would be the only thing on the second line of the program (so that you can put 0->A on the top line). this way you could just look at the second line to do the check, then not worry about the other char anymore. see what i mean?

#14 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 10 March 2004 - 07:46 AM

the system calls int 10h with every char after the other in AL you must
understand sth. of sys-architecture to do such things and I don't
want to write this thing in c since then It would take up too much memory.

#15 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 10 March 2004 - 04:31 PM

ah well, its your prog ;) do what ever you can (im just happy your doing it :D )

#16 bardonw

bardonw

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Philadelphia, PA
  • Interests:I am interested in a lot of things but recently I have been interested in creating add ins for the Algebra FX 2.0.

  • Calculators:
    Algebra FX 2.0

Posted 13 March 2004 - 02:03 AM

Like I said before, all of this stuff sounds excellent. I can't wait to see that new editor.

To get back on topic, are there any questions about how to program in the BASIC editor for the AFX 2.0? If there are any questions or suggestions, reply by posting a message.

B) Don't forget to Holla Back!!! B)

#17 dscoshpe

dscoshpe

    Casio Freak

  • [Legends]
  • PipPipPipPip
  • 185 posts
  • Location:California, USA

  • Calculators:
    AFX 2.0 (v1.00), 9850Ga+, 9800, BE-300 other..

Posted 13 March 2004 - 04:27 AM

Nah, I think Im good. Thanks though.

- dscoshpe -




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users