Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 05:04:36 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: [Axiom] Run (Un/Archived) External Assembly Programs -  (Read 564 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
DrDnar
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: Today at 01:25:31
Date Registered: 29 October, 2010, 00:08:46
Posts: 460

Topic starter
Total Post Ratings: +76

View Profile
« on: 06 March, 2012, 09:52:08 »
+4

I thought that some Axe programmers would find it useful to be able to run archived programs. Also, the Asm( sequence I posted to run programs in RAM will leak memory if the program you call throws an error. So I wrote an Axiom that lets you run other assembly/Axe programs and fixes memory leak issues. If you want, there's even a provision in there that lets you prevent your subprograms from being run from anything other than this Axiom, in case they do nothing useful on their own. Additionally, it also lets you catch errors that the OS may throw; that is, it lets you prevent that ERR: screen from showing up. The attached ZIP file contains the Axiom, its source code, and all the documentation. I'm a little afraid that the part of the documentation about error handlers is a little unclear, so if you're confused, feel free to ask questions.

Quigibo and Runer112: Feel free to optimize this---I'm sure it can be---and put it in Axe.


Here's an example. Let's say you have a fancy intro screen that's very large. You want it to run if the user has it---regardless of whether it's archived or in RAM---, but you want your program silently to skip running the intro screen if it doesn't exist. Just put this code in the main program:

1
2
3
4
5
:AppOnErr(LSKIP)
:RunPrgm("prgmINTRO")
:AppOffErr
:Lbl SKIP
:Your program continues here

* runprgm.zip (60.31 KB - downloaded 27 times.)
« Last Edit: 06 March, 2012, 22:33:16 by DrDnar » Logged

"The tools which would teach men their own use would be beyond price."—The Republic
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Online Online

Last Login: Today at 04:52:32
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1846


Total Post Ratings: +233

View Profile
« Reply #1 on: 06 March, 2012, 09:55:16 »
0

they would indeed find it useful =D
thank you kindly
Logged



We're not human, are we?
LincolnB
Check It Out Now
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 05:36:22
Date Registered: 02 May, 2011, 00:56:28
Location: Utah Valley
Posts: 1114


Total Post Ratings: +121

View Profile
« Reply #2 on: 07 March, 2012, 00:46:07 »
0

Ah, this would make a great Axiom, and would help out a lot with a project like XDE (If it wasn't dead Tongue)
Logged

Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler for Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)


DrDnar
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: Today at 01:25:31
Date Registered: 29 October, 2010, 00:08:46
Posts: 460

Topic starter
Total Post Ratings: +76

View Profile
« Reply #3 on: 07 March, 2012, 02:13:47 »
0

Ah, this would make a great Axiom, and would help out a lot with a project like XDE (If it wasn't dead Tongue)
What do you mean, "would"? It is an Axiom.
Logged

"The tools which would teach men their own use would be beyond price."—The Republic
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.202 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.