Author Topic: Basic Specialized IDE for making Installs and the like  (Read 5567 times)

0 Members and 1 Guest are viewing this topic.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Basic Specialized IDE for making Installs and the like
« on: October 29, 2013, 08:58:32 am »
Picture this...
You’re making a TI-BASIC game it has three subprograms and two of them are ASM programs, in hex codes. Do you spend your time writing a readme file... or do you quickly build and Install File and simply tell users to run it?
CMDEV- Command Developer
Using small easy to remember commands written it your CMDEVedit program will make this possible. From commands for making a loading bar to writing ASM programs, even the option to search for compatibility. Need BATLIB to run? CMDEV will search for it.
Code: [Select]
: I. (CMDEV)
: FM. (JOSH LANDERS)
: CFM. (JOSH*ATGUSA.COM)
: and more
That was a small taster of the type of code. I’m thinking of this being in AXE but ASM seems more likely, I will build a TI-BASIC version first then go from there. I will post the rest of the commands and what they do later on this week.

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #1 on: October 29, 2013, 09:13:30 am »
Welcome Josh!
Yeah I agree. These days we are forced to read a lot of crap only meaningful for the developer and not so much for the end-user. Therefore, an installer is by far preferable. Go ahead for it! BTW, what's your (nice) target programming platform that allows TI-BASIC and ASM mixing?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #2 on: October 29, 2013, 09:34:36 am »
A while ago, I was trying to think of a way to detect if certain libraries were required for a given program. For BatLib, you would need to check for dim() commands that have a non-negative numerical argument first, then for FileSyst, you would check for first arguments that are negative or strings. For Celtic 3, you would need to check for 'misused' det() commands, imag(). For Celtic 3, you can check if Celtic 3 or DoorsCS7 is on the calc. For Omnicalc, you can check for real(nn,), and xLIB you can check for real(nn) as well, making sure nn is within the appropriate range. For xLIB, you can check for xLIB, Celtic 3, or DoorsCS7. Check the sum() commands for DoorsCS7.

I wrote a file system application last year that, when running a program, looks at the file extension and opens the appropriate app or program. For example, running DonkeyKong.ion would attempt to open an ION compatible shell (ION, MirageOS, DoorsCS7) in order to run the program. However, this requires the user to manually add the file extension, so I wanted to make a super complicated routine to analyse source codes and figure out the best file extensions and for extracting image icon data.

Also, welcome to Omni :)

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #3 on: October 29, 2013, 12:55:13 pm »
Quote
BTW, what's your (nice) target programming platform that allows TI-BASIC and ASM mixing?
Not sure what you mean...
Thanks for the warm welcomes. if you maen how will i do this let me show you another example.
Code: [Select]
:I.(GROUPFILENAME)
:FM.(JOSH)
:CFM.()
:DSS.(DESCRIBE YOU PROGRAM)
:MSN.LB.SIM.SS.{0}
:DLG.CP.(Welcome to YOURPROGRAM installer press enter)//ENTER//
:IF[ASM FILE OR APP OR PROGRAM THAT YOU MESSES WITH YOURS]-FE
:/SS/
:{0}=={010101010101010101010101010...}
::END
:ASM{HEXCODE}.ASM 'this is a comment for yourself to show what it does say delete another prgm'
:FILE->.ASM 'forces the installer to create a ASMprgm and separates the file'
:LOC.* 'lock all'
:UID.* 'unhides all'
:'end of install file'
OK what does this do? JUST like AXE parser turns the commands into ASM this turs the commands in to ASM and or TI-BASIC
output for DSS. would be DISP "DESCRIBE YOUR PROGRAM" and the like.
The only thing is how to do this and would this work?
I can see this as a replacement for readme's and the like, also not just for games.
also i found this stuff http://www.ti.com/lit/ug/spru513f/spru513f.pdf  http://www.ti.com/lit/ug/slau157z/slau157z.pdf   
*wondering if it is useful???

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #4 on: October 29, 2013, 01:40:35 pm »
I guess i can understand your point.
Quote from: josh landers
Quote
BTW, what's your (nice) target programming platform that allows TI-BASIC and ASM mixing?
Not sure what you mean...
My question was/is as simple as this: what machine/calculator are you targeting? (must be some TI machine  :-\). You can't take for granted that mixing BASIC and Assembly is supported by all platforms. Unfortunately that is not always the case (eg HP Prime only supports HP BASIC). BTW, if someone is interested, more about 'Mixing Assembly with Basic' can be found, for instance, here: ftp://ftp.whtech.com/programming/Assembler/IntroToALForTheTIHomeComputer.pdf
Thanks for the PDFs they can be useful.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #5 on: October 29, 2013, 01:58:00 pm »
My question was/is as simple as this: what machine/calculator are you targeting? (must be some TI machine  :-\). You can't take for granted that mixing BASIC and Assembly is supported by all platforms.
I guess it is about z80 calcs since BatLib was mentionned. And mixing Basic and ASM is granted in some way.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #6 on: October 29, 2013, 01:58:06 pm »
The TI z80 (and probably also 68k) familiy(/es) allow you to do mix both (a BASIC prog can call an ASM prog but you can't officially have it inline).

Offline tpt1234567890

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +0/-0
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #7 on: October 29, 2013, 05:47:29 pm »
i wish that TI 84s could run ASM codes inside a BASIC program...

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #8 on: October 29, 2013, 06:35:33 pm »
I am talking ti-84 + and that have 2.55mp. Thanks for clarifying.
ASM. { AFAFAF}.ASMFIL command will cause the following...
1.the name of the asm, ASMFIL, is the name of the asmprgm to be made
2. Makes this and calls it in the install.
3.optional command ASMFILE→ASM will compile and compress the code.

I see why people are kinda confused. Well inline asm is not available for ti-basic... perhaps a lib needs to be made to allow it...
Also I am working at the commands list. Update for the axe source it now has input and  the cammand for this is output (2, 1, input) cool but how does one make it more CLI like? Small text how do I do this as well?
« Last Edit: October 29, 2013, 09:58:08 pm by josh landers »

Offline tpt1234567890

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +0/-0
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #9 on: November 01, 2013, 04:55:54 pm »
I dont think its possible to make the text smaller, unless you make a program for it, and run it as part of the whole program you are making...

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #10 on: November 01, 2013, 06:20:07 pm »
Omnicalc has a feature to put inline asm but you need to have the app installed.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #11 on: November 01, 2013, 06:52:09 pm »
Ok update:
I am basing this off of Terminal 4.4.1 and calling it CMDEV 0.0.05
all the commands are the same but some parts of the code have been removed.
I am in the process of changing the commands to new ones.
When this is done it will be version 0.0.1
Commands:
RUN?    runs programs
INFO?   Shows version info
HELP?  Shows commands

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re:
« Reply #12 on: November 01, 2013, 07:01:24 pm »
I don't really understand what you wanna do anymore. :/

Offline 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
Re: Re: Basic Specialized IDE for making Installs and the like
« Reply #13 on: November 01, 2013, 10:06:07 pm »
This project would be kinda handy for Basic programs that has like 20 sub-files, although Iambian already did something like this before. What would be definitively cool is if the installer would be able to install/enable Batlib, Celtic III and such other lib for the user. I think Iambian's program was for games like The Reign of Legends 3, which often come in group (8xg) files.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Basic Specialized IDE for making Installs and the like
« Reply #14 on: November 02, 2013, 09:25:18 am »
Yup that's the idea. But the more advanced thing will be down the road.
I think the program your thinking of is Athena Packer. But that required that the programmer had compressed the file and the user had Athena aswell. The profram I'm trying to make would only require that you have sufficient memory.