Subversion Repositories Kolibri OS

Rev

Rev 7565 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7565 Rev 7566
Line 63... Line 63...
63
/* Console functions */
63
/* Console functions */
64
:dword std_print(dword count, args)
64
:dword std_print(dword count, args)
65
{
65
{
66
	dword ret = 0;
66
	dword ret = 0;
-
 
67
	consoleInit();
67
	WHILE(count)
68
	WHILE(count)
68
	{
69
	{
-
 
70
		IF(!DSDWORD[args]) con_printf stdcall ("nil");
69
		con_printf stdcall (DSDWORD[args]);
71
		ELSE con_printf stdcall (DSDWORD[args]);
70
		args+=4;
72
		args+=4;
71
		count--;
73
		count--;
72
	}
74
	}
73
	RETURN ret;
75
	RETURN ret;
74
}
76
}
Line 75... Line 77...
75
 
77
 
76
:dword std_input(dword count, args)
78
:dword std_input(dword count, args)
77
{
79
{
-
 
80
	dword buf = 0;
78
	dword buf = 0;
81
	consoleInit();
79
	buf = malloc(100);
82
	buf = malloc(100);
80
	WHILE(count)
83
	WHILE(count)
81
	{
84
	{
82
		con_printf stdcall (DSDWORD[args]);
85
		con_printf stdcall (DSDWORD[args]);