• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision65ba2046bcc3eb36af707c5cacff3d4f21e533ec (tree)
Zeit2019-04-12 04:08:30
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][UPD7220] .

Ändern Zusammenfassung

Diff

--- a/source/src/vm/upd7220.cpp
+++ b/source/src/vm/upd7220.cpp
@@ -654,6 +654,7 @@ uint32_t UPD7220::read_io8(uint32_t addr)
654654 val |= vsync ? STAT_VSYNC : 0;
655655 //val |= (cmd_fifo->empty()) ? STAT_EMPTY : 0;
656656 val |= STAT_EMPTY;
657+ //val |= ((cmd_ready) ? STAT_EMPTY : 0);
657658 val |= (cmd_fifo->full()) ? STAT_FULL : 0;
658659 val |= (!(fo->empty())) ? STAT_DRDY : 0;
659660 // clear busy stat
--- a/source/src/vm/upd7220.h
+++ b/source/src/vm/upd7220.h
@@ -314,7 +314,7 @@ inline void UPD7220::finish_pset()
314314 {
315315 if(!first_load) {
316316 write_vram(before_addr, cache_val);
317- wrote_bytes++;
317+ //wrote_bytes++;
318318 }
319319 first_load = true;
320320 before_addr = 0xffffffff;
@@ -342,7 +342,7 @@ inline bool UPD7220::draw_pset_diff(int x, int y)
342342 if((first_load) || (addr != before_addr)) {
343343 if(!(first_load)) {
344344 write_vram(before_addr, cache_val);
345- wrote_bytes++;
345+ //wrote_bytes++;
346346 }
347347 cache_val = read_vram(addr);
348348 } else if((x < 0) || (y < 0) || (x >= (width << 3)) || (y >= height)) {
@@ -358,6 +358,7 @@ inline bool UPD7220::draw_pset_diff(int x, int y)
358358 bit = 1 << (x & 7);
359359 }
360360 uint8_t cur = cache_val;
361+ wrote_bytes++; // OK?
361362
362363 switch(mod) {
363364 case 0: // replace
Show on old repository browser