VOGONS


Interruption 15h

Topic actions

First post, by CrazyTerabyte

User metadata
Rank Newbie
Rank
Newbie

I have some old programs I made using Turbo Pascal. Some of them did not work correctly. The most important problem is about function "86h", from "int 15h".

The following code is equivalent to a delay function:

procedure makepause(ms:Word); assembler;
asm
mov ax,1000;
mul ms;
mov cx, dx;
mov dx, ax;
mov ah, 86h;
int 15h;
end;

The ms parameter is the time to "sleep", in miliseconds.

Unfortunately, it looks like DosBox ignores this.

I attached the little game I made in Turbo Pascal, long time ago. Source and binary included. It is needed to decrease CPU Cycles until this becames playable.

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

i think the next version of DOSBox will have it

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 3, by priestlyboy

User metadata
Rank Oldbie
Rank
Oldbie

It should at least since I just tested it and works just fine in the DOSBox CVS (the CVS sourcecode available at their sourceforge.net/projects/dosbox page.)
I make builds of it on a weekly basis abouts. See my sig.

BTW: My highscore with your little game came out to be 180. Spanish text but still playable :p.

Ieremiou
----------
Helping Debug DOSBox.

Reply 3 of 3, by CrazyTerabyte

User metadata
Rank Newbie
Rank
Newbie
priestlyboy wrote:

It should at least since I just tested it and works just fine in the DOSBox CVS (the CVS sourcecode available at their sourceforge.net/projects/dosbox page.)
I make builds of it on a weekly basis abouts. See my sig.

BTW: My highscore with your little game came out to be 180. Spanish text but still playable :p.

Yes, it works on CVS, but didn't work on 0.61 release.

BTW, it isn't Spanish, it is Portuguese (although there are only a few words in whole game). Thanks for playing my humble game! 😀

Don't tell anyone, but the maximum score is 255 or 254, because it is the maximum size of "worm" (I wanted to use only one byte to store it). 😉