gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/targets/sm83/mode.s
1 .include "global.s"
2
3 .title "screen modes"
4 .module Modes
5
6 .area _HOME
7
8 _mode::
9 LD (.mode), A
10 AND #0x03
11 ADD A
12 ADD A
13 LD L,A
14 LD H, #0
15 LD BC, #.MODE_TABLE
16 ADD HL, BC
17 JP (HL) ; Jump to initialization routine
18
19 _get_mode::
20 LD A, (.mode)
21 RET
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.