6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Sep 29, 2024 7:26 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Jun 12, 2018 12:49 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10940
Location: England
On the cover of the classic Advanced User Guide (for the BBC Micro) by Bray, Dickens, and Holmes, we find this:

Image

Or, in letters:
Code:
BCC
PLP
LDY

You'll notice 6 mnemonics interleaved. Are there more ways to do this? Many more, or just one or two? Is it easy to find them? Fancy writing a program to find them all??

Here's a bit of whitespace, just in case there are spoilers below.

.
..
.
...
.
..
.
....
.
..
.
...
.
..
.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 1:14 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Challenge accepted. I'll be back.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 2:03 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
BitWise wrote:
Challenge accepted. I'll be back.


There are more than you'd expect. Results in the two trace files (in the zip) for the 6502 and 65C02.


Attachments:
square.zip [643.96 KiB]
Downloaded 180 times

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Last edited by BitWise on Tue Jun 12, 2018 2:10 pm, edited 1 time in total.
Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 2:08 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10940
Location: England
That was quick! Well done! And not so very many - but enough to be interesting - with 6 distinct opcodes.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 2:31 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
BigEd wrote:
That was quick! Well done! And not so very many - but enough to be interesting - with 6 distinct opcodes.

Its a quiet day in the code mine.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 2:49 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10940
Location: England
Now I'm imagining you chiselling code onto stone tablets...


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 3:33 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
BigEd wrote:
Now I'm imagining you chiselling code onto stone tablets...

Some days it feels like that.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 12, 2018 4:41 pm 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 325
If we insist on six different instructions and ignore transposition, there are only two solutions. The second isn't hard to find, given the first.

Respect to whoever came up with that design.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 19 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: