How much exact time consumes a DOS2 inter-segment call?

Par DarkSchneider

Paragon (1030)

Portrait de DarkSchneider

14-02-2023, 16:20

Hi, as title says, someone knows the exact extra time/instruction/cycles used by doing a DOS2 inter-segment call compared to a direct call?

!login ou Inscrivez-vous pour poster

Par zeilemaker54

Champion (355)

Portrait de zeilemaker54

14-02-2023, 17:29

If you really want to know that kind of details, see https://sourceforge.net/p/msxsyssrc/git/ci/master/tree/disk231/disk-s1.macsource file, routine at R.02F6

Par DarkSchneider

Paragon (1030)

Portrait de DarkSchneider

14-02-2023, 18:10

OK. Ummm looks fine for “main” calls (large functions called once within a loop) but not for “auxiliary” multiple calls in a loop.
I mean, it is OK for:
loop {
inter-segment call; do a lot of things

inter-segment call; do a lot of things

inter-segment call; do a lot of things

}

But not for:
loop {

for() {
inter-segment call ; normal function
} //forend

}

Thanks.