diff options
author | mid-kid <esteve.varela@gmail.com> | 2018-04-04 22:26:07 +0200 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2018-04-04 22:26:07 +0200 |
commit | d3cc861d334c8b773c1b6c662ed9924c43cef009 (patch) | |
tree | 0e8df3581a081f77167785502c093fbfc5535d73 /engine/overworld/load_map_part.asm | |
parent | 81fff9bb80af3db0ee381c824261b8963e1cc221 (diff) |
Fix snake_case filenames
Renamed a bunch of files, most of them one-off functions, to better fit
the general snake_case naming scheme. Also renamed some awfully long filenames.
Diffstat (limited to 'engine/overworld/load_map_part.asm')
-rw-r--r-- | engine/overworld/load_map_part.asm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/engine/overworld/load_map_part.asm b/engine/overworld/load_map_part.asm new file mode 100644 index 000000000..2184ebf7e --- /dev/null +++ b/engine/overworld/load_map_part.asm @@ -0,0 +1,36 @@ +_LoadMapPart:: ; 4d15b + ld hl, wMisc + ld a, [wMetatileStandingY] + and a + jr z, .top_row + ld bc, WMISC_WIDTH * 2 + add hl, bc + +.top_row + ld a, [wMetatileStandingX] + and a + jr z, .left_column + inc hl + inc hl + +.left_column + decoord 0, 0 + ld b, SCREEN_HEIGHT +.loop + ld c, SCREEN_WIDTH +.loop2 + ld a, [hli] + ld [de], a + inc de + dec c + jr nz, .loop2 + ld a, l + add 4 + ld l, a + jr nc, .carry + inc h + +.carry + dec b + jr nz, .loop + ret |