Post Reply 
HP41: Updated RUBIK's / CHESS modules
12-28-2017, 12:24 PM
Post: #19
RE: HP41: Updated RUBIK's / CHESS modules
(12-28-2017 07:46 AM)Ángel Martin Wrote:  Here's a quick & dirty SHOW routine to view the board configuration at any given time. The main issue is that you cannot really use it during the game because it overwrites R00 and the stack; so it's of limited interest.

The routine lists all the 64 board squares in algebraic notation, adding the piece name and the color if a piece is there, or "EMPTY" otherwise. The color depends on whether HP plays white or black, as determined by flag 04.

Code:
1    LBL "SHOW"
2    21,084
3    STO 00
4    LBL 10
5    XEQ 00
6    ISG 00
7    GTO 10
8    RTN
......

It looks like you are XEQ'ing some internal routine in the chess module ?( 21,084).

What does that routine do ?

Is it the code at 651D ?
(I used the V41 edit /info command on the chess module, routine 21 shows 651D)

Mike

p.s. Do you have commented source for the chess module .. that you'd like to share ? Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP41: Updated RUBIK's / CHESS modules - mstram - 12-28-2017 12:24 PM



User(s) browsing this thread: 6 Guest(s)