[INTERPRETER]
* NEW: Write instruction can write a bunch of bytes from a pointer address. git-svn-id: svn://localhost/gambas/trunk@4077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
2afe7d8f6b
commit
47ed274add
1 changed files with 9 additions and 1 deletions
|
@ -457,7 +457,15 @@ void SUBR_write(ushort code)
|
|||
int len;
|
||||
int lenw;
|
||||
|
||||
SUBR_get_string_len(&PARAM[1], &str, &len);
|
||||
if (TYPE_is_pointer(PARAM[1].type))
|
||||
{
|
||||
len = 0;
|
||||
str = (char *)PARAM[1]._pointer.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
SUBR_get_string_len(&PARAM[1], &str, &len);
|
||||
}
|
||||
|
||||
VALUE_conv_integer(&PARAM[2]);
|
||||
lenw = PARAM[2]._integer.value;
|
||||
|
|
Loading…
Reference in a new issue