convert wdc_ram from unsigned char to uint8_t

This commit is contained in:
Oliver Lehmann 2012-05-31 20:34:11 +00:00
parent c3b77a6c5e
commit 9c672773b2
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/* /*
* P8000 WDC Emulator * P8000 WDC Emulator
* *
* $Id: wdc_ram.c,v 1.1 2012/05/31 20:21:51 olivleh1 Exp $ * $Id: wdc_ram.c,v 1.2 2012/05/31 20:34:11 olivleh1 Exp $
* *
*/ */
@ -13,7 +13,7 @@ uint8_t par_table[200] = { 'W', 'D', 'C', '_', '4', '.', '2', 0x00, 'R'
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}; };
uint8_t bt_table[125]; uint8_t bt_table[125];
unsigned char wdc_ram[2048]; uint8_t wdc_ram[2048];
void wdc_write_data_to_ram ( uint8_t *buffer, uint16_t address, uint16_t count ) void wdc_write_data_to_ram ( uint8_t *buffer, uint16_t address, uint16_t count )
@ -26,12 +26,10 @@ void wdc_write_data_to_ram ( uint8_t *buffer, uint16_t address, uint16_t count )
void wdc_read_data_from_ram ( uint8_t *buffer, uint16_t address, uint16_t count ) void wdc_read_data_from_ram ( uint8_t *buffer, uint16_t address, uint16_t count )
{ {
do { do {
count--; count--;
buffer[count] = wdc_ram[address + count]; buffer[count] = wdc_ram[address + count];
} while ( count > 0 ); } while ( count > 0 );
} }
void wdc_read_partab ( uint8_t *buffer, uint16_t count ) void wdc_read_partab ( uint8_t *buffer, uint16_t count )