Mini6502 Simulator/Asm!

Show off your project created with Hollywood
Post Reply
divsalv
Posts: 23
Joined: Sun Mar 22, 2015 4:01 am

Mini6502 Simulator/Asm!

Post by divsalv » Mon Nov 14, 2016 12:52 pm

As the title, I created a simple simulator of 6502 cpu with HollyWood, I put the project on GitHub, I hope will be of help to someone.
The management of the part of the screen graphic, reduces the speed of execution, I wanted to ask if there is a way to speed up the execution.
Tested on Win10 with Pentium G3460 3.5 ghz.
https://github.com/divsalv/Mini-6502-Sim-Asm

User avatar
Allanon
Posts: 437
Joined: Sun Feb 14, 2010 8:53 pm
Location: Italy
Contact:

Re: Mini6502 Simulator/Asm!

Post by Allanon » Mon Nov 14, 2016 7:31 pm

Very interesting work!
Thank you for sharing :)
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

User avatar
airsoftsoftwair
Posts: 2506
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Mini6502 Simulator/Asm!

Post by airsoftsoftwair » Tue Nov 15, 2016 4:59 pm

That's cool! You can try to use DisableLineHook() to make it faster.

divsalv
Posts: 23
Joined: Sun Mar 22, 2015 4:01 am

Re: Mini6502 Simulator/Asm!

Post by divsalv » Wed Nov 16, 2016 3:56 pm

In fact with DisableLineHook () the execution speed increases twice, I made an example, and reaches more than 2 million calculations per second, compared to 1 million without DisableLineHook (), but just add a print, and instructions per second cascade just 300,000 per second, always with DisableLineHook ().

The problem is the management of the graphics, and the print of the register, and then if I put the break too low with waittimer, often the video is not properly done, with a few pixels that is not drawn, because the main loop is too fast .

I rewrote the management of OpCode using indicizate functions, instead of always doing the whole switch cycle, but there is always the problem of the graphics.

I tried to use GlGalore, but the result does not change.

Allanon thank for suggesting the indicizate functions.

Post Reply