ASCII代码解释(汇编)

| 首先,感谢您迄今为止提供的所有帮助。 完整的代码可以在这里找到 我很难理解这些内容。我写了一些评论... 该行例如mov es:[si + 6],al表示将al中的数据移动到si + 6标记的内存地址中(我认为这将是偏移量计算)。 那么,在循环中添加si,40是什么? 任何帮助对我来说都意味着一切!谢谢。
L0_95:         ; this segment prints ASCII code 0 - 95
mov si,6       ; refers to the string we declared at the beginning
mov cx,4       ; I think this is the height?

C1A:
; this loop adds the name of the column
mov al,string[0]
mov es:[si],al
mov al,string[2]
mov es:[si+6],al
mov al,string[4]
mov es:[si+24],al
mov al,string[6]
mov es:[si+28],al
add si,40           ;;;; what is this line?
loop C1A

mov si,122          ;;;; and these three lines?
mov bx,0
mov cx,4
C1B:push cx  

mov cx,24
add si,40
C1C:push cx
call DEC_CONVERT
add si,2
call HEX_CONVERT
add si,2
call BIN_CONVERT
add si,2
call CHAR_CONVERT
inc bx
add si,126
pop cx
loop C1C
pop cx
sub si,3840
loop C1B

ret

L96_191:
    
已邀请:
add si
将si寄存器提高40。
mov si,122
将si寄存器设置为122,可能是某些数据的地址。其余两条说明现在应该是不言自明的。     

要回复问题请先登录注册