Author Topic: Grammer 2-The APP  (Read 165248 times)

0 Members and 2 Guests are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #330 on: April 28, 2012, 12:25:32 am »
I am still confused D:
I've no clue what is going on !_!


EDIT: Do you mean like a Menu( command?
EDIT2: Or do you mean that MenuKeyHook? o.o That I could do, but I have 878 bytes of space left.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #331 on: April 28, 2012, 08:17:34 am »
I mean MenuKeyHook. :D
Oh, also, I meant for you to put it in Grammer 3 and I didn't see the topic when I wrote that. :D
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #332 on: April 28, 2012, 10:42:13 am »
Ah, okay :) I'll go ahead and answer it in the other topic then :) I was thinking about adding it directly to Grammer as well, since it is very small. If I do have enough space after fixing everything up, I probably will add it to Grammer 2. I am currently working on rewriting the code for the main menu to be smaller and then add the code to handle all the options.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #333 on: April 29, 2012, 11:47:04 am »
Okay, I have been working on this for the past two hours and I now have the main menu working better :) You can now use all of the options:
Gram-When this is highlighted, it only displays programs with a Grammer header
AppV-When this is highlighted, it shows appvars instead of programs
Asm-When this is highlighted, it shows assembly programs. There is a Grammer header for assembly programs, too, just like there are MirageOS programs and ION programs.
Exit-Exits the app
Hook-Currently, this toggles the token hook on and off

Caution: Any program run from this menu is run as a Grammer program or Asm program.

So, again, to summarize:
-You can now run Grammer Asm programs and regular ASM programs from Grammer (The screenshot shows a program I made with Axe)
-You can run a program as a Grammer program, even if it doesn't have the header
-You can toggle the Token hook on or off
-You can look at the program list or appvar list in case you converted your programs to appvars

Also, there are now 655 bytes left, but there is code that I still need to remove.

EDIT: Also, I have been working at cleaning up the readme+tutorial and I am trying to document all of the calls in the jump table so that Assembly programmers can start making Grammer Asm programs.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #334 on: April 29, 2012, 12:00:34 pm »
Wha, cool!
* Sorunome downloads
Is there anywhere a full documentary of this app? I've been missing a lot in my inactive time... :(

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #335 on: April 29, 2012, 12:01:52 pm »
I am currently working on it :)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #336 on: April 29, 2012, 12:03:40 pm »
Cool!
I'll be sure to download and read it :D
I just stuff was more compatible like this somehow:
zStart - Omnicalc - DCS - Grammer - Batlib

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #337 on: April 29, 2012, 12:07:20 pm »
If I can do it, I plan to let Grammer do some hook chaining to allow it to be a little more compatible with the others :)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #338 on: April 29, 2012, 12:08:09 pm »
That would be awesome! But the problem would be zStart with running on ram clear :P
And with symbolic and xlib D:

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #339 on: April 29, 2012, 03:17:09 pm »
Symbolic will be nice, but I don't think xlib is not needed with Grammer, since Grammer can do almost everything that xlib can do already. :D
EDIT: I'm just curious, but is it possible to run apps from grammer program? (or just any kind of program)
« Last Edit: April 29, 2012, 07:36:14 pm by TBO_Yeong »
Sig wipe!

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: Grammer 2-The APP
« Reply #340 on: April 30, 2012, 10:42:27 am »
Quote
I'm just curious, but is it possible to run apps from grammer program? (or just any kind of program)

I'm not sure, but If you can find a pointer to the App, you may execute the code like an assembly program.

(I don't know how to run assembly programs in a Grammer code...If a Grammer code runs with expr( , maybe an assembly prog needs Asm(expr( ? )


PS: Quite good readme, now :)  There is much more info.
« Last Edit: April 30, 2012, 10:58:28 am by persalteas »


Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #341 on: April 30, 2012, 11:33:16 am »
Quote
I'm just curious, but is it possible to run apps from grammer program? (or just any kind of program)

I'm not sure, but If you can find a pointer to the App, you may execute the code like an assembly program.

(I don't know how to run assembly programs in a Grammer code...If a Grammer code runs with expr( , maybe an assembly prog needs Asm(expr( ? )


PS: Quite good readme, now :)  There is much more info.
If you know the assembly code to run an app, then yes, you can actually run an app from Grammer. I never even thought about that because it is complicated to do in Assembly.

To run assembly programs, use Asm( and to run hex codes, use AsmPrgm. To execute an App, you want to use AsmPrgm. Be warned that this will exit the program and not return:
Code: [Select]
.0:
Get("EAppName    ;Yes, actually use E. I'm hacking Grammer >.>
AsmPrgm2178843614EF4E4CD8D306C38040
solve(4,2,"App Not Found
Stop
This will leave garbage on the screen in some cases, just as a warning. Also, if the App name does not work, try adding spaces until their are 8 chars. For example, Axe is really named
"Axe     "

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #342 on: April 30, 2012, 11:35:22 am »
there's a little bit of garbage, not much xD
Maybe clrscreen would fix that?
Symbolic will be nice, but I don't think xlib is not needed with Grammer, since Grammer can do almost everything that xlib can do already. :D
It would be cool so you have everything in one, so that your calc is all-compatible
« Last Edit: April 30, 2012, 11:36:05 am by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: Grammer 2-The APP
« Reply #343 on: April 30, 2012, 11:47:11 am »
O.o amazing...



Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #344 on: April 30, 2012, 11:54:58 am »
hehe, thanks :)

@Sorunome: If I were to include all that, I would just have one giant app like DoorsCS7 :P