• help with swapping

    From Dennis Collins@3:770/355 to All on Wed Mar 1 01:16:00 2006
    I am currently re-writing a BBS door game that was originally coded circa 1987. I am looking into adding IGM's to this old game but have run into a small code block. I have completed writing the unit to handle all i/o when the Igm is running, BUT I want to swap the main calling program out of memory to the hard drive when the Igm is run.

    I have got it working using the 'Swapvectors' and the 'Exec' commands but
    as the main program is slowly growing in size and the called Igm's can also be rather large as well, I need to Swap To hard disk and back again.

    Swag has been no help at all. Can anyone assist with a unit that will do what
    I want.

    cheers Dennis


    ... Ahh... Puddytat's not's so bwave in gwanny's micwowave!
    --- FMail 1.48
    * Origin: The Maze BBS... Christchurch... New Zealand (3:770/355)
  • From mark lewis@1:3634/12 to Dennis Collins on Thu Mar 2 16:11:34 2006
    I am currently re-writing a BBS door game that was originally coded
    circa 1987. I am looking into adding IGM's to this old game but
    have run into a small code block. I have completed writing the unit
    to handle all i/o when the Igm is running, BUT I want to swap the
    main calling program out of memory to the hard drive when the Igm
    is run.

    ok... that should be easy enough...

    I have got it working using the 'Swapvectors' and the 'Exec'
    commands but as the main program is slowly growing in size and the
    called Igm's can also be rather large as well, I need to Swap To
    hard disk and back again.

    my first question, since i've never played with IGMs, is are they simply another EXE??

    Swag has been no help at all. Can anyone assist with a unit that
    will do what I want.

    if the answer to the above is yes, then the name Ralf Brown should recall some memories for you... then i'll also say that i have a copy of his 1991 SPAWNO package that i have used (with TP6) in the past with great success...

    google and ye shall find :)

    )\/(ark


    * Origin: (1:3634/12)
  • From Dennis Collins@3:770/355 to mark lewis on Fri Mar 3 17:02:01 2006
    I am currently re-writing a BBS door game that was
    originally coded circa 1987. I am looking into adding
    my first question, since i've never played with IGMs, is

    are they simply another EXE??

    they sure are

    should recall some memories for you... then i'll also say
    that i have a copy of his 1991 SPAWNO package that i have

    I doesn't matter now as I have done some research into swapping and coded my own unit, seems to work really well.

    Thanks
    Dennis

    ... All files renamed using random characters. Delete children (Y/N)?
    --- FMail 1.48
    * Origin: The Maze BBS... Christchurch... New Zealand (3:770/355)
  • From mark lewis@1:3634/12 to Dennis Collins on Fri Mar 3 16:17:48 2006
    I am currently re-writing a BBS door game that was
    originally coded circa 1987. I am looking into adding
    my first question, since i've never played with IGMs, is

    are they simply another EXE??

    they sure are

    i wasn't sure... i kinda figured they had to be or some type of overlay system...

    should recall some memories for you... then i'll also say
    that i have a copy of his 1991 SPAWNO package that i have

    I doesn't matter now as I have done some research into swapping and
    coded my own unit, seems to work really well.

    ok... JFYI, that SPAWNO library leaves only ~300 bytes of program in memory when it swaps... it'll swap to EMX, XMS, EXTended, DISK or any necessary combination of them... it'll also leave interrupt handlers in place which leaves more (but necessary) code in memory... it is a fantastic li'l package that only adds about 3k to the final compiled exe when all is said and done...

    it should work with TP7/BP7 with no problems... i have no idea about delphi, though... i've only written on small app with delphi and spent the most time on
    creating a "CRT" type unit to use with porting some of my programs with...

    what pascal are you coding with?? have i ever seen you over on irc.bbsnet.org? ;)

    )\/(ark


    * Origin: (1:3634/12)
  • From Dennis Collins@3:770/355 to mark lewis on Sat Mar 4 16:15:00 2006
    what pascal are you coding with?? have i ever seen you over
    on irc.bbsnet.org? ;)

    BP7 for this current project and NO.

    cheers

    ... 586, 32Mb 40ns RAM, 4Gb 2ms HD. Now Windows will beat DOS!
    --- FMail 1.48
    * Origin: The Maze BBS... Christchurch... New Zealand (3:770/355)
  • From mark lewis@1:3634/12 to Dennis Collins on Sat Mar 4 14:17:03 2006
    what pascal are you coding with?? have i ever seen you over
    on irc.bbsnet.org? ;)

    BP7 for this current project

    oh, ok... i may play with SPAWNO and see about a quick BP7 compiled test tool...

    and NO.

    i wasn't sure... i know i see other fido members over there... quite many of them, in fact ;) you and i talk to several of them in these areas, too O:)

    )\/(ark


    * Origin: (1:3634/12)
  • From Scott Adams@1:112/91 to Dennis Collins on Tue Apr 11 04:34:57 2006
    Quoting Dennis Collins to All <=-

    I am currently re-writing a BBS door game that was originally coded
    circa 1987. I am looking into adding IGM's to this old game but have
    run into a small code block. I have completed writing the unit to
    handle all i/o when the Igm is running, BUT I want to swap the main calling program out of memory to the hard drive when the Igm is run.
    I have got it working using the 'Swapvectors' and the 'Exec' commands
    but as the main program is slowly growing in size and the called Igm's
    can also be rather large as well, I need to Swap To hard disk and back again.
    Swag has been no help at all. Can anyone assist with a unit that will
    do what I want.

    Really? Was going to suggest Swag. I see 4 files in Swag
    alone. Hrm....

    The problem though is the platforms today. What the old
    code for Exec did for Dos it may not work properly for
    Windows. Especially the new restrictive OS of XP and NT.

    What I might suggest is using the Delphi version of the
    Exit or old swap setups. Do you have Delphi there?






    ... "Old style, you roll over and go to sleep." - Ivanova
    --- Fringe BBS
    * Origin: EWOG II - The Fringe - 904-733-1721 (1:112/91)