bootloader - How to insert x86 opcode data from .data segment bits in to operand instruction in x86 machine code? -


i working on x86 bootloader written entirely in opcodes, no headers, binary.

the problem intel's isa manual not include how include data segment bytes .data segment code in secondary operands of machine instructions in opcode format.

i have far:

1000 101w 110 

that above code should equivalent following:

mov si 

however, need insert data source index register containing "hello world" displayed on screen in monochrome text video mode, this:

mov si, hello_world_byte_string 

any help?

the bootloader loaded @ fixed address (0000:7c00) bios, if put string in point in code, can reference offset start of program.

you can see link http://www.vnutz.com/articles/pc_bootsector_programming_tutorial_in_asm


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -