hoglet67 / AtomBusMon

This project is an open-source In-Circuit Emulator for the 6502, 65C02, Z80, 6809 and 6809E 8-bit processors. See:
https://github.com/hoglet67/AtomBusMon/wiki
GNU General Public License v3.0
103 stars 21 forks source link

Fill command, fill in one byte more than necessary #5

Closed xolod79 closed 5 years ago

xolod79 commented 5 years ago

Fill command, fill in one byte more than necessary On Z80

fill 4000 40ff ff but 4100 filling too

hoglet67 commented 5 years ago

I've just checked the code, and I can't see the error:

void doCmdFill(char *params) {
  long i;
  unsigned int start;
  unsigned int end;
  unsigned int data;
  sscanf(params, "%x %x %x", &start, &end, &data);
  log0("Wr: %04X to %04X = %02X\n", start, end, data);
  loadData(data);
  loadAddr(start);
  for (i = start; i <= end; i++) {
    writeMemByteInc();
  }
}

Can you attach a log the demonstrates this happening please?

xolod79 commented 5 years ago

unsigned int data; Maybe the data should be a byte and not 16bit word?

hoglet67 commented 5 years ago

Please can you attach a log, and I'll look into this.

xolod79 commented 5 years ago

It seems that the problems with my Godil50 board, I solder it by swapping the connectors up and was sloppy. Installed it in the ZX-Spectrum (Pentagon 128), partially launches but hangs. launched a memory test. test 8000 ffff produces a lot of errors with some sort of bit address relationship. capture.zip

xolod79 commented 5 years ago

iI apologize. The problem was in the zx-spectrum board (Pentagon 128). I plan to put the buffer(74ALS245) on the data bus. I think it should work with him.

hoglet67 commented 5 years ago

Thanks for letting me know.