ex8_2b.asm

来自「汇编编程艺术」· 汇编 代码 · 共 47 行

ASM
47
字号
; EX8_2b.asm
;
; Example demonstrating the align
; directive.

dseg		segment

; Force an odd location counter
; within this segment:

i		byte	0

; This word is at an odd address,
; which is bad!

j		word	0

; Force the next word to align itself
; on an even address so we get faster
; access to it.

		align	2
k		word	0

; Force odd address again:

k_odd		byte	0

; Align the next entry on a double
; word boundary.

		align	4
l		dword	0

; Align the next entry on a quad
; word boundary:

		align	8
RealVar		real8	3.14159

; Start the following on a paragraph
; boundary:

		align	16
Table		dword	1,2,3,4,5
dseg		ends
		end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?