it's been a while since my last post.
I have updated my circuit a little bit, but it's still not working as I want it to.
I added a little picture to show you my current circuit. All 16 address lines of the GameBoy are tied together in groups of 8 to two NANDS. The outputs of the NANDS are connected to a NOR.
So basically, if all address lines (A0 - A15) are on VCC (which should happen if I read 0xFFFF), there should be a logical 1 at the output of the NOR.
In the other picture you see the output of the NOR on a oscilloscope while reading OxFFFF in a infinite loop. I put some red circles around the peaks (where it is on VCC).
The problem now is: If I change my program so that it reads e.g. 0x0000 NOTHING changes. The output on the oscilloscope remains exactly the same. So that means, my program for reading the address is not correct.
Code: Select all
#include <gb/gb.h>
#include <stdio.h>
#include <stdlib.h>
void main()
{
int *adresse;
int value;
for(;;)
{
*address = 0x0000;
value= *address;
}
}
Many thanks in advance.