|
OutArray db '000000000000000000000000'
InArray db 'CSE306 IS THE GREATEST CLASS ON THE FACE OF THE EARTH'
...
mov ax, cseg ; Initialize DS register
mov ds, ax
mov es, ax ; Note ES=DS for these examples
...
mov ah, 'C' ; In the real world, you'll
mov dh, 'X' ; be forced to deal with programmers
mov al, 'E' ; that don't comment their code...
; Instead, they just add silly
; comments or leave comments blank.
mov di, offset OutArray
mov si, 36 + offset InArray
mov cx, 4
cld
stosw
stosb
inc di
movsw
movsw
rep stosb
mov si,18 + offset InArray
mov cx,2
rep movsw
mov cx,14
mov al,'I'
mov di,offset InArray
repne scasb
add OutArray[16],CL
... |