Search found 62 matches

by MicroCoreLabs
Mon Dec 12, 2022 8:49 pm
Forum: Emulation and Simulation
Topic: Illegal opcodes emulation in simple emulator written in C
Replies: 12
Views: 8338

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 ...
by MicroCoreLabs
Sun Dec 11, 2022 8:17 pm
Forum: Emulation and Simulation
Topic: Illegal opcodes emulation in simple emulator written in C
Replies: 12
Views: 8338

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 ...
by MicroCoreLabs
Fri Jul 15, 2022 5:15 am
Forum: Emulation and Simulation
Topic: MCL65+
Replies: 36
Views: 28242

Re: MCL65+

I just came across your amazing project ... Would it be doable to make it emulate the 65C816 ? I have an Apple IIgs with missing CPU that would LOVE it ... Thanks a lot for your work !

I believe the 65C816 is not footprint compatible with the NMOS 6502, so the MCL65+ would not be able to be ...
by MicroCoreLabs
Wed Mar 23, 2022 5:40 am
Forum: Programming
Topic: 8086 emulator
Replies: 24
Views: 3638

Re: 8086 emulator

... implementation of the 8086 microcode in 6502 assembler ...
Yes, using the microcode as a template is one option, but what I meant was to just implement the MCL86 microsequencer's ALU in 6502 assembler and then run the MCL86 microcode as-is.

The MCL86 microsequencer runs the 8086 emulation ...
by MicroCoreLabs
Tue Mar 22, 2022 5:12 pm
Forum: Programming
Topic: 8086 emulator
Replies: 24
Views: 3638

Re: 8086 emulator

Another option could be to use my microcoded x86, the MCL86: https://github.com/MicroCoreLabs/Projects/tree/master/MCL86

The MCL86 uses a seven-instruction microsequencer to run the x86 emulation microcode and access the BIU (Bus Interface Unit). It probably wouldn't be too difficult to port the ...
by MicroCoreLabs
Sat Mar 12, 2022 11:39 pm
Forum: Programming
Topic: 8086 emulator
Replies: 24
Views: 3638

Re: 8086 emulator

I recently completed an 8088 emulator which can replace the CPU on an IBM PC. Source is simple-C and is on GitHub.

https://microcorelabs.wordpress.com
by MicroCoreLabs
Fri Feb 18, 2022 9:28 pm
Forum: Programmable Logic
Topic: CPLD + 6502 Trainer
Replies: 80
Views: 91109

Re: CPLD + 6502 Trainer

I developed a ROM emulator which uses a Teensy and can be programmed in C via the Arduino IDE which could be useful for your project.

https://microcorelabs.wordpress.com/202 ... -emulator/
by MicroCoreLabs
Mon Feb 07, 2022 6:54 am
Forum: General Discussions
Topic: Terminator’s 6502 Clocked By 555 Timer
Replies: 0
Views: 26285

Terminator’s 6502 Clocked By 555 Timer

I wanted to share a note I posted regarding new information gathered about the Terminator T800.

https://hackaday.io/project/182913-term ... -555-timer
by MicroCoreLabs
Tue Jan 11, 2022 5:27 am
Forum: Emulation and Simulation
Topic: MCL64 - MOS 6510 Emulator for the Commodore 64
Replies: 14
Views: 8844

Re: MCL64 - MOS 6510 Emulator for the Commodore 64

Hmm -- I thought the C64 also allows the video memory (screen buffer) to be mapped anywhere in the address space.
I'm sure you are correct.

If video RAM can be "anywhere", and that's determined by the individual program at runtime -- how do you use internal RAM in the Teensy to accelerate the ...
by MicroCoreLabs
Fri Jan 07, 2022 3:19 am
Forum: Emulation and Simulation
Topic: MCL64 - MOS 6510 Emulator for the Commodore 64
Replies: 14
Views: 8844

Re: MCL64 - MOS 6510 Emulator for the Commodore 64

I don't see why not. Cartridge ROMs and RAM blocks have already be emulated using the Teensy's large memory, so adding a paging system for a large memory expansion would probably be easy.
by MicroCoreLabs
Tue Nov 30, 2021 8:36 pm
Forum: Programming
Topic: How do you debug your 6502/65C02 code?
Replies: 27
Views: 5004

Re: How do you debug your 6502/65C02 code?

Safari also misaligned
by MicroCoreLabs
Mon Nov 29, 2021 9:51 pm
Forum: Programming
Topic: How do you debug your 6502/65C02 code?
Replies: 27
Views: 5004

Re: How do you debug your 6502/65C02 code?

One option could be to add some printf's to both my emulator code and yours to output an opcode sequence number, the PC and opcode, and the state of the registers. Both of our emulators should execute addresses and opcodes in lockstep so you could use the traces to see where our emulators begin to ...
by MicroCoreLabs
Mon Nov 29, 2021 4:55 am
Forum: Emulation and Simulation
Topic: MCL64 - MOS 6510 Emulator for the Commodore 64
Replies: 14
Views: 8844

Re: MCL64 - MOS 6510 Emulator for the Commodore 64

I posted an update to the MCL64 project: https://microcorelabs.wordpress.com/202 ... 64-update/

It appears that a number of Commodore 64 games rely on a few of the unstable undocumented opcodes, so I updated the code to support them.
by MicroCoreLabs
Tue Nov 23, 2021 5:03 pm
Forum: Emulation and Simulation
Topic: The Ultimate Apple II Accelerator - The MCL65-Fast
Replies: 9
Views: 6133

Re: The Ultimate Apple II Accelerator - The MCL65-Fast

There are a few options for your 65F02 if you wanted to make it a tester:

You could use a modified version of my MCL65 which is a microsequencer based 6502 FPGA core with the entire 6502, including the ALU and the bus interface, implemented in microcode running on a seven instruction microsequencer ...