assembly - intel to ATT assembley conversion for reading data segment of BIOS -


what equivalent att code following intel code:

    bios    segment byte @ 40h             org     13h             memory  dw      ?     bios    ends 

that's not question of at&t syntax such. it's question of assembler , linker use. also, suppose still need load segment register hand. simplest case rid of whole thing, , instead along these lines:

mov $0x40, %ax mov %ax, %es mov %es:0x13, %ax 

depending on requirements , available tools, can of course produce fancier code, don't see point.


Comments

Popular posts from this blog

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

python - TypeError: start must be a integer -

html - href attribute breaking an element -