6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 11:43 am

All times are UTC




Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Thu Jul 11, 2019 9:55 am 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Testing has progressed. We can run Microchess now. Video: https://youtu.be/KBdDg5JfVs8

Attachment:
Screenshot 2019-07-11 at 17.06.35.png
Screenshot 2019-07-11 at 17.06.35.png [ 844.87 KiB | Viewed 1923 times ]

Changes are:
  • It runs in full
  • On true TTL :-)
  • Without VGA timing errors

It runs in "Super Blitz" mode to make it bearable. In the video you can see me change the VGA mode twice to speed up the program more.

[Edit: Updated the video url to show captions]


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 13, 2019 2:14 pm 
Offline

Joined: Sat Jul 06, 2019 8:20 am
Posts: 9
Well Done Marcel,

Microchess in under 1000 bytes of code - executed by under 1000 TTL logic gates.


regards


Ken


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 14, 2019 5:16 pm 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Thanks, and under 1000 Elo?

A month ago this was little more than just a nagging idea. Testing will continue the next weeks by hopping from application to application. VTL02, Apple1 BASIC and MS BASIC are still in the queue. I figure that even the larger programs can fit in the small 32K system by toying with the video memory a bit.

The impressive thing about the 476-byte Baum-Wozniak disassembler isn't just its size: it's that it seems to be secretly designed for 26 character wide displays. Now that's quite a foresight by these gentlemen!

Attachment:
BaumWozOnTTL.png
BaumWozOnTTL.png [ 108.78 KiB | Viewed 1844 times ]


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 27, 2019 4:26 pm 
Offline

Joined: Sat Jul 06, 2019 8:20 am
Posts: 9
Hi All,

Marcel has shared his draft v4 ROM with me, so I can now run WozMon and the 6502 Disassembler on the Gigatron which is emulating a 6502 at about 1/8th of 1MHz speed.

It's 35 years since I did any 6502 assembly language - at that time on a Rockwell AIM-65 at Bangor University.

I guess I'll just have to forget all those Z80 mnemonics I learnt as a teenager and learn a whole new alien language ;)

With the Gigatron executing 6502 code - that opens up a whole new opportunity to run code - including VTL02, ehBASIC, FIG Forth, Sweet-16 and all those other 6502 goodies.

The Gigatron has come a very long way in these last 2 years - from a BMOW and TTL chips on multiple breadboards - to a fully fledged system with over 500 kits sold.

The recent expansion board allows SPI communications, and forum member xopr (Martijn) has an Arduino working as an SPI slave makes a useful peripheral processor.

https://forum.gigatron.io/viewtopic.php?f=4&p=821#p821

If you are in the UK I will be presenting Gigatron to the OSHcamp in Hebden Bridge over the weekend of 31st August, 1st September - and the following weekend with Marcel, in Cambridge at the RetroComputing Festival at the Cambridge Centre for Computing History on 7/8 September.


regards


Ken


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 07, 2019 7:54 am 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Next stage of testing v6502: Micro-Soft BASIC!
Attachment:
Screenshot 2019-10-07 at 09.43.33.png
Screenshot 2019-10-07 at 09.43.33.png [ 76.41 KiB | Viewed 1629 times ]

Not quite there yet as it goes awry after the memory check. But at least we squeezed in all of the 8.3KB binary without compromising too much on screen space. We should have 3584 BASIC bytes free on the stock 32K system.


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 10, 2019 5:59 pm 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Progress


Attachments:
FP.png
FP.png [ 70.34 KiB | Viewed 1579 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 10, 2019 6:09 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Very good! 1/81 is a nice number too.


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 11, 2019 9:47 am 
Offline

Joined: Sat Jul 06, 2019 8:20 am
Posts: 9
Well Done Marcel,

Speaking of nice numbers - there is always 355/113

Have a great weekend at VCF Berlin


Ken


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 16, 2019 8:05 pm 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Thanks! Apart from Ctrl-C not yet working, it's otherwise stable. With 3583 bytes free it has the same free memory as the VIC-20. This is really a coincidence. The version we have running is an early one for the Commodore PET.

Although the system can interpret 6502 code, there still was work to do: code, buffers, zero page variables and stack needed relocation. But that wasn't the biggest hurdle as Michael Steil's excellent set of reconstructed assembly sources made that relatively painless. The main problem was to create a sufficiently large continuous memory space. Although the Gigatron has 32K of RAM, 19KB of that is used for screen memory and the remainder is heavily fragmented. For example, by default the largest continuous block we have is just 512 bytes. BASIC itself needs 8KB, plus we need some K's for user program and variables. Ouch...

The first win is to disable the sound channels 2 through 4. That creates a continuous block from $200 to $800. For this trick you need ROM v4.

The next step is to compress the video memory. Our resolution is already nothing, but we can always lower it even more! Of the 120 visible pixel lines, every 8th is always empty. At least, as long as we only use capitals, and for a mid-1970s BASIC that's perfectly acceptable. The empty pixel lines can then be shared for all rows of text. That saves 14*256 = 3585 bytes already.

The last trick is to increase the spacing between text lines from 1 to 4. This reduces the text lines from 15 to 11, but yields 4 * 7 * 256 =7,168 bytes.

Of course we then went overboard and added a flashing cursor, we made sure that the WAIT 6502 Easter Egg works, and that there is a π-symbol. The Gigatron doesn't have that in its font, but it does have T and U.... And... the font is stored without horizontal spacing, so there's our glyph:

Code:
  R         S         T   pi    U
  v         v         v   v     v
  x x x x . . x x x . x x # # # # . . . x
  x . . . x x . . . . . . # . . # . . . x
  x . . . x x . . . . . . # . . # . . . x
  x x x x . . x x x . . . # . . # . . . x
  x . x . . . . . . x . . # . . # . . . x
  x . . x . . . . . x . . # . . # . . . x
  x . . . x x x x x . . . # . . . # x x .
  0 1 2 3 4 5 6 7 8 9 a b c d e f 1 1 1 1
  ^                               0 1 2 3
  font82up


Good enough for me:

Attachment:
Screenshot 2019-10-16 at 21.28.41.png
Screenshot 2019-10-16 at 21.28.41.png [ 33.44 KiB | Viewed 1501 times ]


Last edited by mvk on Fri Oct 18, 2019 8:06 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 16, 2019 8:48 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
That has to be the best derivation of Pi ever!


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 19, 2019 2:22 pm 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
TIME$ is now also working:

Attachment:
TI$.png
TI$.png [ 135.73 KiB | Viewed 1446 times ]


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 19, 2019 7:51 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Aha! Now you can run benchmarks! (Calculating digits of pi, for example)


Top
 Profile  
Reply with quote  
PostPosted: Sun Oct 20, 2019 9:35 am 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Be my guest, it runs ok in the online emulator :-). Binary MSBASIC.gt1 is attached to this post. For benchmarking you should change the screen mode to the dimmest/fasted with the [Select] button.


Top
 Profile  
Reply with quote  
PostPosted: Sun Oct 20, 2019 1:31 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Aha, right: https://gigatron.io/emu/


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 22, 2019 12:57 pm 
Offline
User avatar

Joined: Tue Mar 21, 2017 6:57 pm
Posts: 81
Any result yet? I hope it's not that slow :-)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: