Loading ...
Sorry, an error occurred while loading the content.

14473Re: [cosmacelf] RE: Chess Program Bug

Expand Messages
  • Richard
    Oct 5 7:10 PM
      That's A Good Place, I Guess It Time To Start Documenting Bug Fixes
      you mentioned, a problem with the FF command, What was that one?
      ----- Original Message -----
      Sent: Saturday, October 05, 2013 8:45 PM
      Subject: [cosmacelf] RE: Chess Program Bug

      You're right. Only register E low byte is initialize to 0 at the start at address 0029. There should be a PHI RE with it too. I do see a quick fix though. Register D high byte is initialize to 0 at 0027. That register is used as a random number variable by increment it while waiting for the IN button to be depressed in the ACCEPT INPUT routine. So it doesn't need to be initialized. You can change the byte BD to BE at address 0027. That'd initialize E high byte to 0. I just tried it and it works.

      ---In cosmacelf@yahoogroups.com, <cosmacelf@yahoogroups.com> wrote:

      I ran across another bug,

      here's the situation,

      I was running my elfexe. stepping through program,

      got up to point for first move , entered 10 20, so I hit C (continue) after
      a spell its first move is 00 00.

      so i tried it in mike rileys emulator, works fine , with first move 63 43

      so i have been working on finding a bug in my exe.

      but that is not what i found, on my emulator all registers except 0 start
      out at FFFF.

      Register E High byte is used as a flag holder, and is not set up properly.
    • Show all 21 messages in this topic