source: buchla-68k/vlib/vmput.c@ fa38804

Last change on this file since fa38804 was fa38804, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Removed form-feed comments.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 =============================================================================
3 vmput.c -- video menu put functions
4 Version 3 -- 1987-03-30 -- D.N. Lynx Crowe
5 (c) Copyright 1987 -- D.N. Lynx Crowe
6
7 vmput(sbase, row, col, ms, ma)
8 uint *sbase, rwo, col, ma;
9 char *ms[];
10
11 Copies lines from ms, with attribute ma, to sbase at (row,col).
12
13 vmputa(sbase, row, col, ms, ma)
14 uint *sbase, row, col, *ma;
15 char *ms[];
16
17 Copies lines from ms, with attributes from ma, to sbase at (row,col).
18 =============================================================================
19*/
20
21#include "ram.h"
22
23/*
24 =============================================================================
25 vmput(sbase, row, col, ms, ma) -- put a menu item in a screen image.
26 Copies lines from ms, with attribute ma, to sbase at (row,col).
27 =============================================================================
28*/
29
30void vmput(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *ms[], uint16_t ma)
31{
32 register uint16_t c, tc, tr;
33 int8_t *cp;
34
35 tr = row;
36
37 while (cp = *ms++) {
38
39 tc = col;
40
41 while (c = *cp++)
42 vputc(sbase, tr, tc++, c, ma);
43
44 tr++;
45 }
46}
47
48/*
49 =============================================================================
50 vmputa(sbase, row, col, ms, ma) -- put a menu item in a screen image.
51 Copies lines from ms, with attributes from ma, to sbase at (row,col).
52 =============================================================================
53*/
54
55void vmputa(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *ms[], uint16_t *ma[])
56{
57 register uint16_t c, tc, tr;
58 uint16_t *tm;
59 int8_t *cp;
60
61 tr = row;
62
63 while (cp = *ms++) {
64
65 tc = col;
66 tm = *ma++;
67
68 while (c = *cp++)
69 vputc(sbase, tr, tc++, c, *tm++);
70
71 tr++;
72 }
73}
Note: See TracBrowser for help on using the repository browser.