Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #fasm#
- ;#make_boot#
- org 7c00h
- mov ah, 2
- xor dx, dx
- mov cl, 1
- mov al ,1
- mov bx, buf1
- int 13h
- mov ah, 2
- mov dl, 1
- mov cl, 1
- mov al ,1
- mov bx, buf2
- int 13h
- xor dx, dx
- mov cx, 256
- ;mov ax,word[buf1]
- ;add ax,word[buf2]
- ;mov word[buf3],ax
- cycle:
- mov ax, word[buf1 + si]
- adc ax, word[buf2 + si]
- mov word[buf3 + si], ax
- mov dx,word[buf3 + si]
- inc si
- inc si
- mov bx, word[buf1 + si]
- adc bx, word[buf2 + si]
- mov word[buf3 + si], bx
- mov dx,word[buf3 + si]
- inc si
- inc si
- loop cycle
- mov ah, 3
- mov dl, 2
- mov cl, 1
- mov al ,1
- mov bx, buf3
- int 13h
- mov ax,4c00h
- int 21h
- buf1 db 512 dup(0)
- buf2 db 512 dup(0)
- buf3 db 512 dup(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement