🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.acorn.tech
3 messages
3 total messages Started by MUFTI Mon, 03 Aug 1992 09:37
converting commandline programs: a crazy idea
#102
Author: MUFTI
Date: Mon, 03 Aug 1992 09:37
51 lines
2580 bytes
Hi

Here is a (maybe crazy) idea to convert commandline-programs to desktop-
programs:

1. Take the ready absolute file.

2. Open a desktop-window before the first command of the commandline-program
   and close it after the last command of the commandline-programm.

3. Search for SWI-commands with
      OS_WriteS, OS_Write0, OS_ReadLine, ETC and 
   replace them with new SWI's (from a module) named 
      WIMP_WriteS, WIMP_Write0, WIMP_ReadLine, ETC
   with exact the same parameters, to write/read characters to/from a
   desktopwindow.

4. Search for Jump-commands and redirect them to a routine (which saves
   registers) which counts down (to avoid too much wimppolling) and then calls
   a wimppoll and then jumps to the orginal adress.   

   example: 
   (before)                         (after)
   B label                          B after_end_of_orginal_file
                                    ....
                                    after_end_of_orginal_file:
                                    ; save R14
                                    BL wimppollroutine
                                    ; restore R14
                                    B label
                                    ....
                                    wimppollroutine:
                                    ;save registers
                                    ;decrement counter
                                    ;if counter==0 
                                       ;wimppoll
                                       ;initialise counter 
                                    ;endif
                                    ;restore registers  
                                    MOV R15,R14

With this method, you would have to pray, that all occurenticies of this tokens 
with SWI- and B- commands are used as Assembercommands and not as data ....
(especially in programs with floatingpoint arithmetics ?)

Some comments (or ideas how to find out, if something is data or program code )
about this idea ?

thanks 
so long
MUFTI
Re: converting commandline programs: a crazy idea
#105
Author: TMOTA
Date: Mon, 03 Aug 1992 21:52
16 lines
1091 bytes
zrzm0111@helpdesk.rus.uni-stuttgart.de (MUFTI) writes:

>Here is a (maybe crazy) idea to convert commandline-programs to desktop-
>programs:

[several hundred lines of interesting method deleted]

hmmm... interesting ideas... but wouldn't
   Taskwindow "taskname" -quit
be a little easier?

Your ideas seem quite good, but are they really worth the bother?
-- 
_________________  "I'd like to answer this question in two ways:
  /____ _ _/_ __       First in my normal voice, and then
 // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
Re: converting commandline programs: a crazy idea
#109
Author: MUFTI
Date: Thu, 06 Aug 1992 08:07
18 lines
1237 bytes
In article <1992Aug3.215227.24980@cs.aukuni.ac.nz> jwil1@cs.aukuni.ac.nz (TMOTA) writes:
>zrzm0111@helpdesk.rus.uni-stuttgart.de (MUFTI) writes:
>
>>Here is a (maybe crazy) idea to convert commandline-programs to desktop-
>>programs:
>
>[several hundred lines of interesting method deleted]
>
>hmmm... interesting ideas... but wouldn't
>   Taskwindow "taskname" -quit
>be a little easier?
>
Yes this method is more easier, but:
Will this method work under all RISCOS 2.00 Acorn Archimedes with wellcome-disk?
The taskwindow you talk about isn't PD/Shareware/Freeware 8-(.

so long
MUFTI
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads