Search found 28 matches

by emeb
Sun Jun 30, 2019 5:00 pm
Forum: Programmable Logic
Topic: Small 6502 systems on Lattice ice40
Replies: 24
Views: 7484

Re: Small 6502 systems on Lattice ice40

Hey all!

I've been quiet for a while but the Lattice iCE40 6502 project is still alive and growing. A few new things to report:

I've started a new GitHub repo which provides an 800x600 60Hz VGA output. Find it here:

https://github.com/emeb/up5k_vga

One of the side effects of the new video is ...
by emeb
Tue Jun 11, 2019 10:32 pm
Forum: General Discussions
Topic: Single file MS BASIC source?
Replies: 4
Views: 770

Re: Single file MS BASIC source?

...I tackled the load/save issue in my implementation by LISTing to a text file, then importing text as if it had been typed. Slightly slower than a binary memory dump, but effective... ehBasic does have hooks for load/save though, but I've not used them.

That's exactly how I do it too, but I ...
by emeb
Tue Jun 11, 2019 8:12 pm
Forum: General Discussions
Topic: Single file MS BASIC source?
Replies: 4
Views: 770

Re: Single file MS BASIC source?

Do you want MS Basic or is ehBasic (which is more or less MS Basic) good enough?

There are many ehBasics out there - the one I'm using has some 65C02 "updates" and is a single file in ca65 format. I can't take responsibility for the 65C02 tweaks though, that was our member: floobydust http://forum ...
by emeb
Mon Jun 10, 2019 11:51 pm
Forum: General Discussions
Topic: Single file MS BASIC source?
Replies: 4
Views: 770

Single file MS BASIC source?

I seem to recall someone had ca65-syntax source for MS 6502 BASIC in a single .s file somewhere, but searching only turns up the mist64 implementation that's spread out over many smaller files. Anyone have a link for the single-file version? I've seen Grant Searle's version too, but I thought there ...
by emeb
Mon Jun 10, 2019 11:38 pm
Forum: General Discussions
Topic: More BASIC ASCII Mandelbrots ...
Replies: 21
Views: 2546

Re: More BASIC ASCII Mandelbrots ...

Thanks for the Mandelbrot code. I modified it to generate a 100x75 16-color version on my FPGA-based 6502 system
mandel.jpg
by emeb
Fri May 31, 2019 10:22 pm
Forum: Programmable Logic
Topic: Small 6502 systems on Lattice ice40
Replies: 24
Views: 7484

Re: Small 6502 systems on Lattice ice40

Added a new feature to the PS/2 keyboard port: host to device communication is now supported which allows the caps lock LED on the keyboard to indicate the previously hidden internal caps lock state of the PS/2 keymap to ASCII decoder. Not a huge step forward, but it was a bit of a challenge and fun ...
by emeb
Mon May 27, 2019 11:35 pm
Forum: General Discussions
Topic: JLCPCB - slightly off topic.
Replies: 17
Views: 2512

Re: JLCPCB - slightly off topic.

My go-to PCB fab is OSHpark - they're super inexpensive for the tiny boards which I tend to do often and their shipping is basically free, but there's a breakpoint around $25-30 where they're not the best choice. I've used JLCPCB several times for some fairly simple (but larger) 2L designs that ...
by emeb
Thu May 16, 2019 11:26 pm
Forum: Programmable Logic
Topic: Small 6502 systems on Lattice ice40
Replies: 24
Views: 7484

Re: Small 6502 systems on Lattice ice40

Some new updates to the 6502 project:

* Expanded the BASIC LOAD & SAVE commands to use SPI flash
* Modified video RAM access as dmsc described above - RAM is clocked at 2x the CPU frequency and access is interleaved between video and CPU to simplify arbitration.
* Added NTSC color generation with a ...
by emeb
Fri Apr 26, 2019 1:35 am
Forum: Programming
Topic: Interfacing to MS BASIC
Replies: 8
Views: 1472

Re: Interfacing to MS BASIC

One of the annoying things about the OSI version of 6502 MS BASIC is that the backspace function used the underline character. I've studied the MS source and made a fairly simple patch to allow it to use the actual backspace (Control-H) character. Since I load the code from flash at boot time and ...
by emeb
Wed Apr 17, 2019 7:04 pm
Forum: Programming
Topic: Interfacing to MS BASIC
Replies: 8
Views: 1472

Re: Interfacing to MS BASIC

My MS BASIC interfaces are up on the github repo now:

https://github.com/emeb/up5k_basic/blob ... 65/basic.s

This includes the modified LIST function, as well as the LOAD/SAVE routines which interface to SPI Flash.
by emeb
Tue Apr 16, 2019 7:12 pm
Forum: Programming
Topic: Interfacing to MS BASIC
Replies: 8
Views: 1472

Re: Interfacing to MS BASIC

ROFL - of course it has. Nice of them to put it up on github too.

Interesting thing is that this appears to have been converted many years before the M6502.MAC source file was widely available and a lot of the labels etc are different. That suggests someone did this by reverse engineering the ROMs ...
by emeb
Tue Apr 16, 2019 3:28 pm
Forum: Programming
Topic: Interfacing to MS BASIC
Replies: 8
Views: 1472

Re: Interfacing to MS BASIC

I've not tried what you're doing, but be content in the knowledge that what you're doing has already been done, tried and tested and used for a long time by ... Apple. So you're doing the right/best thing by all accounts...

OK, thanks for the insight - nice to know I'm not totally out to lunch ...
by emeb
Tue Apr 16, 2019 6:49 am
Forum: Programming
Topic: Interfacing to MS BASIC
Replies: 8
Views: 1472

Interfacing to MS BASIC

I'm building a home-brew system based on the OSI Superboard II that I started with long ago (HW details in this thread: http://forum.6502.org/viewtopic.php?f=10&t=5559 ) and one of the things I'd like to improve is the process of saving and loading programs. The original OSI approach was that SAVE ...
by emeb
Sun Apr 14, 2019 10:04 pm
Forum: Programmable Logic
Topic: Small 6502 systems on Lattice ice40
Replies: 24
Views: 7484

Re: Small 6502 systems on Lattice ice40

Latest updates:

* Removed 8kB BASIC ROM.
* added 20kB RAM in range 8000-CFFF
* added write protect option to RAM on 4kB boundaries
* Boot ROM now loads 8kB BASIC from SPI flash into protected RAM at address range A000-BFFF
* added 4-voice sound generator with 0-32kHz range, choice of waveform (saw ...
by emeb
Fri Apr 05, 2019 9:51 pm
Forum: Programmable Logic
Topic: Small 6502 systems on Lattice ice40
Replies: 24
Views: 7484

Re: Small 6502 systems on Lattice ice40

Comparing with my own project at https://github.com/dmsc/my6502 , you implemented a few thinks differently:
Yes - I started with a system architecture that was based strongly on the old OSI Superboard.
- You have the video RAM separated from CPU RAM and access through the video module, I have ...