Previous Thread
Next Thread
Print Thread
Page 5 of 5 1 2 3 4 5
Joined: Feb 2014
Posts: 1,225
Likes: 224
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,225
Likes: 224
Okay, finally got the leds working right.

One of the problems is that the updates to the individual bits on the centronics port come in as individual bits, so you have to call an update function for each of the bits.
This update function will only get called when the bit changes, not when it gets written.

Code
virtual void input_data4(int state) override { if (state) m_row |= 0x01; else m_row &= ~0x01; m_259->write_abcd(m_row, 1);update(); }
virtual void input_data5(int state) override { if (state) m_row |= 0x02; else m_row &= ~0x02; m_259->write_abcd(m_row, 1);update(); }
virtual void input_data6(int state) override { if (state) m_row |= 0x04; else m_row &= ~0x04; m_259->write_abcd(m_row, 1);update(); } 

cg3dos will sweep the board from right to left and highlights any pieces out of place and the location where it should be.

This is what it looks like for the start of a new game and I've scrambled the board so it doesn't match to make the leds go active.

The sweep has just started at the right:




[Linked Image from i.imgur.com]


and continues across all the way to the left

[Linked Image from i.imgur.com]

Joined: Feb 2014
Posts: 1,225
Likes: 224
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,225
Likes: 224
if you want to look at the autoboard:

https://github.com/goldnchild/mame/tree/autoboard

I haven't won a game yet against cg3dos, (or any other machine for that matter haha)

Joined: Oct 2020
Posts: 44
Likes: 12
Member
Member
Joined: Oct 2020
Posts: 44
Likes: 12
Just magically change some of your pawns into queens in the debugger and presto wink

1 member likes this: Golden Child
Joined: Feb 2004
Posts: 2,641
Likes: 351
Very Senior Member
Very Senior Member
Joined: Feb 2004
Posts: 2,641
Likes: 351
Originally Posted by Golden Child
I haven't won a game yet against cg3dos, (or any other machine for that matter haha)

Don't worry, you’re probably doing better than ChatGPT. It got its arse handed to it by Atari 2600 chess: https://www.tomshardware.com/tech-i...s-newest-model-bamboozled-by-1970s-logic

2 members like this: u-man, robcfg
Joined: Feb 2014
Posts: 1,225
Likes: 224
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,225
Likes: 224
Discovered that rebel checks the auto chessboard a bit differently, rebel 12 for DOS just crashes with a GPF when you enable the autoboard.

Rebel 6, and rebel 10 don't have support.

I was able to get rebel 7 and rebel 8 to work, it has an interesting feature. When you reset the board, the software recognizes that and starts a new game.

Joined: Jul 2015
Posts: 117
Senior Member
Senior Member
Joined: Jul 2015
Posts: 117
Originally Posted by Vas Crabb
Originally Posted by Golden Child
I haven't won a game yet against cg3dos, (or any other machine for that matter haha)

Don't worry, you’re probably doing better than ChatGPT. It got its arse handed to it by Atari 2600 chess: https://www.tomshardware.com/tech-i...s-newest-model-bamboozled-by-1970s-logic
What a great story smile Made my day.


I live... I die... I live again.
Joined: Mar 2001
Posts: 17,294
Likes: 272
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,294
Likes: 272
6502 is undefeated :-)

Joined: Jan 2021
Posts: 198
Likes: 10
=
Senior Member
Senior Member
= Offline
Joined: Jan 2021
Posts: 198
Likes: 10
ChatGPT generally cheats in chess (websearch it). It is just an imposter bot that can perfectly synthesize plausible sounding text from statistics, but in most cases knows nothing about the deeper meaning. AFAIK it could not even do math correctly but only pretends to reckon. I wonder if some issues nowadays have been fixed by starting other algorithms for certain skills (much like a human has learned to use a pocket calculator when he knows he is bad in mental calculation). Apparently with chess this is yet not the case.

Never the less, I loose against Atari 2600 chess too. Chess is just not my cup of pee.

Last edited by =CO=Windler; 06/21/25 09:52 PM.

MAY THE SOFTWARE BE WITH YOU!

{weltenschule.de}
Joined: Feb 2014
Posts: 1,225
Likes: 224
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,225
Likes: 224
I think the expression you're looking for is "cup of tea" 8-)


For fun, play robotadv with emotions on. It's a button on the panel. The Robot Adversary really rubs it in when it has the advantage.

Joined: Feb 2014
Posts: 1,225
Likes: 224
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,225
Likes: 224
Since the Alphacom VP42 printer uses the same Olivetti PU-1840 mechanism, I thought I'd see if I could get that to do something:


(I've overwritten the default 8 character with something else using the debugger)


[Linked Image from i.imgur.com]


Writing a little basic program to display the character set:

[Linked Image from i.imgur.com]



Basic256 program:

Code
dim a(16384)

graphsize 800,1600
clg
openb "alphacom_vp42_vic42_dump.bin"
xpos = 0
ypos = 0
off=0
for j = 0 to 2047
b = readbyte
a[j+2048]=b
if xpos = 0 then text xpos,ypos - 3,tohex(j)
for i = 0 to 7
  if b & (2^(7-i)) then plot xpos+60 , ypos + (i)
next i
if (j % 16)=0 then plot xpos+60, ypos + 10
if (j % 32)=0 then plot xpos+60, ypos + 12:plot xpos+60,ypos+11
if (j % 256)=0 then plot xpos+60, ypos + 13:plot xpos+60,ypos+14
xpos = xpos + 1
if xpos >= 512 then xpos = 0:ypos=ypos + 16:print j
next j

adr={ 0xa7b, 0xac1, 0xb60, 0xbff, 0xc9e, 0xd3d, 0xddc}
for i=0 to adr[?]-1
	print i,adr[i]
	if i>0 then print adr[i]-adr[i-1]
next i

xstart = 100
xpos=100
ypos=100

for c=0 to 159
for l=0 to 6
	if c>=70 and c<=159 and (l=0 or l=6) then call none() else call drawbyteh(a[adr[l]+c],xpos,ypos+l)
next l
xpos=xpos + 10
if xpos >= xstart + 10 * 16 then xpos = xstart : ypos=ypos+20
next c


subroutine none()
end subroutine

subroutine drawbyteh(b,x,y)
  for i=0 to 7
  if b & (2^(7-i)) then plot x+i,y
  next i
end subroutine


Last edited by Golden Child; 06/27/25 01:02 AM.
1 member likes this: robcfg
Page 5 of 5 1 2 3 4 5

Link Copied to Clipboard
Who's Online Now
3 members (AJR, Kale, 1 invisible), 232 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,381
Posts122,712
Members5,085
Most Online1,529
Jun 7th, 2025
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0