~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/ram.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "cmdline.h"
33
33
#include "ram.h"
34
34
#include "resources.h"
 
35
#ifdef HAS_TRANSLATION
 
36
#include "translate.h"
 
37
#endif
35
38
#include "types.h"
36
39
 
37
40
 
78
81
    return resources_register(resources);
79
82
}
80
83
 
81
 
static const cmdline_option_t cmdline_options[] = {
82
 
    { "-raminitstartvalue", SET_RESOURCE, 1, NULL, NULL,
83
 
      "RAMInitStartValue", NULL,
84
 
      "<value>", "Set the value for the very first RAM address after powerup" },
 
84
#ifdef HAS_TRANSLATION
 
85
static const cmdline_option_t cmdline_options[] = {
 
86
    { "-raminitstartvalue", SET_RESOURCE, 1, NULL, NULL,
 
87
      "RAMInitStartValue", NULL,
 
88
      IDCLS_P_VALUE, IDCLS_SET_FIRST_RAM_ADDRESS_VALUE },
 
89
    { "-raminitvalueinvert" , SET_RESOURCE, 1, NULL, NULL,
 
90
      "RAMInitValueInvert", NULL,
 
91
      IDCLS_P_NUM_OF_BYTES, IDCLS_LENGTH_BLOCK_SAME_VALUE },
 
92
    { "-raminitpatterninvert", SET_RESOURCE, 1, NULL, NULL,
 
93
      "RAMInitPatternInvert", NULL,
 
94
      IDCLS_P_NUM_OF_BYTES, IDCLS_LENGTH_BLOCK_SAME_PATTERN },
 
95
    { NULL }
 
96
};
 
97
#else
 
98
static const cmdline_option_t cmdline_options[] = {
 
99
    { "-raminitstartvalue", SET_RESOURCE, 1, NULL, NULL,
 
100
      "RAMInitStartValue", NULL,
 
101
      N_("<value>"), N_("Set the value for the very first RAM address after powerup") },
85
102
    { "-raminitvalueinvert", SET_RESOURCE, 1, NULL, NULL,
86
103
      "RAMInitValueInvert", NULL,
87
 
      "<num of bytes>", "Length of memory block initialized with the same value" },
 
104
      N_("<num of bytes>"), N_("Length of memory block initialized with the same value") },
88
105
    { "-raminitpatterninvert", SET_RESOURCE, 1, NULL, NULL,
89
106
      "RAMInitPatternInvert", NULL,
90
 
      "<num of bytes>", "Length of memory block initialized with the same pattern" },
 
107
      N_("<num of bytes>"), N_("Length of memory block initialized with the same pattern") },
91
108
    { NULL }
92
109
};
 
110
#endif
93
111
 
94
112
int ram_cmdline_options_init(void)
95
113
{