Basic Programming
#1
Posted 08 March 2004 - 10:47 PM
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.
Holla Back!!!
#2
Posted 09 March 2004 - 05:41 AM
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
Posted 09 March 2004 - 11:44 AM
Good idea huhn, Im sure all Basic programmers would appreciate a more robust display function too.
- dscoshpe -
#4
Posted 09 March 2004 - 12:50 PM
#5
Posted 09 March 2004 - 01:03 PM
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
Posted 09 March 2004 - 01:28 PM
#7
Posted 09 March 2004 - 02:21 PM
#8
Posted 09 March 2004 - 04:37 PM
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
Posted 09 March 2004 - 05:20 PM
#10
Posted 09 March 2004 - 05:29 PM
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
Posted 09 March 2004 - 08:36 PM
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!!!
Keep up the good work, huhn_m, and Holla Back!!!
#12
Posted 09 March 2004 - 10:59 PM
#13
Posted 10 March 2004 - 01:11 AM
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
Posted 10 March 2004 - 07:46 AM
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
Posted 10 March 2004 - 04:31 PM
#16
Posted 13 March 2004 - 02:03 AM
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.
Don't forget to Holla Back!!!
#17
Posted 13 March 2004 - 04:27 AM
- dscoshpe -
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users