【发布时间】:2012-02-24 14:53:32
【问题描述】:
我正在尝试打印偏移值。 (“打印”这个词对吗?还有别的词吗?
代码正确吗?我对组装文档感到很困惑。
print_offsets: mov SI,0
mov CX,30
mov AH,2
int 21h
jmp offsloop
offsloop: cmp 0,Array[SI]
ja print_offset ;if the array element is nonzero
inc SI
dec CX
jnz offsloop
print_offset: mov DL,SI
mov AH,2
int 21h
【问题讨论】:
标签: string assembly printing int offset