projects
/
wenboi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef9aa8
)
Constructor en GBVideo
author
slack
<slack@Blackbird.(none)>
Tue, 10 Jun 2008 21:57:20 +0000
(23:57 +0200)
committer
slack
<slack@Blackbird.(none)>
Tue, 10 Jun 2008 21:57:20 +0000
(23:57 +0200)
GBVideo.h
patch
|
blob
|
history
gbcore.h
patch
|
blob
|
history
diff --git
a/GBVideo.h
b/GBVideo.h
index 8f0df09a7bbf8797212fecef3c0a3beab72767f7..4b32b856c828fb873b81c4db1e474758e681cc7a 100644
(file)
--- a/
GBVideo.h
+++ b/
GBVideo.h
@@
-2,10
+2,14
@@
class GBVideo
{
+ GameBoy *core;
+
u8 VRAM[8192];
u8 OAM[];
public:
+ GBVideo(GameBoy *core):core(core) {}
+
u8 read_VRAM (int addr) const;
u8 read_OAM (int addr) const;
void write_VRAM(int addr, u8 value);
diff --git
a/gbcore.h
b/gbcore.h
index 3ee274a3e8d4fc33b70c4d75c6af13e079eff06d..7012648f51675d2b364cd89ad5433ebf3b98051c 100644
(file)
--- a/
gbcore.h
+++ b/
gbcore.h
@@
-29,6
+29,7
@@
class GameBoy
friend class GBMemory;
+ friend class GBVideo;
GBMemory memory;
GBVideo video;
GBRom *rom;