summaryrefslogtreecommitdiff
path: root/engine/routines/printhoursmins.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2018-03-14 13:28:36 +0100
committermid-kid <esteve.varela@gmail.com>2018-03-14 13:28:36 +0100
commit97c511cd2f271252cbc9e9746668081422231ca5 (patch)
tree35ef1cb72e871ef34e2b0011e514edae2b9cbcb7 /engine/routines/printhoursmins.asm
parentbaa0dc5a963a79843b37888bcfe1d2dfe833ade9 (diff)
Organize the engine/ directory, take 2
Renamed `game` to `games` and `menu` to `menus`. Moved some functions from `engine/routines/` to their fitting subdirectories. Made two new subdirectories: * engine/rtc: Contains all RTC-related things. Menus, hardware, misc functions. * engine/items: Contains all item-related things. Pack, item effects, other item handlers.
Diffstat (limited to 'engine/routines/printhoursmins.asm')
-rw-r--r--engine/routines/printhoursmins.asm63
1 files changed, 0 insertions, 63 deletions
diff --git a/engine/routines/printhoursmins.asm b/engine/routines/printhoursmins.asm
deleted file mode 100644
index eb7dc1619..000000000
--- a/engine/routines/printhoursmins.asm
+++ /dev/null
@@ -1,63 +0,0 @@
-Unreferenced_Function1dd6a9: ; 1dd6a9
- ld a, b
- ld b, c
- ld c, a
- push bc
- push de
- ld hl, sp+$2
- ld d, h
- ld e, l
- pop hl
- lb bc, PRINTNUM_LEADINGZEROS | 2, 5
- call PrintNum
- pop bc
- ret
-
-PrintHoursMins: ; 1dd6bb (77:56bb)
-; Hours in b, minutes in c
- ld a, b
- cp 12
- push af
- jr c, .AM
- jr z, .PM
- sub 12
- jr .PM
-.AM:
- or a
- jr nz, .PM
- ld a, 12
-.PM:
- ld b, a
-; Crazy stuff happening with the stack
- push bc
- ld hl, sp+$1
- push de
- push hl
- pop de
- pop hl
- ld [hl], " "
- lb bc, 1, 2
- call PrintNum
- ld [hl], ":"
- inc hl
- ld d, h
- ld e, l
- ld hl, sp+$0
- push de
- push hl
- pop de
- pop hl
- lb bc, PRINTNUM_LEADINGZEROS | 1, 2
- call PrintNum
- pop bc
- ld de, String_AM
- pop af
- jr c, .place_am_pm
- ld de, String_PM
-.place_am_pm
- inc hl
- call PlaceString
- ret
-
-String_AM: db "AM@" ; 1dd6fc
-String_PM: db "PM@" ; 1dd6ff