Skip to content

Commit ec5f551

Browse files
committed
misc: correct "lenght" typo
1 parent 811368a commit ec5f551

File tree

19 files changed

+34
-33
lines changed

19 files changed

+34
-33
lines changed

Diff for: src/devices/machine/cs8900a.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ DEFINE_DEVICE_TYPE(CS8900A, cs8900a_device, "cs8900a", "CS8900A Crystal LAN 10Ba
5151
RW: RXTXDATA = DE00/DE01
5252
RW: RXTXDATA2 = DE02/DE03 (for 32-bit-operation)
5353
-W: TXCMD = DE04/DE05 (TxCMD, Transmit Command) mapped to PP + 0144 (Reg. 9, Sec. 4.4, page 46)
54-
-W: TXLENGTH = DE06/DE07 (TxLenght, Transmit Length) mapped to PP + 0146
54+
-W: TXLENGTH = DE06/DE07 (TxLength, Transmit Length) mapped to PP + 0146
5555
R-: INTSTQUEUE = DE08/DE09 (Interrupt Status Queue) mapped to PP + 0120 (ISQ, Sec. 5.1, page 78)
5656
RW: PP_PTR = DE0A/DE0B (PacketPage Pointer) (see. page 75p: Read -011.---- ----.----)
5757
RW: PP_DATA0 = DE0C/DE0D (PacketPage Data (Port 0))

Diff for: src/devices/sound/digitalk.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ quantization is done, but the whole 128 samples are adpcm-encoded.
156156
157157
158158
Finally, silent zones are compressed specifically by storing their
159-
lenghts.
159+
lengths.
160160
161161
162162
Decoding is simpler. The 128-samples waveform is decoded using the

Diff for: src/lib/formats/hect_tap.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int hector_handle_tap(int16_t *buffer, const uint8_t *casdata)
121121
if (data_pos>1)
122122
previous_block = casdata[data_pos-1];
123123

124-
/* Handle block lenght on tape data */
124+
/* Handle block length on tape data */
125125
block_size = casdata[data_pos] ;
126126
if (block_size==0)
127127
block_size=256;
@@ -173,8 +173,8 @@ static int hector_handle_forth_tap(int16_t *buffer, const uint8_t *casdata)
173173
/* Starting a block with 768 cycle of synchro*/
174174
sample_count += hector_tap_synchro( buffer, sample_count, 768 );
175175

176-
/* Handle block lenght on tape data */
177-
block_size = 822 ; /* Fixed size for the forth*/
176+
/* Handle block length on tape data */
177+
block_size = 822 ; /* Fixed size for the forth */
178178

179179
/*block_count=0;*/
180180

Diff for: src/lib/formats/tzx_cas.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static void tzx_cas_get_blocks( const uint8_t *casdata, int caslen )
194194

195195
if (pos > caslen)
196196
{
197-
LOG_FORMATS("Block %d(ID=%d) with wrong lenght discarded\n", block_count, blocktype);
197+
LOG_FORMATS("Block %d(ID=%d) with wrong length discarded\n", block_count, blocktype);
198198
}
199199
else
200200
{

Diff for: src/mame/capcom/cps3.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ Hardware registers info
541541
A6 xxxx xxxx xxxx xxxx Palette DMA Destination low bits
542542
A8 -edc ba98 -654 3210 Palette DMA Fade low bits
543543
AA ---- ---- -654 3210 Palette DMA Fade high bits
544-
AC xxxx xxxx xxxx xxxx Palette DMA Lenght low bits
545-
AE ---- ---- ---- ---0 Palette DMA Lenght high bit
544+
AC xxxx xxxx xxxx xxxx Palette DMA Length low bits
545+
AE ---- ---- ---- ---0 Palette DMA Length high bit
546546
---- ---- ---- --1- Palette DMA Start
547547
548548
CRTC-related H/V values is last clock/line of given area, i.e. actual numbers is +1 to value, actual V Total is +2 to register value.

Diff for: src/mame/efo/nightmare.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@
158158
01: Ubb (Substrate vias). 10) CS2 (Chip select inputs: 12 bits CW).
159159
02: Udd (Supply voltage). 11) CS2 (Chip select inputs: 12 bits CW).
160160
03: Uph (Programming voltage). 12) Φ (Clock input).
161-
04: STWL (Lenght of Control Word: 8/12 bits). 13) L (Programming signal output) (load).
161+
04: STWL (Length of Control Word: 8/12 bits). 13) L (Programming signal output) (load).
162162
05: N/C. 14) Dq (Data output).
163163
06: /RES (Reset input). 15) INV (Invert input signals).
164164
07: N/C. 16) REC (Data input control) (receive).
165165
08: Di (Data input). 17) Uss (Ground).
166166
09: CS3 (Chip select inputs: 8 or 12 bits CW). 18) Upi (Write voltage).
167167
168168
169-
Since STWL is connected to GND, the control word is set to 8-bit lenght.
169+
Since STWL is connected to GND, the control word is set to 8-bit length.
170170
171171
172172

Diff for: src/mame/funworld/funworld.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
The hardware was designed to manage 4096 tiles with a size of 8x4 pixels each.
174174
Also support 4bpp graphics and the palette limitation is 8 bits for color codes (256 x 16 colors).
175175
It means the hardware was designed for more elaborated graphics than Jolly Card games...
176-
Color PROMs from current games are 512 bytes lenght, but they only can use the first or the last 256 bytes.
176+
Color PROMs from current games are 512 bytes length, but they only can use the first or the last 256 bytes.
177177
178178
Normal hardware capabilities:
179179

Diff for: src/mame/funworld/snookr10.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
8 bits for color codes (256 x 16 colors). It means the hardware was designed for more
6969
elaborated graphics than these games...
7070
71-
Color PROMs from current games are 512 bytes lenght, but they only use the first 256 bytes.
71+
Color PROMs from current games are 512 bytes length, but they only use the first 256 bytes.
7272
7373
The sound is composed by 4-bit ADPCM samples. All the supported games have the same sound ROM.
7474
All the sounds/samples were ripped from the Gottlieb pinball 'Cue Ball Wizard'(1992).
@@ -585,7 +585,7 @@
585585
- Added the oki6295 emulation to all games.
586586
- Hooked output ports.
587587
- Documented and calculated all bits related to lamps.
588-
- Adjusted palette lenght to 256 colors.
588+
- Adjusted palette length to 256 colors.
589589
- Totally decrypted the apple10 color matrix. Now colors are perfect.
590590
- Created a new machine driver for apple10 due to encryption.
591591
- Reverse engineering the code to complete the DIP switches.

Diff for: src/mame/gaelco/gaelco3d.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void gaelco3d_state::machine_start()
201201
save_item(NAME(m_fp_clock));
202202
save_item(NAME(m_fp_state));
203203
save_item(NAME(m_fp_analog_ports));
204-
save_item(NAME(m_fp_lenght));
204+
save_item(NAME(m_fp_length));
205205
}
206206

207207

@@ -370,9 +370,9 @@ void gaelco3d_state::fp_analog_clock_w(int state)
370370
s32 const aay = ay - 0x80;
371371
s32 const aax = ax - 0x80;
372372
u32 const len = aay * aay + aax * aax;
373-
if (len <= m_fp_lenght[i])
373+
if (len <= m_fp_length[i])
374374
m_fp_analog_ports[i] |= 2;
375-
m_fp_lenght[i] = len;
375+
m_fp_length[i] = len;
376376
}
377377
}
378378
}

Diff for: src/mame/gaelco/gaelco3d.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class gaelco3d_state : public driver_device
128128
uint8_t m_sound_status = 0;
129129
uint8_t m_analog_ports[4]{};
130130
uint32_t m_fp_analog_ports[2]{};
131-
uint32_t m_fp_lenght[2]{};
131+
uint32_t m_fp_length[2]{};
132132
uint8_t m_fp_clock = 0;
133133
uint8_t m_fp_state = 0;
134134
uint8_t m_adsp_ireg = 0;

Diff for: src/mame/konami/ddribble.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ddribble_state : public driver_device
9393
void palette(palette_device &palette) const;
9494
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
9595
void vblank_irq(int state);
96-
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* source, int lenght, int gfxset, int flipscreen);
96+
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* source, int length, int gfxset, int flipscreen);
9797
void maincpu_map(address_map &map) ATTR_COLD;
9898
void subcpu_map(address_map &map) ATTR_COLD;
9999
void audiocpu_map(address_map &map) ATTR_COLD;
@@ -222,10 +222,10 @@ byte #4: attributes
222222
223223
***************************************************************************/
224224

