05-21-2014, 05:17 PM
I think POKE STRING would be useful in many situations. It would poke the content of a string (not its lenght). I've written it this way:
The advantage of a native POKE STRING would be POKE would work with all current types.
Code:
sub fastcall pokeString(address as uinteger,text$ as string)
asm
; HL = first parameter, address
ex de,hl ; DE = address
pop bc ; return address
pop hl ; second parameter, address of the text$ lenght
push bc ; restore the return address
ld c,(hl)
inc hl
ld b,(hl) ; BC = text$ lenght
inc hl ; HL = first char of text$
ldir
end asm
end sub
The advantage of a native POKE STRING would be POKE would work with all current types.
Marcos Cruz
http://programandala.net
http://programandala.net