Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Binary-strings/8086-Assembly/binary-strings-1.8086
Normal file
12
Task/Binary-strings/8086-Assembly/binary-strings-1.8086
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
;this code assumes that both DS and ES point to the correct segments.
|
||||
cld
|
||||
mov si,offset TestMessage
|
||||
mov di,offset EmptyRam
|
||||
mov cx,5 ;length of the source string, you'll need to either know this
|
||||
;ahead of time or calculate it.
|
||||
rep movsb
|
||||
ret
|
||||
|
||||
;there is no buffer overflow protection built into these functions so be careful!
|
||||
TestMessage byte "Hello"
|
||||
EmptyRam byte 0,0,0,0,0
|
||||
Loading…
Add table
Add a link
Reference in a new issue