0

まず、これまでご協力いただきありがとうございました。

完全なコードはここにあります

これらの行を理解するのに苦労しています。なんかコメント書いちゃった…

たとえば、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:
4

1 に答える 1

2

add sisi レジスタを 40 進め
mov si,122ます。 si レジスタを 122 に設定します。これはおそらく何らかのデータのアドレスです。残りの 2 つの命令は、一目瞭然です。

于 2011-04-13T00:32:03.457 に答える