From cff8aec3a717fb5302cb595feae4dea7d42e4ca4 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 31 Aug 2022 22:39:52 +0200 Subject: [PATCH] mobile/mobile_45.asm -> lib/mobile/mail.asm This file is part of the official mobile adapter SDK, although unlike lib/mobile/main.asm, this file was included as source code the developers could modify. --- Makefile | 3 ++- layout.link | 1 + mobile/mobile_45.asm => lib/mobile/mail.asm | 15 +++++++++++---- main.asm | 1 - 4 files changed, 14 insertions(+), 6 deletions(-) rename mobile/mobile_45.asm => lib/mobile/mail.asm (99%) diff --git a/Makefile b/Makefile index c82215e47..387c2cca1 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,8 @@ rom_obj := \ gfx/pics.o \ gfx/sprites.o \ gfx/tilesets.o \ - lib/mobile/main.o + lib/mobile/main.o \ + lib/mobile/mail.o pokecrystal_obj := $(rom_obj:.o=.o) pokecrystal11_obj := $(rom_obj:.o=11.o) diff --git a/layout.link b/layout.link index 763788d5f..bf98d1fb4 100644 --- a/layout.link +++ b/layout.link @@ -185,6 +185,7 @@ ROMX $43 ROMX $44 "Mobile Adapter SDK" ROMX $45 + "Mobile Adapter SDK Mail" "mobile45" ROMX $46 "mobile46" diff --git a/mobile/mobile_45.asm b/lib/mobile/mail.asm similarity index 99% rename from mobile/mobile_45.asm rename to lib/mobile/mail.asm index 2694a50b2..e67916b33 100644 --- a/mobile/mobile_45.asm +++ b/lib/mobile/mail.asm @@ -1,5 +1,14 @@ -pushc -setcharmap ascii +; A library included as part of the Mobile Adapter GB SDK. + +INCLUDE "macros/code.asm" +INCLUDE "macros/const.asm" +INCLUDE "macros/gfx.asm" +INCLUDE "constants/gfx_constants.asm" +INCLUDE "constants/hardware_constants.asm" +INCLUDE "constants/mobile_constants.asm" +INCLUDE "constants/text_constants.asm" + +SECTION "Mobile Adapter SDK Mail", ROMX String_114000: db "---", 0 @@ -5154,5 +5163,3 @@ Function115d80: ld d, $a0 ld e, $0 ret - -popc diff --git a/main.asm b/main.asm index 4a7ec6bc7..f9e0a79ff 100644 --- a/main.asm +++ b/main.asm @@ -518,7 +518,6 @@ INCLUDE "engine/movie/title.asm" SECTION "mobile45", ROMX -INCLUDE "mobile/mobile_45.asm" INCLUDE "mobile/mobile_45_sprite_engine.asm" INCLUDE "mobile/mobile_45_2.asm" INCLUDE "mobile/mobile_45_stadium.asm"