Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Running DOS application with a time shift?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 29th March 14:21
ilya zakharevich
External User
 
Posts: 1
Default Running DOS application with a time shift?



[A complimentary Cc of this posting was sent to
James J. Weinkam


I even managed to get Ralph Brown's sample TSR program, and could
assemble the files with ALP (a few changes necessary, and some options
needed too: +Fl -Scs +Lm). Unfortunately, I think my time is
completely lost, since I can't convince APL (4.00.001) to accept the
directive

.MODEL TINY,syscall,os_dos,nearstack

or

.MODEL TINY

So I got a couple of object files, but I'm pretty sure they are in a
wrong memory model. Moreover, I do not know how to link them; I think
I need to use link.exe, but I have no experience with it.

Any advice?
Thanks,
Ilya
  Reply With Quote


  sponsored links


2 29th March 14:21
steven levine
External User
 
Posts: 1
Default Running DOS application with a time shift?



In <bml2t1$1pdk$1@agate.berkeley.edu>, on 10/16/2003
at 03:22 AM, Ilya Zakharevich <nospam-abuse@ilyaz.org> said:


What does "not accept" mean to you? 4.00.008 compiles:

.model tiny,syscall,os_dos,nearstack
; .model tiny
.code
mov ax,1
end

just fine, with or without your switches. I didn't check if they were
what I would have chosen. It does matter where you put the .model
statment.

How do you intend to link the the TSR as DOS .EXE or a .COM file?

HTH,

Steven


--
--------------------------------------------------------------------------------------------
Steven Levine <steve53@earthlink.bogus.net> MR2/ICE 2.37 #10183
Warp4/FP15/14.093c_W4 http://www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST)
--------------------------------------------------------------------------------------------
  Reply With Quote
3 29th March 14:21
steven levine
External User
 
Posts: 1
Default Running DOS application with a time shift?


In <3f8e4e24$3$fgrir53$mr2ice@news.west.earthlink.net >, on 10/16/2003
at 07:52 AM, Steven Levine <steve53@earthlink.bogus.net> said:

Answering myself. It's been a while since I needed to do a TSR.

You will have to use MS link.exe or the equivalent with the /tiny option.
If you don't have it, it comes with the masm toolkit at the DDK site.

HTH,

Steven


--
--------------------------------------------------------------------------------------------
Steven Levine <steve53@earthlink.bogus.net> MR2/ICE 2.37 #10183
Warp4/FP15/14.093c_W4 http://www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST)
--------------------------------------------------------------------------------------------
  Reply With Quote
4 29th March 14:21
ilya zakharevich
External User
 
Posts: 1
Default Running DOS application with a time shift?


[A complimentary Cc of this posting was NOT [per weedlist] sent to
Steven Levine


try.asm(1:16): Error ALP3701: Argument expected
try.asm(1:16): Warning ALP4802: Extra data on line
try.asm(3:9): Error ALP3749: Directive requires use of .MODEL
try.asm(4:9): Error ALP3515: Code generation outside of segment boundaries

here. Is 4.00.008 available via some fix?

AHA! 4.00.005 (from DDK) eats it fine! Thanks.


Hmm, did not think of it. RB's sample code is linked as .COM, so I
think I should do the same.

Thanks,
Ilya
  Reply With Quote
5 29th March 14:21
paul ratcliffe
External User
 
Posts: 1
Default Running DOS application with a time shift?


Where did you get ALP 4.00.008 ? Do you know what it fixes?
  Reply With Quote
6 29th March 14:21
steven levine
External User
 
Posts: 1
Default Running DOS application with a time shift?


In <slrnbot0r0.73d.abuse@news.pr.network>, on 10/16/2003
at 11:39 AM, Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> said:

Good question. Probably one of the MCPs are eCS Toolkit packages.

Unfortunately, like most of the toolkit updates, I've never run across a
fix list.

If needed I can probably figure out where it came from when I get back
from WS.

Regards,

Steven

--
--------------------------------------------------------------------------------------------
Steven Levine <steve53@earthlink.bogus.net> MR2/ICE 2.37 #10183
Warp4/FP15/14.093c_W4 http://www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST)
--------------------------------------------------------------------------------------------
  Reply With Quote
7 29th March 14:21
bob eager
External User
 
Posts: 1
Default Running DOS application with a time shift?


It's in the toolkit shipped with xCP2.


There is no apparent fix list.
  Reply With Quote
8 29th March 14:21
frank beythien
External User
 
Posts: 1
Default Running DOS application with a time shift?


On Thu, 16 Oct 2003 11:39:12 UTC Paul Ratcliffe

It is in tools.zip on the ddk Download site. The readme.alp stops at
4.00.005.

CU/2
--
Frank Beythien fBeythien AT gmx.de
  Reply With Quote
9 29th March 14:21
james j. weinkam
External User
 
Posts: 1
Default Running DOS application with a time shift?


Such a simple program can be created with a debug script. Place the
following lines in a file, past.txt in a directory of your choice. In a
DOS window, change to that directory and run
debug <past.txt >past.out

You can examine past.out with a text editor to make sure there were no
errors. (Shouldn't be any.)

The script will create a 70 byte file past.com that will enable your dos
sessions to live in the past.

a 100
jmp 11c

a104
push bp
push ax
pushf
cs:call far [100]
mov bp,sp
xchg ax,[bp]
cmp ah,2a
jne 119
sub cx,0a
pop ax
pop bp
iret
push ds
mov ax,0
mov ds,ax
cli
mov ax,[84]
cs:mov [100],ax
mov ax,[86]
cs:mov [102],ax
mov ax,104
mov [84],ax
mov ax,cs
mov [86],ax
sti
pop ds
mov dx,12
mov ax,3100
int 21

rcx
46
npast.com
w 100
q
  Reply With Quote
10 29th March 14:21
ilya zakharevich
External User
 
Posts: 1
Default Running DOS application with a time shift?


[A complimentary Cc of this posting was sent to
James J. Weinkam


Thanks, this is fantistic! BTW, debug could not write on HPFS disk
with 1G free, but it worked OK on a FAT disk with 1G free. The error
was

-w 100

Insufficient space on disk. There is not enough disk space
to complete the command. Either delete enough files to create room on
the disk or try a different disk with sufficient space.

Your TSR is tested, and it works!

Very much appreciating your help,
Ilya
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666