Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

indirect far jmp - calling old INT problem (Developers)

posted by Rugxulo Homepage, Usono, 13.05.2012, 20:02

> OK, I optimized it a bit, now just 1 byte greater than old code, not bad, I
> leave it...

What, worried about one byte?


        PUSH    BP              ;store BP (2B), SP=x-8
        MOV     BP,SP           ;set BP to current SP, BP=SP=x-8


Reminds me of "ENTER ..,.." instruction (186+).


        POP     WORD [SS:BP+6]


Isn't SS: implicit when using [BP]? Make sure this isn't generating that extra byte you don't want as you probably don't need to say it explicitly.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum