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
Post a Comment