I'm writing a memory manager for my own os. I have some problems with the relocating. How can i load a program into the memory and jump to it without crash the system? Can you give me some assembler source code (i use Nasm) ?
Thx
Relocating memory
RE:Relocating memory
Trusting there is some code at 0x1234:0x5678 the code looks so:
MOV AX, 0x1234
MOV ES, AX
MOV DS, AX
PUSH AX
MOV AX, 0x5678
PUSH AX
RETF
Damn perhaps it'll jump at 5678:1234, I'm not sure..
Adrian
MOV AX, 0x1234
MOV ES, AX
MOV DS, AX
PUSH AX
MOV AX, 0x5678
PUSH AX
RETF
Damn perhaps it'll jump at 5678:1234, I'm not sure..
Adrian