.INCDIR "../../../include/megadrive"
.INCLUDE "../../../memorymaps/md68k.i"
.INCLUDE "68k.inc"
.INCLUDE "macros.inc"

.ROMBANKMAP
  BANKSTOTAL 2
  BANKSIZE $4000
  BANKS 2
.ENDRO

.EMPTYFILL $00

.MDVECTORS
  RESET _md_start
  DEFAULT _md_default_irq
  VBLANK VBlankInt
.ENDMDVECTORS

.SMDHEADER
  SYSTEMTYPE "SEGA MEGA DRIVE "
  COPYRIGHT "(C)WLA DX 2026"
  TITLEDOMESTIC "WLA DX MEGA DRIVE ROM TEST"
  TITLEOVERSEAS "WLA DX GENESIS ROM TEST"
  SERIALNUMBER "GM 00000000-00"
  DEVICESUPPORT "J"
  ROMADDRESSRANGE $000000,$007FFF
  REGIONSUPPORT "JUE"
.ENDSMD

.BANK 0 SLOT 0
.ORGA $0200
.INCLUDE "crt0.s"

main:
  MD_ENABLE_INTERRUPTS
MainLoop:
  bra MainLoop

VBlankInt:
  rte

.BANK 1 SLOT 0
.ORG $0000
HelloData:
  .db "HELLO MD"