The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

MCL65 – a cycle exact 6502 in an FGPA

Posted by jpluimers on 2017/11/24

Cool stuff: [WayBackMCL65

MicroCore Labs MCL65 6502 core

The MC65 is an ultra-small footprint, microsequencer-based, 100% instruction-set compatible, cycle-exact NMOS 6502 core that can be implemented in any FPGA or ASIC technology which can utilize as little as 252 LUTs  (0.77%) of a Xilinx Spartan-7 FPGA. It has also been ported to a Xilinx Spartan-3 device where it uses about 10% of the part.

The MCL65 is instruction set compatible with the original NMOS version of the 6502 which was the processor used in computers and game machines such as the Commodore VIC20, Apple II, Atari-2600, and the Commodore-64 as well as  many others.

It runs inside an Apple ][ fine: see the below videos by MicroCore Labs

  • [WayBack] Download
  • [WayBack] MCL65 Working!: The MCL65 is currently running inside of a Commodore VIC-20 computer!  I have no game cartridges at the moment, so I am just running the classic a=a+1 BASIC counting program…
  • [WayBack] MCL65 running on VIC-20: Here are a few pictures of the MCL65 running on a VIC20. Video is available at MicroCore Labs YouTube Channel
  • [WayBack] MCL65 in a Spartan-3: Just ported the MCL65 to a Xilinx Spartan-3 board which contains an XC3S250E. 490 LUTs are used, which is 10% of the device.
  • [WayBack] MCL65 running on Atari 2600: The Atari 2600 just arrived in the mail, so replaced the MOS6507 CPU with the MCL65 core which is fitted the Xilinx Spartan-7 board and then to a 28-pin header for the 6507 package…
  • [WayBack] MCL65 works in Apple II+: Received the Apple II+ in the mail today but it did not come with any diskettes. I used a terrific tool, ADTPro, to transfer disk images from my PC over to the Apple using the cassette port…
  • [WayBack] MCL65 running Apple II+ Programs:I uploaded some videos of the system running a few applications and games. My hope was to test the MCL65 on a variety of programs that could demonstrate the instruction as well as cycle accuracy…

Via:

–jeroen

Read the rest of this entry »

Posted in 6502, History | Leave a Comment »

Use operator overloading for classes with non-ARC compiler · GitHub

Posted by jpluimers on 2017/11/23

[WayBackUse operator overloading for classes with non-ARC compiler · GitHub

The trick: do not use class operator but use class function &&op_ with the special operator name in the table referenced below. Just follow the bulleted example links to get an idea.

Bonus: it works on class helper constructs as well.

Officially this unsupported and with the non-ARC compiler you will have a risk of memory leaks.

But it’s so much fun as these links prove:

The usual operator gotchas apply here as well: Delphi operator overloading: table of operators, names, and some notes on usage and ‘glitches’.

The operators you could try: [WayBackOperator Overloading (Delphi) – RAD Studio

Oh, this thread needs some change now: [WayBackList of Delphi language features and version in which they were introduced/deprecated – Stack Overflow

–jeroen

Posted in Delphi, Development, Software Development | 1 Comment »

Capitalization Conventions – more than Canceled not Cancelled

Posted by jpluimers on 2017/11/23

[WayBackCapitalization Conventions

Posted in .NET, Delphi, Development, Software Development | 1 Comment »

Say NO to Venn Diagrams When Explaining JOINs – Java, SQL and jOOQ.

Posted by jpluimers on 2017/11/22

Interesting thought especially for cross-joins [WayBackSay NO to Venn Diagrams When Explaining JOINs – Java, SQL and jOOQ.

–jeroen

Via [WayBack“Say NO to Venn Diagrams When Explaining JOINs” – and [WayBack] “Say NO to Venn Diagrams When Explaining JOINs” – – Kristian Köhntopp – Google+

 

Posted in Database Development, Development, SQL | Leave a Comment »

check if network connection is permanent

Posted by jpluimers on 2017/11/22

Thanks Uwe for the below code!

I was in a situation of a batch file running from a Task Scheduler that got broken because the user suddenly turned on persistent network connections.

So I needed to check if a shared drive-letter was indeed persistent or not and act accordingly.

The below code helped me merging the batch file with the Delphi application it would run in the background anyway.

It’s way better than checking of the global “persistence” flag for new connections has been set in the registry: [WayBackSaveConnections flag at HKCU\Software\Microsoft\Windows NT\CurrentVersion\Network\Persistent Connections (which is reflected both in the Windows UI and settable via net use /Persistent).

Source: check if network connection is permanent

Via: [WayBack] Anyone who can share how one can query if a drive letter mapping to a share is persistent across logon sessions? (yes, this is Windows, I know) – Jeroen Wiert Pluimers – Google+

–jeroen

Read the rest of this entry »

Posted in Delphi, Development, Software Development | Leave a Comment »

OpenBSD on PC Engines APU2 | Hacker News

Posted by jpluimers on 2017/11/21

Via [WayBackOpenBSD on PC Engines APU2 | Hacker News and [WayBackIlya S – Google+ commenting at [WayBack] I am thinking about moving to BSD as my main OS – Joe C. Hecht – Google+:

Just in case I want to build my own router on PC Engines APU2 hardware: installation instructions at [Wayback/Archive] elad/openbsd-apu2: OpenBSD on the APU2

–jeroen

Posted in APU, Development, Hardware, Hardware Development, Internet, Network-and-equipment, Power User, routers | Leave a Comment »

Delphi history: No, dynamic arrays do not support a non-zero lower bound, but what if you want them? – via Stack Overflow

Posted by jpluimers on 2017/11/21

A post of some older Delphi stuff I did in the past just in case need it again.

David Heffernan found the documentation for this: [WayBackStructured Types (Delphi): Dynamic Arrays – RAD Studio

Since I needed a dynamic array structure supporting a non-zero lower bound, I was glad he also provided an answer with a data structure that does provide a non-zero lower bound.

For my own reference I’ve put his answers and questions below (as it’s way easier to search my blog than the complete internet) and my own implementation:

Read the rest of this entry »

Posted in Delphi, Development, History, Software Development | 10 Comments »

Google Maps gets a new look

Posted by jpluimers on 2017/11/20

[WayBack] Google Maps gets a new look:

Via: [WayBack] New looks! – Roderick Gadellaa – Google+

–jeroen

Read the rest of this entry »

Posted in Google, GoogleMaps, Power User | Leave a Comment »

Excellent blog post from Jessica on how to setup the best Linux on Windows environment! @jldeen – via @shanselman

Posted by jpluimers on 2017/11/20

Via [WayBackScott Hanselman @shanselman: Excellent blog post from Jessica on how to setup the best Linux on Windows environment! @jldeen:

[WayBack] Badass Terminal: FCU WSL Edition (oh-my-zsh, powerlevel9k, tmux, and more!)

It’s that time again! The time to write another epic blog post, this time for WSL, also known as Windows Subsystem for Linux.

It requires Windows 10 Version 1709 (Fall_Creators_Update) which has build number 10.0.16299.

–jeroen

Read the rest of this entry »

Posted in *nix, Linux, Power User, Windows, Windows 10, WSL Windows Subsystem for Linux | Leave a Comment »

Applefritter | Applefritter

Posted by jpluimers on 2017/11/20

History: Applefritter | Applefritter

Posted in 6502, Apple I, History | Leave a Comment »