|
Last change
on this file since 6262b5c was 6262b5c, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
|
Added include files for global functions and variables.
|
-
Property mode
set to
100644
|
|
File size:
770 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | ============================================================================
|
|---|
| 3 | conwr.c -- write on the console
|
|---|
| 4 | Version 4 -- 1987-06-29 -- D.N. Lynx Crowe
|
|---|
| 5 | ============================================================================
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #define _FS_DEF_ /* to avoid unnecessary externals */
|
|---|
| 9 |
|
|---|
| 10 | #include "all.h"
|
|---|
| 11 |
|
|---|
| 12 | /*
|
|---|
| 13 | ============================================================================
|
|---|
| 14 | _conwr(kind, buff, len) -- write 'len' bytes from 'buff' on the console
|
|---|
| 15 | using op 'kind' as the BIOS argument.
|
|---|
| 16 | ============================================================================
|
|---|
| 17 | */
|
|---|
| 18 | int16_t _conwr(int16_t kind, int8_t *buff, int16_t len)
|
|---|
| 19 | {
|
|---|
| 20 | register int16_t count;
|
|---|
| 21 |
|
|---|
| 22 | for (count = 0; count < len; ++count)
|
|---|
| 23 | BIOS(B_PUTC, kind, *buff++);
|
|---|
| 24 |
|
|---|
| 25 | return(count);
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.