-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConsoleOps.bi
23 lines (19 loc) · 958 Bytes
/
ConsoleOps.bi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'-----------------------------------------------------------------------------------------------------------------------
' Standard I/O CRT functions
' Copyright (c) 2024 Samuel Gomes
'-----------------------------------------------------------------------------------------------------------------------
$INCLUDEONCE
'$INCLUDE:'Common.bi'
'-----------------------------------------------------------------------------------------------------------------------
' TEST CODE
'-----------------------------------------------------------------------------------------------------------------------
'$CONSOLE:ONLY
'Console_PutCharacter 34
'_ECHO "Hello, world!"
'PRINT Console_GetCharacter
'END
'-----------------------------------------------------------------------------------------------------------------------
DECLARE LIBRARY
FUNCTION Console_GetCharacter& ALIAS "getchar"
SUB Console_PutCharacter ALIAS "putchar" (BYVAL ch AS LONG)
END DECLARE