Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2019-10-03 18:05:34

maxbit89
New member
Registered: 2019-10-03
Posts: 3

Implementing LinkCable to Emulator

Hy i just found this forum and hope some one can help me fix my LinkCable issue.

I added a linkcable emulator to a gameboy emulator: https://github.com/maxbit89/GBEmulator

The link cable is implemented in https://github.com/maxbit89/GBEmulator/ … ial2sock.c

The main thing is i don't shift SB(0xff01) i just swap it and when the transfer is done i clear the  SC flags (0xff02) and trigger the Serial interrupt 0x58. (Technically i think it should be equal to shift and trigger)

I used the comm.c example from gbdev. (https://github.com/maxbit89/GBEmulator/ … nkcable.gb)
The Example works fine. But when i start Tetris with my implementation the game menue works fine (Selections are shown in both instances) But when the game is started the game freezes and is hang up in a loop.

Can some one help me get this fixed?

Last edited by maxbit89 (2019-10-03 18:06:13)

Offline

 

#2 2019-10-04 12:11:53

maxbit89
New member
Registered: 2019-10-03
Posts: 3

Re: Implementing LinkCable to Emulator

The emulator can be started to test like this:

GBemulator instance 1:
./GBemulator Tetris.gb -l 8008

GBemulator instance 2:
./GBemulator Tetris.gb -c 127.0.0.1 8008

The Current source isn't compiling in Windows(MinGW) because i didn't implement winsock.

Last edited by maxbit89 (2019-10-04 12:23:47)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson