Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm26/stand/lib Rudimentary OS_Byte support, and an...



details:   https://anonhg.NetBSD.org/src/rev/b35bc5aef685
branches:  trunk
changeset: 513290:b35bc5aef685
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Fri Jul 27 21:10:04 2001 +0000

description:
Rudimentary OS_Byte support, and an extra VDU variable.

diffstat:

 sys/arch/arm26/stand/lib/riscoscalls.S |  14 +++++++++++++-
 sys/arch/arm26/stand/lib/riscoscalls.h |  13 ++++++++++++-
 2 files changed, 25 insertions(+), 2 deletions(-)

diffs (69 lines):

diff -r d647a9de8d70 -r b35bc5aef685 sys/arch/arm26/stand/lib/riscoscalls.S
--- a/sys/arch/arm26/stand/lib/riscoscalls.S    Fri Jul 27 20:49:09 2001 +0000
+++ b/sys/arch/arm26/stand/lib/riscoscalls.S    Fri Jul 27 21:10:04 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: riscoscalls.S,v 1.5 2001/07/27 20:49:09 bjh21 Exp $    */
+/*     $NetBSD: riscoscalls.S,v 1.6 2001/07/27 21:10:04 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -51,6 +51,18 @@
        swi     OS_ReadC
        ldmdb   fp, {fp, sp, pc}
 
+ENTRY(os_byte)
+       mov     ip, sp
+       stmfd   sp!, {fp, ip, lr, pc}
+       sub     fp, ip, #4
+       swi     OS_Byte 
+       teq     r3, #0
+       strne   r1, [r3]
+       ldr     r3, [fp, #4]
+       teq     r3, #0
+       strne   r2, [r3]
+       ldmdb   fp, {fp, sp, pc}
+
 ENTRY(xosargs_read)
        mov     ip, sp
        stmfd   sp!, {fp, ip, lr, pc}
diff -r d647a9de8d70 -r b35bc5aef685 sys/arch/arm26/stand/lib/riscoscalls.h
--- a/sys/arch/arm26/stand/lib/riscoscalls.h    Fri Jul 27 20:49:09 2001 +0000
+++ b/sys/arch/arm26/stand/lib/riscoscalls.h    Fri Jul 27 21:10:04 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: riscoscalls.h,v 1.3 2001/07/27 20:49:09 bjh21 Exp $    */
+/*     $NetBSD: riscoscalls.h,v 1.4 2001/07/27 21:10:04 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -40,6 +40,8 @@
 #define XOS_NewLine            0x020003
 #define OS_ReadC               0x000004
 #define XOS_ReadC              0x020004
+#define OS_Byte                        0x000006
+#define XOS_Byte               0x020006
 #define OS_Args                        0x000009
 #define XOS_Args               0x020009
 #define OS_GBPB                        0x00000c
@@ -70,6 +72,14 @@
 extern int os_readc(void);
 #endif
 
+/* OS_Byte */
+
+#define osbyte_OUTPUT_CURSOR_POSITION  165
+
+#ifndef __ASSEMBLER__
+void os_byte(int, int, int, int *, int *);
+#endif
+
 /* OS_Args */
 
 #define OSArgs_ReadPtr         0
@@ -132,6 +142,7 @@
 #define os_MODEVAR_YWIND_LIMIT         12
 #define os_VDUVAR_DISPLAY_START                149
 #define os_VDUVAR_TOTAL_SCREEN_SIZE    150
+#define os_VDUVAR_TCHAR_SPACEY         170
 
 #ifndef __ASSEMBLER__
 extern void os_read_vdu_variables(const int *, int *);



Home | Main Index | Thread Index | Old Index