source: buchla-68k/ram/etatun.c@ b28a12e

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

Zero redundant declarations.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 =============================================================================
3 etatun.c -- MIDAS assignment editor - tuning table field handlers
4 Version 1 -- 1987-12-10 -- D.N. Lynx Crowe
5 =============================================================================
6*/
7
8#include "ram.h"
9
10/*
11 =============================================================================
12 et_atun() -- load the edit buffer
13 =============================================================================
14*/
15
16int16_t et_atun(int16_t n)
17{
18 sprintf(ebuf, "%01.1d", curtun);
19 ebflag = TRUE;
20
21 return(SUCCESS);
22}
23
24/*
25 =============================================================================
26 ef_atun() -- parse (unload) the edit buffer
27 =============================================================================
28*/
29
30int16_t ef_atun(int16_t n)
31{
32 register int16_t tmpval;
33
34 ebuf[1] = '\0'; /* terminate the string in ebuf */
35 ebflag = FALSE;
36
37 tmpval = ebuf[0] - '0';
38
39 gettun(tmpval);
40
41 modasg();
42 return(SUCCESS);
43}
44
45/*
46
47*/
48
49/*
50 =============================================================================
51 rd_atun() -- (re)display the field
52 =============================================================================
53*/
54
55int16_t rd_atun(int16_t nn)
56{
57 register int16_t n;
58
59 n = nn & 0xFF;
60 sprintf(dspbuf, "Tun %01.1d", curtun);
61
62 vbank(0);
63 vcputsv(asgob, 64, adbox[n][4], adbox[n][5],
64 adbox[n][6], adbox[n][7], dspbuf, 14);
65
66 return(SUCCESS);
67}
68
69/*
70 =============================================================================
71 nd_atun() -- handle new data entry
72 =============================================================================
73*/
74
75int16_t nd_atun(int16_t nn, int16_t k)
76{
77 register int16_t n;
78
79 n = nn & 0xFF;
80 ebuf[0] = k + '0';
81 ebuf[1] = '\0';
82
83 dspbuf[0] = k + '0';
84 dspbuf[1] = '\0';
85
86 vbank(0);
87 vcputsv(asgob, 64, AK_ENTRY, adbox[n][5],
88 stcrow, stccol, dspbuf, 14);
89
90 return(SUCCESS);
91}
92
93
Note: See TracBrowser for help on using the repository browser.