225-
void ddribble_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* source, int lenght, int gfxset, int flipscreen)
225+
void ddribble_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t* source, int length, int gfxset, int flipscreen)
226226
{
227227
gfx_element *gfx = m_gfxdecode->gfx(gfxset);
228-
const uint8_t *finish = source + lenght;
228+
const uint8_t *finish = source + length;
229229

230230
while (source < finish)
231231
{

Diff for: src/mame/midway/vegas.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class vegas_state : public driver_device
420420
uint8_t m_a2d_shift = 0;
421421
int8_t m_wheel_force = 0;
422422
int m_wheel_offset = 0;
423-
bool m_wheel_calibrated = 0;
423+
bool m_wheel_calibrated = false;
424424
uint8_t m_vblank_state = 0;
425425
uint8_t m_cpuio_data[4] = { };
426426
uint8_t m_sio_reset_ctrl = 0;
@@ -536,6 +536,7 @@ void vegas_state::machine_reset()
536536

537537
// Clear CPU IO registers
538538
std::fill(std::begin(m_cpuio_data), std::end(m_cpuio_data), 0);
539+
539540
// Clear SIO registers
540541
reset_sio();
541542
m_duart_irq_state = 0;
@@ -2834,10 +2835,10 @@ GAME( 1999, nbanfl, 0, nbanfl, nbashowt, vegas_state, init_nbanfl,
28342835
GAME( 2000, nbagold, 0, nbagold, nbashowt, vegas_state, init_nbagold, ROT0, "Midway Games", "SportStation: NBA Showtime NBA on NBC Gold Edition (ver 3.0, Feb 18 2000) / NFL Blitz 2000 Gold Edition", MACHINE_SUPPORTS_SAVE ) // boot game dipswitch has no effect, so NFL Blitz 2000 version number not shown
28352836

28362837
// Durango + Denver SIO + Voodoo 3
2837-
GAMEL( 1999, sf2049, 0, sf2049, sf2049, vegas_state, init_sf2049, ROT0, "Atari Games", "San Francisco Rush 2049", MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2838-
GAMEL( 2003, sf2049se, 0, sf2049se, sf2049se, vegas_state, init_sf2049se, ROT0, "Atari Games", "San Francisco Rush 2049: Special Edition", MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2839-
GAMEL( 2000, sf2049te, 0, sf2049te, sf2049se, vegas_state, init_sf2049te, ROT0, "Atari Games", "San Francisco Rush 2049: Tournament Edition", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2840-
GAMEL( 2001, sf2049tea, sf2049te, sf2049te, sf2049se, vegas_state, init_sf2049te, ROT0, "Atari Games", "San Francisco Rush 2049: Tournament Edition Unlocked", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2838+
GAMEL(1999, sf2049, 0, sf2049, sf2049, vegas_state, init_sf2049, ROT0, "Atari Games", "San Francisco Rush 2049", MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2839+
GAMEL(2003, sf2049se, 0, sf2049se, sf2049se, vegas_state, init_sf2049se, ROT0, "Atari Games", "San Francisco Rush 2049: Special Edition", MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2840+
GAMEL(2000, sf2049te, 0, sf2049te, sf2049se, vegas_state, init_sf2049te, ROT0, "Atari Games", "San Francisco Rush 2049: Tournament Edition", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE, layout_sf2049 )
2841+
GAMEL(2001, sf2049tea, sf2049te, sf2049te, sf2049se, vegas_state, init_sf2049te, ROT0, "Atari Games", "San Francisco Rush 2049: Tournament Edition Unlocked", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE, layout_sf2049 )
28412842

28422843
// Durango + Vegas SIO + Voodoo 3
28432844
GAME( 2000, cartfury, 0, cartfury, cartfury, vegas_state, init_cartfury, ROT0, "Midway Games", "CART Fury Championship Racing (ver 1.00)", MACHINE_SUPPORTS_SAVE )

Diff for: src/mame/misc/calomega.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@
662662
SSI Poker (v4.0)
663663
664664
- Added a list of official/unofficial games, and their states.
665-
- Fixed a bug introduced when extended the color PROM region to eliminate colortable lenght.
665+
- Fixed a bug introduced when extended the color PROM region to eliminate colortable length.
666666
- Other changes/fixes.
667667
- Updated technical notes.
668668

Diff for: src/mame/misc/magicfly.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
192192
($0D) ; Incremented each time a NMI is triggered.
193193
($1D) ; In case of 0x00, NMI do nothing and return.
194-
($11) ; Store lenghts for text handling.
194+
($11) ; Store lengths for text handling.
195195
($12) ; Store values to be written in color RAM.
196196
($13 - $14) ; Pointer to text offset.
197197
($15 - $16) ; Pointer to video RAM.

Diff for: src/mame/shared/xbox.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ void xbox_base_state::help_command(const std::vector<std::string_view> &params)
571571
con.printf(" xbox waitvblank -- Toggle support for wait vblank method\n");
572572
con.printf(" xbox grab_texture,<type>,<filename> -- Save to <filename> the next used texture of type <type>\n");
573573
con.printf(" xbox grab_vprog,<filename> -- save current vertex program instruction slots to <filename>\n");
574-
con.printf(" xbox vprogdis,<address>,<length>[,<type>] -- disassemble <lenght> vertex program instructions at <address> of <type>\n");
574+
con.printf(" xbox vprogdis,<address>,<length>[,<type>] -- disassemble <length> vertex program instructions at <address> of <type>\n");
575575
con.printf(" xbox vdeclaration,<address> -- decode vertex program declaration at <address>\n");
576576
con.printf(" xbox help -- this list\n");
577577
}

Diff for: src/mame/shared/xbox_nv2a.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4144,7 +4144,7 @@ int nv2a_renderer::execute_method_blit(address_space &space, uint32_t chanel, ui
41444144
}
41454145
if (method == 0x0308) {
41464146
bitblit.width = data & 0xffff;
4147-
bitblit.heigth = data >> 16;
4147+
bitblit.height = data >> 16;
41484148
surface_2d_blit();
41494149
}
41504150
return 0;
@@ -4162,7 +4162,7 @@ void nv2a_renderer::surface_2d_blit()
41624162
}
41634163
srcrow = (uint32_t *)direct_access_ptr(bitblit.source_address + bitblit.pitch_source * bitblit.sourcey + bitblit.sourcex * 4);
41644164
destrow = (uint32_t *)direct_access_ptr(bitblit.destination_address + bitblit.pitch_destination * bitblit.destinationy + bitblit.destinationx * 4);
4165-
for (y = 0; y < bitblit.heigth; y++) {
4165+
for (y = 0; y < bitblit.height; y++) {
41664166
src = srcrow;
41674167
dest = destrow;
41684168
for (x = 0; x < bitblit.width; x++) {

Diff for: src/mame/shared/xbox_nv2a.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ class nv2a_renderer
874874
offs_t destination_address = 0;
875875
int op = 0;
876876
int width = 0;
877-
int heigth = 0;
877+
int height = 0;
878878
uint32_t sourcex = 0;
879879
uint32_t sourcey = 0;
880880
uint32_t destinationx = 0;

Diff for: src/mame/shared/xbox_usb.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ int device_usb_ohci_function_interface::execute_transfer(int endpoint, int pid,
12511251
else if (pid == InPid) {
12521252
if (endpoints[endpoint].type == ControlEndpoint) { //if (endpoint == 0) {
12531253
// if no data has been transferred (except for the setup stage)
1254-
// and the lenght of this IN transaction is 0
1254+
// and the length of this IN transaction is 0
12551255
// assume this is the status stage
12561256
if ((endpoints[endpoint].remain == 0) && (size == 0)) {
12571257
if ((endpoint == 0) && (settingaddress == true))

Diff for: src/mame/sigma/spiders_a.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static const discrete_dac_r1_ladder spiders_sound_dac =
4646
0 // no cap
4747
};
4848

49-
/* The noice generator consists of two LS164 plus a LS74, so the lenght is 8+8+1 */
49+
/* The noice generator consists of two LS164 plus a LS74, so the length is 8+8+1 */
5050
static const discrete_lfsr_desc spiders_lfsr =
5151
{
5252
DISC_CLK_IS_FREQ,

0 commit comments

Comments
 (0)