summaryrefslogtreecommitdiff
path: root/vdp.hpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-05-26 23:09:42 +0300
committerOxore <oxore@protonmail.com>2024-05-26 23:09:42 +0300
commit3d1c417e15eee5e58d6de50246b2ee297e57ac3d (patch)
tree2ff18c9e37e40a2a3f245f9b37ce322d5b89d449 /vdp.hpp
parent24ee8de914199faf944b2401fd78561f792be38c (diff)
Fix hang up when MODESET2_IE0 is disabledHEADmaster
Diffstat (limited to 'vdp.hpp')
-rw-r--r--vdp.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/vdp.hpp b/vdp.hpp
index 1b67625..f62345d 100644
--- a/vdp.hpp
+++ b/vdp.hpp
@@ -51,7 +51,12 @@ public:
constexpr VDP(const uint32_t base_address_a): base_address(base_address_a) {}
uint32_t Read(uint32_t offset, enum bitness);
void Write(uint32_t offset, enum bitness, uint32_t value);
- bool Scanline(); // Returns true if display disabled or vblank happened
+ /** Renders a horizontal line (scan line).
+ *
+ * Returns true if display disabled or VBLANK could've had happened, even if
+ * VBLANK is disabled (MODESET2_IE0 is 0).
+ * */
+ bool Scanline();
void Reset();
constexpr const uint32_t* GetRenderedBuffer() const { return _rendered_buffer; }
static const char* RegIDToString(RegID);