Skip to content

Commit 5f5970c

Browse files
authored
Fix build warning (#10)
1 parent c551ca4 commit 5f5970c

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

third_party/mos6502_patch/mos6502.patch

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ index 747786c..a5e5103 100644
417417
}
418418

419419
diff --git a/mos6502.h b/mos6502.h
420-
index 8229cc7..0989b7f 100644
420+
index 8229cc7..fe5abb0 100644
421421
--- a/mos6502.h
422422
+++ b/mos6502.h
423423
@@ -5,9 +5,11 @@
@@ -441,7 +441,7 @@ index 8229cc7..0989b7f 100644
441441
// register reset values
442442
uint8_t reset_A = 0x00;
443443
uint8_t reset_X = 0x00;
444-
@@ -172,22 +174,24 @@ private:
444+
@@ -172,22 +174,18 @@ private:
445445
static const uint16_t nmiVectorH = 0xFFFB;
446446
static const uint16_t nmiVectorL = 0xFFFA;
447447

@@ -450,18 +450,15 @@ index 8229cc7..0989b7f 100644
450450
- typedef uint8_t (*BusRead)(uint16_t);
451451
- BusRead Read;
452452
- BusWrite Write;
453-
+ // // read/write callbacks
454-
+ // typedef void (*BusWrite)(uint16_t, uint8_t);
455-
+ // typedef uint8_t (*BusRead)(uint16_t);
456-
+ // BusRead Read;
457-
+ // BusWrite Write;
458-
453+
-
459454
// stack operations
460-
inline void StackPush(uint8_t byte);
461-
inline uint8_t StackPop();
462-
463-
+ i_memory_access *memory_access;
455+
- inline void StackPush(uint8_t byte);
456+
- inline uint8_t StackPop();
457+
+ void StackPush(uint8_t byte);
458+
+ uint8_t StackPop();
464459
+
460+
+ i_memory_access *memory_access;
461+
465462
public:
466463
enum CycleMethod {
467464
INST_COUNT,

0 commit comments

Comments
 (0)