21
21
* 30 Jan 22 - Initial version (derived from x11-calc-10.c) - MT
22
22
* 12 Mar 22 - Added the label state property - MT
23
23
* 18 Mar 24 - Embedded firmware - MT
24
+ * 22 Apr 24 - Removed duplicate definition - MT
25
+ * 2 May 24 - Added shortcut keys 'A-E' - MT
24
26
*
25
27
* TO DO : -
26
28
*/
27
29
28
30
#define NAME "x11-calc-11c"
29
- #define BUILD "0003 "
30
- #define DATE "18 Mar 24"
31
+ #define BUILD "0005 "
32
+ #define DATE "02 May 24"
31
33
#define AUTHOR "MT"
32
34
33
35
#include <stdarg.h> /* strlen(), etc. */
51
53
52
54
oregister o_mem [MEMORY_SIZE ];
53
55
54
- int i_rom [ROM_SIZE ];
55
-
56
56
void v_init_labels (olabel * h_label []) {
57
57
int i_height = h_small_font -> ascent + h_small_font -> descent ;
58
58
h_label [0 ] = h_label_create (001 , "CLEAR" , h_alternate_font , KBD_LEFT + KEY_WIDTH + KEY_GAP ,
@@ -67,15 +67,15 @@ void v_init_buttons(obutton *h_button[]) {
67
67
i_top = KBD_TOP + KEY_HEIGHT ;
68
68
i_left = KBD_LEFT ;
69
69
i_count = 0 ;
70
- h_button [i_count ++ ] = h_button_create (00023 , 000 , "/\xaf" , "A" , "" , "x\xb2" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
70
+ h_button [i_count ++ ] = h_button_create (00023 , 'A' , "/\xaf" , "A" , "" , "x\xb2" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
71
71
i_left += (KEY_WIDTH + KEY_GAP );
72
- h_button [i_count ++ ] = h_button_create (00063 , 000 , "eX" , "B" , "" , "ln" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
72
+ h_button [i_count ++ ] = h_button_create (00063 , 'B' , "eX" , "B" , "" , "ln" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
73
73
i_left += (KEY_WIDTH + KEY_GAP );
74
- h_button [i_count ++ ] = h_button_create (00163 , 000 , "10x" , "C" , "" , "log" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
74
+ h_button [i_count ++ ] = h_button_create (00163 , 'C' , "10x" , "C" , "" , "log" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
75
75
i_left += (KEY_WIDTH + KEY_GAP );
76
- h_button [i_count ++ ] = h_button_create (00303 , 000 , "yX" , "D" , "" , "%" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
76
+ h_button [i_count ++ ] = h_button_create (00303 , 'D' , "yX" , "D" , "" , "%" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
77
77
i_left += (KEY_WIDTH + KEY_GAP );
78
- h_button [i_count ++ ] = h_button_create (00203 , 000 , "1/x" , "E" , "" , "d%" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
78
+ h_button [i_count ++ ] = h_button_create (00203 , 'E' , "1/x" , "E" , "" , "d%" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
79
79
i_left += (KEY_WIDTH + KEY_GAP );
80
80
h_button [i_count ++ ] = h_button_create (00202 , 'c' , "CHS" , "\x1c" , "" , "ABS" , h_normal_font , h_small_font , h_alternate_font , i_left , i_top , KEY_WIDTH , KEY_HEIGHT , False , False , BLACK , YELLOW , MID_BLUE , BLACK );
81
81
i_left += (KEY_WIDTH + KEY_GAP );
@@ -927,3 +927,4 @@ int i_rom[ROM_SIZE] = {
927
927
0x010c , 0x01e8 , 0x01e6 , 0x01e6 , 0x03c8 , 0x03cc , 0x0023 , 0x0266 ,
928
928
0x03e3 , 0x03e0 , 0x039d , 0x000c , 0x03cd , 0x004e , 0x0000 , 0x0000
929
929
};
930
+
0 commit comments