Pdawg
Pdawg
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
and some emulators that are all pretty but eat 20% of your cpu trying to emulate a 4MHz z80
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
but its fast
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
ive seen some horribly unreadable emulators
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
while keeping it readable
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
just really trying to optimize it
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
mk
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
like move each switch out to another method
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
_currentInstruction = Fetch();

switch (_currentInstruction)
{
case 0xDD:
//DDInstructionTable[_currentInstruction](); break;
DDSwitchTable(); break;
//etc
}
_currentInstruction = Fetch();

switch (_currentInstruction)
{
case 0xDD:
//DDInstructionTable[_currentInstruction](); break;
DDSwitchTable(); break;
//etc
}
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
should i just
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
only thing is id like to separate the switch blocks out for each "table"
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
hmmm yeah i guess
17 replies
CC#
Created by Pdawg on 9/8/2024 in #help
Optimizing the pipeline on my Z80 emulator
what, so like
private void LD_C_B() => LD_R_R(C, B);

instructionTable[0x48] = LD_C_B;
private void LD_C_B() => LD_R_R(C, B);

instructionTable[0x48] = LD_C_B;
17 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
thats actually a great idea, thanks!
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
yeah okay i get what youre saying
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
youre on to something
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
ahhhh wait
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
whether it be BC, DE, or HL
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
im more worried about the actual setting of the right register
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
yeah, but im not worried about the logging code rn
75 replies
CC#
Created by Pdawg on 6/22/2024 in #help
Which is faster - a type LUT or a switch?
reflection is slow
75 replies