.INCDIR "../../../include/megadrive"
.INCLUDE "../../../memorymaps/md68keeprom.i"
.INCLUDE "eeprom.inc"

.ROMBANKMAP
  BANKSTOTAL 1
  BANKSIZE $4000
  BANKS 1
.ENDRO

.EMPTYFILL $00

.SMDHEADER
  SYSTEMTYPE "SEGA MEGA DRIVE "
  DEVICESUPPORT "J"
  ROMADDRESSRANGE $000000,$003FFF
  EXTRAMEMORY "EE",$00,$20,$200000,$200001
  REGIONSUPPORT "JUE"
.ENDSMD

.BANK 0 SLOT 0
.ORGA $0200
Start:
  MD_EEPROM_START $200000, 0, 1
  MD_EEPROM_STOP $200000, 0, 1
  MD_EEPROM_READ_WORD $200000, "d0"
  rts