Well, it does break. Maybe it won't be an easy fix, although I haven't found any C emulator with all illegal opcodes.
You could take a look at my MCL64 which is a 6510 emulator written in C and supports the undocumented/unstable opcodes fairly well when used as a drop-in replacement into a ...
Search found 9 matches
- Thu Dec 22, 2022 10:12 am
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
- Thu Dec 22, 2022 10:08 am
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
okay so... I could not adapt it, it just hangs on some instruction forever!
https://github.com/LTVA1/siddump/tree/broken
https://github.com/LTVA1/siddump/tree/broken
- Tue Dec 13, 2022 2:18 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
Well, it does break. Maybe it won't be an easy fix, although I haven't found any C emulator with all illegal opcodes.
You could take a look at my MCL64 which is a 6510 emulator written in C and supports the undocumented/unstable opcodes fairly well when used as a drop-in replacement into a ...
You could take a look at my MCL64 which is a 6510 emulator written in C and supports the undocumented/unstable opcodes fairly well when used as a drop-in replacement into a ...
- Mon Dec 12, 2022 7:09 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
I would probably check to see how good the emulation is of the instructions with https://github.com/Klaus2m5/6502_65C02_functional_tests and my cycle timing checker which includes undocumented instructions : https://github.com/dp111/6502Timing
Actually no need now, I have the source code so I see ...
Actually no need now, I have the source code so I see ...
- Mon Dec 12, 2022 7:08 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
Well, it does break. Maybe it won't be an easy fix, although I haven't found any C emulator with all illegal opcodes.
You could take a look at my MCL64 which is a 6510 emulator written in C and supports the undocumented/unstable opcodes fairly well when used as a drop-in replacement into a ...
You could take a look at my MCL64 which is a 6510 emulator written in C and supports the undocumented/unstable opcodes fairly well when used as a drop-in replacement into a ...
- Thu Dec 08, 2022 6:53 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
Ok so I corrected program counter increments and now Lunatico sids actually write some data to SID registers, but it seems like the program is being stuck in short loop since after some time it starts to output repeating portions of nonsensical data (e.g. C-0 notes over and over again which isn't ...
- Thu Dec 08, 2022 5:37 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
Well, it does break. Maybe it won't be an easy fix, although I haven't found any C emulator with all illegal opcodes.
- Thu Dec 08, 2022 5:13 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Re: Illegal opcodes emulation in simple emulator written in
Welcome!
A quick look suggests that you'd need
WRITE(ABSOLUTE());
in some appropriate place(s).
Hmm, I was worried that this might be the case since WRITE(foo) just does nothing (it has something commented out). I will try to add the actual WRITE() functionality first and see if it doesn't break.
A quick look suggests that you'd need
WRITE(ABSOLUTE());
in some appropriate place(s).
Hmm, I was worried that this might be the case since WRITE(foo) just does nothing (it has something commented out). I will try to add the actual WRITE() functionality first and see if it doesn't break.
- Thu Dec 08, 2022 3:56 pm
- Forum: Emulation and Simulation
- Topic: Illegal opcodes emulation in simple emulator written in C
- Replies: 12
- Views: 8350
Illegal opcodes emulation in simple emulator written in C
Hello. I have forked this nice tool: https://github.com/LTVA1/siddump. In cpu.c I tried to add some illegal opcodes support (search by word "Lunatico"), but when I try to use the program on Lunatico sid files I don't get any SID registers writes but they should happen. This means that the 4 opcodes ...