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

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

Unused variables and parameters.

  • 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 (void)n;
19
20 sprintf(ebuf, "%01.1d", curtun);
21 ebflag = TRUE;
22
23 return(SUCCESS);
24}
25
26/*
27 =============================================================================
28 ef_atun() -- parse (unload) the edit buffer
29 =============================================================================
30*/
31
32int16_t ef_atun(int16_t n)
33{
34 register int16_t tmpval;
35
36 (void)n;
37
38 ebuf[1] = '\0'; /* terminate the string in ebuf */
39 ebflag = FALSE;
40
41 tmpval = ebuf[0] - '0';
42
43 gettun(tmpval);
44
45 modasg();
46 return(SUCCESS);
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.