How can I use CALL?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Anon

How can I use CALL?

Post 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?
Anton

RE:How can I use CALL?

Post by Anton »

call 0x0090:linear address of puts !!!!
Anton

RE:How can I use CALL?

Post by Anton »

i meant call 0x0070:....
Post Reply