btw.. TimeSlice; is a call to a procedure that does the timeslices.For A := 0 to 100 do
begin
{Do some stuff here}
TimeSlice;
end;
first off check the documentation for "timeslice" I don't find it documented as a standard part of TP
OTOH if you want to delay for a long time there may be some sort of sleep procedure avaialable. (but your code suggests to me that you want to
"do some stuff" between timeslices so probably you are doing it the best wa
Delay(ms); is the part that will pause the program,
but I don't want to do that. Plus, it is the part
that gives the RTE 200 (Where the program on 233+
system will not run)..
OS2: asm
push dx
xor dx, dx
mov ax, 0
sti
hlt
db 035h, 0Cah
pop dx
why did i do it this way? why should we figure out what os we're running ea and every time we go to slice? figure out the os during program startup and from there... in your above, you have to decide which slice to use on every invocation of the slice routine... i see that as inefficient... thus i came with the decision stuff during program start and just install the desired slice then...
why did i do it this way? why should we figure out what os we're running ML>> ea
and every time we go to slice? figure out the os during program startup ML>> and
from there... in your above, you have to decide which slice to use on
every
invocation of the slice routine... i see that as inefficient... thus i ML>> came
with the decision stuff during program start and just install the desired ML>> slice then...
Good point. It would make for better programming. Once
someone installs the software are they going to change
the OS it runs on? I don't really think they will.
Quoting mark lewis to Chris Hoppman <=-
Delay(ms); is the part that will pause the program,
but I don't want to do that. Plus, it is the part
that gives the RTE 200 (Where the program on 233+
system will not run)..
only if you use the one in the CRT unit that comes with the borland product... i use my own and have actually recreated the stuff in the
CRT unit that i use and i don't use the CRT unit any more... there are several ways of doing a delay that are accurate and actually work
properly under a multitasker...
it doesn't matter as the application will install the interrupt vector each time it loads and uninstall it each time it unloads... i run the same application across a network under several different OS' with no problems.. it detects the OS and does its thing as needed...
OS2: asm
push dx
xor dx, dx
mov ax, 0
sti
hlt
db 035h, 0Cah
pop dx
the stuff i've used for years doesn't push or pop the dx register and
it does not have the sti call in it... the only difference between
what i use for Warp3 and Warp4 is "mov ax, 2" for Warp3..
oh yes... and the db line should read "db 035h,0cah,90h" without the quotes...
Bye <=-
Good point. It would make for better programming. Once someone
installs the software are they going to change the OS it runs on?
I don't really think they will.
Bye <=-
it doesn't matter as the application will install
the interrupt vector each time it loads and uninstall
it each time it unloads... i run the same application
across a network under several different OS' with no
problems.. it detects the OS and does its thing as
needed...
Okay I orginally read what you wrote wrong. I thought
you just detectted it on the first run of your program
and stored it in a ini file and use that one for each
run after that.
I understand now that you detect each time you start
your program, but not each time the slice is called,
because it was already detected upon startting of your
program.
hlt
db 035h, 0Cah
pop dx
the stuff i've used for years doesn't push or pop the dx register and
it does not have the sti call in it... the only difference between
what i use for Warp3 and Warp4 is "mov ax, 2" for Warp3..
oh yes... and the db line should read "db 035h,0cah,90h" without the
quotes...
that means XOR AX,$90CA what does that do?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,063 |
Nodes: | 17 (0 / 17) |
Uptime: | 91:24:33 |
Calls: | 501,401 |
Calls today: | 4 |
Files: | 109,432 |
D/L today: |
5,325 files (10,035M bytes) |
Messages: | 296,864 |