The SI (Source Index) and DI (Destination Index) registers are useful in repeated string operations, such as copy. The DS (Data Segment) register is paired up with SI and the ES (Extra Segment) register is paired up with DI.
The source index (SI) register is required for some string (character) operations. In this context the SI is associated with the DS register. The destination index (DI) register is also required for some string operations. In this context the DI is associated with the ES register.
The direction flag (DF) is used to control the use and direction of repeated string operations involving DI and SI.
Circle Macro x,y,rad,color local Loop1,Loop2,Loop3 pusha ; BX=X Offset, CX=Y Offset, DX=Some evil counter xor bx,bx mov cx,[rad] mov ax,cx shl ax,1 mov dx,3 sub dx,ax ; AL=Color mov al, ; Calculate address of center in vidmem. mov di,[y] mov si,di shl di,8 shl si,6 add di,si add di,[x] mov gs,di Loop1: ; Plot 8 pixels using known centerpoint and X and Y offsets. mov di,gs add di,bx mov si,cx shl si,6 add di,si shl si,2 add di,si mov es:[di],al sub di,si sub di,si shr si,2 sub di,si sub di,si mov es:[di],al sub di,bx sub di,bx mov es:[di],al add di,si add di,si shl si,2 add di,si add di,si mov es:[di],al mov di,gs add di,cx mov si,bx shl si,6 add di,si shl si,2 add di,si mov es:[di],al sub di,si sub di,si shr si,2 sub di,si sub di,si mov es:[di],al sub di,cx sub di,cx mov es:[di],al add di,si add di,si shl si,2 add di,si add di,si mov es:[di],al ; Is DX still under zero? cmp dx,0 jge Loop2 ; If, add 4*XOffset+6 to DX mov si,bx shl si,2 add si,6 add dx,si jmp Loop3 Loop2: ; If not, add 4*(XOffset-YOffset)+10 to DX mov si,bx sub si,cx shl si,2 add si,10 add dx,si ; Decrease Y coordinate dec cx Loop3: ; Increase X coordinate inc bx ; Is X Offset<Y Offset; if is, loop again. cmp bx,cx jl Loop1 popa ENDM mov ax,0013h int 10h mov ax,0A000h mov es,ax circle 10,10,5,55 AWAIT: MOV AH,0 INT 16H CMP AH,1 JE EXIT JMP AWAIT EXIT:
si A di tarik pake tali si B di jatuhin Genteng Si C di jatuhin tong Si D sama Si Govian Kill pake tembak ! selesai
"Con Di lia Si" has no meaning in Hebrew.
DI is the Index register in Data segment(16-bit, 64 KB) .Destination Index (DI) is a 16-bit register. DI is used for indexed, based indexed and register indirect addressing, as well as a destination data address in string manipulation instructions.
Di Si has written: 'Fatou' -- subject(s): Fiction, West Africans
DI: ES SI: DS BX: DS
8150
Di si zhang hua - 2010 is rated/received certificates of: Singapore:NC-16
The do-si-do is in a square dance. Never heard of a do-di-do.
MUL PROC NEAR MUL1: MOV AL,SI MOV BL,DI MUL BL MOV BL,100H DIV BL .ENDP BY Haseeb Khan :)