home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 109
/
EnigmaAmiga109CD.iso
/
software
/
sviluppo
/
powerd
/
lib
/
powerd_lib.lha
/
PowerD
/
FillEStr.ass
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1999-06-23
|
334 b
|
21 lines
; a0 - estring
; d0 - char
; d1 - length=-1
xdef _FillEStr
_FillEStr move.l a0,a1
tst.w d1
bgt.s .skip
.step move.w (-4,a0),d1
.skip cmp.w (-4,a0),d1
bgt.s .loop
bra.s .step
.loop move.b d0,(a0)+
dbra.s d1,.loop
clr.b (a0)
move.l a1,d0 ; store string
sub.l a0,d0 ; get new length
move.w d0,(-2,a1) ; set new length
rts