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

By DarkSchneider

Paragon (1030)

DarkSchneider's picture

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 or register to post comments

By zeilemaker54

Champion (355)

zeilemaker54's picture

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

By DarkSchneider

Paragon (1030)

DarkSchneider's picture

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.