Commit 7ea276fb authored by Sergio Costas's avatar Sergio Costas

Removed "register" statements in the code (unneeded today, thanks to compiler optimizations)

Removed the -g parameter for debug info in GCC
parent b50f0b85
CC=g++ -c
CPP=g++ -c -g
LN=g++
CC=g++ -c -O2
CPP=g++ -c -O2
LN=g++ -O2
CFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -O2 -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CPPFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -O2 -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CPPFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
LDFLAGS += `pkg-config --libs sdl libpulse-simple alsa`
......
CC=g++ -c
CPP=g++ -c -g
LN=g++
CC=g++ -c -O2
CPP=g++ -c -O2
LN=g++ -O2
CFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -O2 -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CPPFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -O2 -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CPPFLAGS += `pkg-config --cflags sdl libpulse-simple alsa` -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
LDFLAGS += `pkg-config --libs sdl libpulse-simple alsa`
#basecmd $(CPP) $(CPPFLAGS)
......
......@@ -181,7 +181,7 @@ void ResetComputer () {
microdrive->reset();
}
void Z80free_Wr (register word Addr, register byte Value) {
void Z80free_Wr (word Addr, byte Value) {
if ((Addr & 0xC000) == 0x4000) {
ordenador->do_contention();
......@@ -214,7 +214,7 @@ void computer::write_memory (uint16_t Addr, uint8_t Value) {
}
byte Z80free_Rd (register word Addr) {
byte Z80free_Rd (word Addr) {
if((microdrive->mdr_active)&&(microdrive->mdr_paged)&&(Addr<8192)) // Interface I
return((byte)ordenador->shadowrom[Addr]);
......@@ -258,7 +258,7 @@ uint8_t computer::read_memory(uint16_t Addr) {
}
}
void Z80free_Out (register word Port, register byte Value) {
void Z80free_Out (word Port, byte Value) {
// Microdrive access
......@@ -326,7 +326,7 @@ void Z80free_Out (register word Port, register byte Value) {
}
byte Z80free_In (register word Port) {
byte Z80free_In (word Port) {
static unsigned int temporal_io;
byte pines;
......
......@@ -171,22 +171,22 @@ Of course, if you don't want to complicate things, just use Z80FREE_STEP.
Finally, you must implement the following functions in order to emulate the
hardware itself:
byte Z80free_Rd (register word Addr);
byte Z80free_Rd (word Addr);
When Z80Free needs to read a byte from memory, it will call this function.
It must return the value contained in the possition ADDR.
void Z80free_Wr (register word Addr, register byte Value);
void Z80free_Wr (word Addr, byte Value);
When Z80Free needs to write a byte to memory, it will call this funcion.
It must store the data VALUE at the position ADDR.
byte Z80free_In (register word Port);
byte Z80free_In (word Port);
When Z80Free needs to access to an input port, it will call this function.
PORT contains the 16bit port being accessed.
void Z80free_Out (register word Port, register byte Value);
void Z80free_Out (word Port, byte Value);
When Z80Free needs to access to an output port, it will call this function.
PORT contains the 16bit port being accessed, and VALUE the data to be
......
......@@ -749,7 +749,7 @@ word Z80free_addr_relativeXDCB(Z80FREE *processor,word address,byte d1) {
return (address+rel2);
}
void Z80free_write16 (register word addr,register word val) {
void Z80free_write16 (word addr,word val) {
Z80free_Wr(addr, (byte)(val & 0xFF));
val >>= 8;
......@@ -757,7 +757,7 @@ void Z80free_write16 (register word addr,register word val) {
Z80free_Wr(addr, (byte)(val & 0xFF));
}
word Z80free_read16 (register word addr) {
word Z80free_read16 (word addr) {
static word v1;
v1=((word)Z80free_Rd(addr))&0x00FF;
......
......@@ -125,8 +125,8 @@ word Z80free_addr_relative(Z80FREE *processor,word address);
word Z80free_addr_relativeXDCB(Z80FREE *processor,word address,byte d1);
byte Z80free_read_param_8(Z80FREE *z80);
word Z80free_read_param_16(Z80FREE *z80);
word Z80free_read16 (register word addr);
void Z80free_write16 (register word addr,register word val);
word Z80free_read16 (word addr);
void Z80free_write16 (word addr,word val);
/* external Z80 methods */
......@@ -135,10 +135,10 @@ int Z80free_step(Z80FREE *);
int Z80free_ustep(Z80FREE *);
void Z80free_INT(Z80FREE *,byte);
byte Z80free_Rd (register word Addr);
void Z80free_Wr (register word Addr, register byte Value);
byte Z80free_In (register word Port);
void Z80free_Out (register word Port, register byte Value);
byte Z80free_Rd (word Addr);
void Z80free_Wr (word Addr, byte Value);
byte Z80free_In (word Port);
void Z80free_Out (word Port, byte Value);
/* Opcode functions */
......
......@@ -218,17 +218,17 @@ int read_test() {
return 0;
}
byte Z80free_Rd (register word Addr) {
byte Z80free_Rd (word Addr) {
return ((byte)memory[Addr]);
}
void Z80free_Wr (register word Addr, register byte Value) {
void Z80free_Wr (word Addr, byte Value) {
memory[Addr]=(unsigned char) Value;
}
byte Z80free_In (register word Port) {
byte Z80free_In (word Port) {
byte value;
......@@ -244,7 +244,7 @@ byte Z80free_In (register word Port) {
return (value);
}
void Z80free_Out (register word Port, register byte Value) {
void Z80free_Out (word Port, byte Value) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment