This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 04 Dec 2003 05:33:40 pm    Post subject:

Okay. I'm writing small programs for MirageOS. Is there a way to run a program for MirageOS, and exit MirageOS and display to the homescreen while running the program (without adverse side effects, such as explosive diarrhea)?
Back to top
sic


Advanced Newbie


Joined: 28 Jul 2003
Posts: 62

Posted: 04 Dec 2003 06:30:48 pm    Post subject:

you might try BCALL(_jForceCmdNoChar), but this ROM call is really meant to be called from within an APP. I'm not sure what it will do if called from within an assembly program that is run from an APP (and therefore outside of the normal page that APP code is on).

_JForceCmdNoChar EQU 4027h
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 05 Dec 2003 05:30:13 pm    Post subject:

_JForceCmdNoChar does exit MirageOS, but displays jumble on the home screen, even if you use ClrScrnFull before or after _JForceCmdNoChar. Also the program code after _JForceCmdNoChar does not seem to exectute. If you call _JForceCmdNoChar from a basic program (for the basic program to "bust out" of MirageOS), your Ram is reset.
Back to top
sic


Advanced Newbie


Joined: 28 Jul 2003
Posts: 62

Posted: 05 Dec 2003 06:45:42 pm    Post subject:

of course the code after it doesn't execute; this ROM call is meant to exit APPs. It's essentially the same as a 'ret' at the end of an assembly program, but it does some cleanup for APPs.
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 05 Dec 2003 07:22:08 pm    Post subject:

Why don't you make you're own homescreen, it's not that hard just:

bcall(_clrLCDfull)
ld hl,x*256+y
ld (currow),hl
ld (*pointer*),hl
bcall(_puts)
bcall(_getkey)...
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 05 Dec 2003 07:39:23 pm    Post subject:

And put that in every single program (he said small programs). Oh and in the pseudo-home screen, will I be able to go into the Y= Editor, type in sqrt(1-x^2), calculate the integral from 0 to .5 then go to the home screen to check which inverse function is the anti-derivative of Y1? Oh and while I'm there, type in "aaaaaaaaaaaaaaaa" into Y1, go into Calcsys and edit that to get some symbols for my Basic programs? Thought so.
Back to top
tr1p1ea


Elite


Joined: 03 Aug 2003
Posts: 870

Posted: 06 Dec 2003 07:46:34 am    Post subject:

In a word ... no. All _PutS does it write a string to the homescreen.
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 06 Dec 2003 05:24:19 pm    Post subject:

Exactly, you check what to put using getkey
Back to top
tr1p1ea


Elite


Joined: 03 Aug 2003
Posts: 870

Posted: 06 Dec 2003 07:24:00 pm    Post subject:

You 'could' make a TSR ... ?
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 06 Dec 2003 08:16:51 pm    Post subject:

Yeah, but he's new and ... well thats not exactly easy for beginngers
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement