汇编积累

指令

resb 32768:reserve byte,在数据段(.data/.bss)分配32768字节的空间;

and ax, 0xFF00:按位与;

out <port> <data>:向输出端口写入数据;

mov al, <data>  ; 将要输出的字节数据移动到寄存器al
mov dx, <port>  ; 将目标端口的地址移动到寄存器dx
out dx, al      ; 向指定的端口地址dx输出寄存器al中的字节数据

lgdt eax

寄存器

段寄存器

+------+--------------------------+
| CS   | Code Segment             |
+------+--------------------------+
| DS   | Data Segment             |
+------+--------------------------+
| SS   | Stack Segment            |
+------+--------------------------+
| ES   | Extra Segment            |
+------+--------------------------+
| FS   |                          |
+------+ General Purpose Segments |
| GS   |                          |
+------+--------------------------+

节(section)

评论