mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 02:52:24 +00:00
wrapper function for compatibility with project oberon 13 sources.
This commit is contained in:
parent
e376e59f58
commit
85dff7734d
186 changed files with 332 additions and 226 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* voc 2.1.0 [2022/03/15]. Bootstrapping compiler for address size 8, alignment 8. xrtspaSF */
|
||||
/* voc 2.1.0 [2024/03/14]. Bootstrapping compiler for address size 8, alignment 8. xrtspaSF */
|
||||
|
||||
#define SHORTINT INT8
|
||||
#define INTEGER INT16
|
||||
|
|
@ -34,6 +34,7 @@ static void VT100_EscSeqSwapped (INT16 n, CHAR *letter, ADDRESS letter__len);
|
|||
export void VT100_HVP (INT16 n, INT16 m);
|
||||
export void VT100_IntToStr (INT32 int_, CHAR *str, ADDRESS str__len);
|
||||
export void VT100_RCP (void);
|
||||
export void VT100_Reset (void);
|
||||
static void VT100_Reverse0 (CHAR *str, ADDRESS str__len, INT16 start, INT16 end);
|
||||
export void VT100_SCP (void);
|
||||
export void VT100_SD (INT16 n);
|
||||
|
|
@ -136,6 +137,15 @@ static void VT100_EscSeq2 (INT16 n, INT16 m, CHAR *letter, ADDRESS letter__len)
|
|||
__DEL(letter);
|
||||
}
|
||||
|
||||
void VT100_Reset (void)
|
||||
{
|
||||
CHAR cmd[6];
|
||||
__COPY("\033", cmd, 6);
|
||||
Strings_Append((CHAR*)"c", 2, (void*)cmd, 6);
|
||||
Out_String(cmd, 6);
|
||||
Out_Ln();
|
||||
}
|
||||
|
||||
void VT100_CUU (INT16 n)
|
||||
{
|
||||
VT100_EscSeq(n, (CHAR*)"A", 2);
|
||||
|
|
@ -256,6 +266,7 @@ export void *VT100__init(void)
|
|||
__REGCMD("DECTCEMh", VT100_DECTCEMh);
|
||||
__REGCMD("DECTCEMl", VT100_DECTCEMl);
|
||||
__REGCMD("RCP", VT100_RCP);
|
||||
__REGCMD("Reset", VT100_Reset);
|
||||
__REGCMD("SCP", VT100_SCP);
|
||||
/* BEGIN */
|
||||
__COPY("\033", VT100_CSI, 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue