Page 1 of 1

How can I use CALL?

Posted: Mon Mar 10, 2003 12:00 am
by Anon
STAGE1 of my bootloader loads at 0x0070:0x0000.
STAGE2 of my bootloader loads at 0x0090:0x0000.
There is a function in there (cputs) that I want to use in the STAGE2 bootloader.

cputs does use short jumps, but does that make a difference?

STAGE1 puts the pointer to cputs (Linear address) into a location in memory with some other variables.
STAGE2 reads the value into ax, (the value ends up being 0x7b0(the value is correct)).

How can I use CALL to run the function from STAGE2?

RE:How can I use CALL?

Posted: Wed Mar 12, 2003 12:00 am
by Anton
call 0x0090:linear address of puts !!!!

RE:How can I use CALL?

Posted: Wed Mar 12, 2003 12:00 am
by Anton
i meant call 0x0070:....