Skip to content

Commit 5380075

Browse files
committed
I7000: Fixed compiler warning in i7080.
1 parent 81d9627 commit 5380075

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

I7000/i7080_cpu.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ const char *cpu_description (DEVICE *dptr);
120120

121121
uint32 read_addr(uint8 *reg, uint8 *zone);
122122
void write_addr(uint32 addr, uint8 reg, uint8 zone);
123-
uint32 load_addr(int *loc);
124-
void store_addr(uint32 addr, int *loc);
123+
uint32 load_addr(uint32 *loc);
124+
void store_addr(uint32 addr, uint32 *loc);
125125
void store_cpu(uint32 addr, int full);
126126
void load_cpu(uint32 addr, int full);
127127
uint16 get_acstart(uint8 reg);
@@ -2405,7 +2405,7 @@ void write_addr(uint32 addr, uint8 reg, uint8 zone) {
24052405
}
24062406

24072407
/* Store converted address in storage */
2408-
void store_addr(uint32 addr, int *loc) {
2408+
void store_addr(uint32 addr, uint32 *loc) {
24092409
uint8 value[4];
24102410
int i;
24112411

@@ -2454,7 +2454,7 @@ void store_addr(uint32 addr, int *loc) {
24542454

24552455

24562456
/* Read address from storage */
2457-
uint32 load_addr(int *loc) {
2457+
uint32 load_addr(uint32 *loc) {
24582458
uint8 t;
24592459
uint8 f;
24602460
uint8 zone;
@@ -2507,7 +2507,7 @@ uint32 load_addr(int *loc) {
25072507
}
25082508

25092509
/* Store converted hex address in storage */
2510-
void store_hex(uint32 addr, int *loc) {
2510+
void store_hex(uint32 addr, uint32 *loc) {
25112511
/* Convert address into BCD first */
25122512
AC[*loc] = bin_bcd[addr & 0xf];
25132513
*loc = next_addr[*loc];
@@ -2520,7 +2520,7 @@ void store_hex(uint32 addr, int *loc) {
25202520
}
25212521

25222522
/* Read hex address from storage */
2523-
uint32 load_hex(int *loc) {
2523+
uint32 load_hex(uint32 *loc) {
25242524
uint8 t;
25252525
uint8 f;
25262526
uint32 addr;

I7000/i7080_defs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ int chan_cmd(uint16 dev, uint16 cmd, uint32 addr);
3636
int chan_mapdev(uint16 dev);
3737
/* Process the CHR 3 13 command and abort all channel activity */
3838
void chan_chr_13();
39-
uint32 load_addr(int *loc);
40-
void store_addr(uint32 addr, int *loc);
39+
uint32 load_addr(uint32 *loc);
40+
void store_addr(uint32 addr, uint32 *loc);
4141

4242
/* Opcode definitions. */
4343
#define OP_TR CHR_1

0 commit comments

Comments
 (0)