git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

docs/api/docs_migrating_versions.html

      1 <!-- HTML header for doxygen 1.8.14-->
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 <head>
      5 <meta http-equiv="cache-control" content="max-age=86400"/>
      6 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8 <meta name="generator" content="Doxygen 1.9.2"/>
      9 <meta name="viewport" content="width=device-width, initial-scale=1"/>
     10 <title>GBDK 2020 Docs: Migrating to new GBDK Versions</title>
     11 <link href="tabs.css" rel="stylesheet" type="text/css"/>
     12 <script type="text/javascript" src="jquery.js"></script>
     13 <script type="text/javascript" src="dynsections.js"></script>
     14 <link href="navtree.css" rel="stylesheet" type="text/css"/>
     15 <script type="text/javascript" src="resize.js"></script>
     16 <script type="text/javascript" src="navtreedata.js"></script>
     17 <script type="text/javascript" src="navtree.js"></script>
     18 <link href="search/search.css" rel="stylesheet" type="text/css"/>
     19 <script type="text/javascript" src="search/searchdata.js"></script>
     20 <script type="text/javascript" src="search/search.js"></script>
     21 <link href="doxygen.css" rel="stylesheet" type="text/css" />
     22 <link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
     23 <link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
     24 <link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
     25 <!-- BEGIN: doxygen-awesome-css -->
     26         <script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script>
     27         <script type="text/javascript">
     28             DoxygenAwesomeDarkModeToggle.init()
     29         </script>
     30         <script type="text/javascript" src="doxygen-awesome-paragraph-link.js"></script>
     31         <script type="text/javascript">
     32             DoxygenAwesomeParagraphLink.init()
     33         </script>        
     34 <!-- END: doxygen-awesome-css -->
     35 </head>
     36 <body>
     37 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     38 <div id="titlearea">
     39 <table cellspacing="0" cellpadding="0">
     40  <tbody>
     41  <tr style="height: 56px;">
     42   <td id="projectalign" style="padding-left: 0.5em;">
     43    <div id="projectname">GBDK 2020 Docs
     44    &#160;<span id="projectnumber">4.5.0</span>
     45    </div>
     46    <div id="projectbrief">API Documentation for GBDK 2020</div>
     47   </td>
     48  </tr>
     49  </tbody>
     50 </table>
     51 </div>
     52 <!-- end header part -->
     53 <!-- Generated by Doxygen 1.9.2 -->
     54 <script type="text/javascript">
     55 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
     56 var searchBox = new SearchBox("searchBox", "search",'Search','.html');
     57 /* @license-end */
     58 </script>
     59 <script type="text/javascript" src="menudata.js"></script>
     60 <script type="text/javascript" src="menu.js"></script>
     61 <script type="text/javascript">
     62 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
     63 $(function() {
     64   initMenu('',true,false,'search.php','Search');
     65   $(document).ready(function() { init_search(); });
     66 });
     67 /* @license-end */
     68 </script>
     69 <div id="main-nav"></div>
     70 </div><!-- top -->
     71 <div id="side-nav" class="ui-resizable side-nav-resizable">
     72   <div id="nav-tree">
     73     <div id="nav-tree-contents">
     74       <div id="nav-sync" class="sync"></div>
     75     </div>
     76   </div>
     77   <div id="splitbar" style="-moz-user-select:none;" 
     78        class="ui-resizable-handle">
     79   </div>
     80 </div>
     81 <script type="text/javascript">
     82 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
     83 $(document).ready(function(){initNavTree('docs_migrating_versions.html',''); initResizable(); });
     84 /* @license-end */
     85 </script>
     86 <div id="doc-content">
     87 <!-- window showing the filter options -->
     88 <div id="MSearchSelectWindow"
     89      onmouseover="return searchBox.OnSearchSelectShow()"
     90      onmouseout="return searchBox.OnSearchSelectHide()"
     91      onkeydown="return searchBox.OnSearchSelectKey(event)">
     92 </div>
     93 
     94 <!-- iframe showing the search results (closed by default) -->
     95 <div id="MSearchResultsWindow">
     96 <iframe src="javascript:void(0)" frameborder="0" 
     97         name="MSearchResults" id="MSearchResults">
     98 </iframe>
     99 </div>
    100 
    101 <div><div class="header">
    102   <div class="headertitle"><div class="title">Migrating to new GBDK Versions </div></div>
    103 </div><!--header-->
    104 <div class="contents">
    105 <div class="textblock"><p >This section contains information that may be useful to know or important when upgrading to a newer GBDK release.</p>
    106 <h1><a class="anchor" id="autotoc_md224"></a>
    107 GBDK-2020 versions</h1>
    108 <h2><a class="anchor" id="autotoc_md225"></a>
    109 Porting to GBDK-2020 4.5.0</h2>
    110 <ul>
    111 <li>GBDK now requires ~SDCC 4.5.0 or higher with GBDK-2020 patches for the z80, sm83 and NES</li>
    112 <li>Build Host:<ul>
    113 <li>Changed from building on MacOS 13 to MacOS 15 for 64 bit Intel</li>
    114 <li>Changed from building on Windows 2019 to 2022 for Intel</li>
    115 </ul>
    116 </li>
    117 <li>SMS/GG<ul>
    118 <li>Changed parameter order of <a class="el" href="gb_8h.html#set_tile_submap">set_tile_submap()</a>, <a class="el" href="msx_8h.html#set_tile_submap_compat">set_tile_submap_compat()</a></li>
    119 <li>Remove broken and unused <code>FAST_DIV8</code> macro</li>
    120 <li>Removed legacy <code>___sdcc_bcall trampoline</code></li>
    121 </ul>
    122 </li>
    123 <li>MegaDuck<ul>
    124 <li>Renamed <code>DUCK_IO_CMD_PRINT_INIT_MAYBE_EXT_IO</code> to <a class="el" href="laptop__io_8h.html#DUCK_IO_CMD_PRINT_INIT_EXT_IO">DUCK_IO_CMD_PRINT_INIT_EXT_IO</a></li>
    125 <li>Removed<code>duck_io_printer_detected()</code>, <code>duck_io_printer_type()</code> and replaced them with <a class="el" href="laptop__io_8h.html#duck_io_printer_query">duck_io_printer_query()</a>, <a class="el" href="laptop__io_8h.html#duck_io_printer_last_status">duck_io_printer_last_status()</a></li>
    126 </ul>
    127 </li>
    128 <li>png2asset<ul>
    129 <li>Fixed missing error for <code>-bin</code> requiring <code>-map</code></li>
    130 </ul>
    131 </li>
    132 </ul>
    133 <h2><a class="anchor" id="autotoc_md226"></a>
    134 Porting to GBDK-2020 4.4.0</h2>
    135 <ul>
    136 <li>GBDK now requires ~SDCC 4.5.0 or higher with GBDK-2020 patches for the z80 and NES</li>
    137 <li>Build Host:<ul>
    138 <li>Changed from building on MacOS 11 to MacOS 13 for 64 bit Intel</li>
    139 <li>Changed from building on Ubuntu Linux 20.04 to 22.04 for 64 bit Intel</li>
    140 </ul>
    141 </li>
    142 <li>NES<ul>
    143 <li>LCD bkg_scroll_y is now relative to the current scanline<ul>
    144 <li>This change creates higher compatibility with the Game Boy SCY_REG and makes it easier to re-use Game Boy LCD handlers</li>
    145 <li>This behaves differently to 4.3.0 and affects LCD handlers that change the y scrolling coordinate mid-frame</li>
    146 </ul>
    147 </li>
    148 <li>Added <a class="el" href="docs_toolchain.html#utility_makenes">makenes</a> utility for finalizing NES rom headers (called automatically by <a class="el" href="docs_toolchain.html#lcc">lcc</a>)</li>
    149 </ul>
    150 </li>
    151 <li>SMS/GG<ul>
    152 <li>Changed from unsigned (<code>uint16_t</code>) to signed int16 (<code>int16_t</code>) for coordinates with the family of <code>...metasprite...()</code> functions</li>
    153 <li>Changed screen map to be at <code>0x1800</code> instead of <code>0x3800</code><ul>
    154 <li>To switch to the older configuration use <code><a class="el" href="sms_8h.html#__WRITE_VDP_REG_UNSAFE">__WRITE_VDP_REG_UNSAFE(VDP_R2, R2_MAP_0x3800)</a>;</code> and <code><a class="el" href="sms_8h.html#__WRITE_VDP_REG_UNSAFE">__WRITE_VDP_REG_UNSAFE(VDP_R5, R5_SAT_0x3F00)</a>;</code> near the start of main</li>
    155 </ul>
    156 </li>
    157 </ul>
    158 </li>
    159 <li>SDCC<ul>
    160 <li>Changed to using the <code>-N</code> flag with sdas since the the <code>-n</code> flag was removed</li>
    161 </ul>
    162 </li>
    163 <li>Changed <a class="el" href="docs_toolchain.html#lcc">lcc</a> to use <code>--no-optsdcc-in-asm</code> for building user programs and the GBDK library<ul>
    164 <li>This removes some "O line" meta-data from object files to avoid false-positive linker errors</li>
    165 <li>It is a workaround for SDCC now appending the calling convention to the "O Line" in the object files by default</li>
    166 </ul>
    167 </li>
    168 </ul>
    169 <h2><a class="anchor" id="autotoc_md227"></a>
    170 Porting to GBDK-2020 4.3.0</h2>
    171 <ul>
    172 <li>GBDK now requires ~SDCC 4.4.0 or higher with GBDK-2020 patches for the z80 and NES</li>
    173 <li>Changed to new calling convention for <a class="el" href="stdio_8h.html#printf">printf()</a>, <a class="el" href="stdio_8h.html#sprintf">sprintf()</a>, <a class="el" href="stdlib_8h.html#abs">abs()</a></li>
    174 <li>Changed to new SDCC calling convention for <a class="el" href="msx_8h.html#set_bkg_tile_xy">set_bkg_tile_xy()</a>, <a class="el" href="msx_8h.html#set_win_tile_xy">set_win_tile_xy()</a></li>
    175 <li>The SDCC object file format (<code>.o</code>, <code>.rel</code> files) changed from <code>XL3</code> (24 bit addresses) to <code>XL4</code> (32 bit addresses)<ul>
    176 <li>Bankpack now supports both</li>
    177 </ul>
    178 </li>
    179 <li>Recommend using:<ul>
    180 <li><a class="el" href="sms_8h.html#CURRENT_BANK">CURRENT_BANK</a> instead of <code>_current_bank</code></li>
    181 <li><a class="el" href="asm_2types_8h.html#BANKED">BANKED</a> macro instead of <code>__banked</code></li>
    182 </ul>
    183 </li>
    184 <li>NES <a class="el" href="msx_8h.html#set_sprite_palette">set_sprite_palette()</a> now indexes from <code>0..3</code> instead of <code>4..7</code></li>
    185 <li>png2asset:<ul>
    186 <li>If using either <code>-bpp 1</code> or <code>-pack_mode 1bpp</code> then the other is auto-enabled</li>
    187 <li>Significant bug fixes and changes, check to make sure output is as expected</li>
    188 </ul>
    189 </li>
    190 </ul>
    191 <h2><a class="anchor" id="autotoc_md228"></a>
    192 Porting to GBDK-2020 4.2.0</h2>
    193 <ul>
    194 <li>GBDK now requires ~SDCC 4.3 or higher with GBDK-2020 patches for the z80 and NES</li>
    195 <li>The following new functions replace old ones:<ul>
    196 <li>While the old functions will continue to work for now, migration to new versions is strongly encouraged</li>
    197 <li><a class="el" href="gb_8h.html#vsync">vsync()</a>: replaces <a class="el" href="gb_8h.html#wait_vbl_done">wait_vbl_done()</a></li>
    198 <li><a class="el" href="cgb_8h.html#set_default_palette">set_default_palette()</a>: replaces <a class="el" href="cgb_8h.html#cgb_compatibility">cgb_compatibility()</a></li>
    199 <li><a class="el" href="gb_2metasprites_8h.html#move_metasprite_flipy">move_metasprite_flipy()</a>: replaces <a class="el" href="gb_2metasprites_8h.html#move_metasprite_hflip">move_metasprite_hflip()</a></li>
    200 <li><a class="el" href="gb_2metasprites_8h.html#move_metasprite_flipx">move_metasprite_flipx()</a>: replaces <a class="el" href="gb_2metasprites_8h.html#move_metasprite_vflip">move_metasprite_vflip()</a></li>
    201 <li><a class="el" href="gb_2metasprites_8h.html#move_metasprite_flipxy">move_metasprite_flipxy()</a>: replaces <a class="el" href="gb_2metasprites_8h.html#move_metasprite_hvflip">move_metasprite_hvflip()</a></li>
    202 <li><a class="el" href="gb_2metasprites_8h.html#move_metasprite_ex">move_metasprite_ex()</a>: replaces <a class="el" href="gb_2metasprites_8h.html#move_metasprite">move_metasprite()</a></li>
    203 </ul>
    204 </li>
    205 <li>The unused <code>-DINT_16_BITS</code> argument was removed from the default SDCC compiler and preprocessor arguments (used in pre-GBDK2020 <code>gbdk/include-gb/types.h</code>)</li>
    206 <li>Removed legacy MBC register definitions <code>.MBC1_ROM_PAGE</code> and <code>.MBC_ROM_PAGE</code></li>
    207 <li>SMS/GG<ul>
    208 <li>Swapped A and B buttons to match game boy buttons</li>
    209 </ul>
    210 </li>
    211 </ul>
    212 <h2><a class="anchor" id="autotoc_md229"></a>
    213 Porting to GBDK-2020 4.1.1</h2>
    214 <ul>
    215 <li>No significant changes required</li>
    216 </ul>
    217 <h2><a class="anchor" id="autotoc_md230"></a>
    218 Porting to GBDK-2020 4.1.0</h2>
    219 <ul>
    220 <li>GBDK now requires SDCC 4.2 or higher with GBDK-2020 patches for the z80 linker</li>
    221 <li>The default calling convention changed in SDCC 4.2, see <a class="el" href="docs_coding_guidelines.html#sdcc_calling_convention">Calling Conventions</a> for more details.<ul>
    222 <li>If you are linking to libraries compiled with an older version of SDCC / GBDK then you may have to recompile them.</li>
    223 <li>If there are existing functions written in ASM which <b>receive parameters</b> they should also be reviewed to make sure they work with the new <code>__sdcccall(1)</code> calling convention, or have their header declaration changed to use <code>OLDCALL</code>.</li>
    224 <li>If there are existing functions written in ASM which <b>call other functions written in C</b> the callee C function should be declared OLDCALL.</li>
    225 <li>Function pointer declarations should be checked to see if they need OLDCALL added to the declaration.<ul>
    226 <li>Example (add OLDCALL at the end)</li>
    227 <li>FROM: <code>typedef void (*someFunc)(uint8_t, uint8_t);</code></li>
    228 <li>TO: <code>typedef void (*someFunc)(uint8_t, uint8_t) OLDCALL;</code></li>
    229 </ul>
    230 </li>
    231 <li>If you are using tools such as <code>rgb2sdas</code> (from hUGETracker/Driver) you may need to edit the resulting .o file and replace <code>-mgbz80</code> with <code>-msm83</code> in addition to using <code>OLDCALL</code></li>
    232 </ul>
    233 </li>
    234 <li>The SDCC <code>PORT</code> name for the Game Boy and related clones changed from <code>gbz80</code> to <code>sm83</code>.<ul>
    235 <li>Additional details in the <a class="el" href="docs_supported_consoles.html#console_port_plat_settings">Console Port and Platform Settings</a> section and <a class="el" href="docs_faq.html#faq_gbz80_sm83_old_port_name_error">FAQ entry</a>. <a class="el" href="docs_toolchain.html#lcc">lcc</a> will error out if the old <code>PORT</code> name is passed in.</li>
    236 </ul>
    237 </li>
    238 <li>The library base path changed from <code>lib/small/asxxxx/</code> to <code>lib/</code>.<ul>
    239 <li>For example <code>lib/small/asxxxx/gb</code> becomes <code>lib/gb</code></li>
    240 </ul>
    241 </li>
    242 <li>Allocations for ISR chain lengths were fixed.<ul>
    243 <li>Now they are VBL: 4 user handlers, LCD: 3 user handlers, SIO/TIM/JOY: 4 user handlers</li>
    244 </ul>
    245 </li>
    246 </ul>
    247 <h2><a class="anchor" id="autotoc_md231"></a>
    248 Porting to GBDK-2020 4.0.6</h2>
    249 <ul>
    250 <li>Renamed <code>bgb_emu.h</code> to <code>emu_debug.h</code> and BGB_* functions to EMU_*<ul>
    251 <li>Aliases for the BGB_* ones and a <code>bgb_emu.h</code> shim are present for backward compatibility, but updating to the new naming is recommended</li>
    252 </ul>
    253 </li>
    254 </ul>
    255 <h2><a class="anchor" id="autotoc_md232"></a>
    256 Porting to GBDK-2020 4.0.5</h2>
    257 <ul>
    258 <li>GBDK now requires SDCC 12259 or higher with GBDK-2020 patches</li>
    259 <li>Variables in static storage are now initialized to zero per C standard (but remaining WRAM is not cleared)</li>
    260 <li><a class="el" href="docs_toolchain.html#utility_png2asset">png2asset</a> is the new name for the <code>png2mtspr</code> utility</li>
    261 <li><a class="el" href="docs_toolchain.html#lcc">lcc</a> : Changed default output format when not specified from <code>.ihx</code> to <code>.gb</code> (or other active rom extension)</li>
    262 <li>The <code>_BSS</code> area is deprecated (use <code>_DATA</code> instead)</li>
    263 <li>The <code>_BASE</code> area is renamed to <code>_HOME</code></li>
    264 <li>Variables in static storage are now initialized to zero per C standard (but remaining WRAM is not cleared)</li>
    265 <li><a class="el" href="stdlib_8h.html#itoa">itoa()</a>, <a class="el" href="stdlib_8h.html#uitoa">uitoa()</a>, <a class="el" href="stdlib_8h.html#ltoa">ltoa()</a>, <a class="el" href="stdlib_8h.html#ultoa">ultoa()</a> all now require a radix value (base) argument to be passed. On the Game Boy and Analogue Pocket the parameter is required but not utilized.</li>
    266 <li>set_bkg_1bit_data has been renamed to <a class="el" href="sms_8h.html#set_bkg_1bpp_data">set_bkg_1bpp_data</a></li>
    267 <li>The following header files which are now cross platform were moved from <code>gb/</code> to <code>gbdk/</code>: <code>bcd.h</code>, <code>console.h</code>, <code>far_ptr.h</code>, <code>font.h</code>, <code>gbdecompress.h</code>, <code>gbdk-lib.h</code>, <code>incbin.h</code>, <code>metasprites.h</code>, <code>platform.h</code>, <code>version.h</code><ul>
    268 <li>When including them use <code>#include &lt;gbdk/...&gt;</code> instead of <code>#include &lt;gb/&gt;</code></li>
    269 </ul>
    270 </li>
    271 </ul>
    272 <h2><a class="anchor" id="autotoc_md233"></a>
    273 Porting to GBDK-2020 4.0.4</h2>
    274 <ul>
    275 <li>GBDK now requires SDCC 12238 or higher</li>
    276 <li>Made sample.h, cgb.h and sgb.h independent from gb.h</li>
    277 </ul>
    278 <h2><a class="anchor" id="autotoc_md234"></a>
    279 Porting to GBDK-2020 4.0.3</h2>
    280 <ul>
    281 <li>No significant changes required</li>
    282 </ul>
    283 <h2><a class="anchor" id="autotoc_md235"></a>
    284 Porting to GBDK-2020 4.0.2</h2>
    285 <ul>
    286 <li>The default font has been reduced from 256 to 96 characters.<ul>
    287 <li>Code using special characters may need to be updated.</li>
    288 <li>The off-by-1 character index offset was removed for fonts. Old fonts with the offset need to be re-adjusted.</li>
    289 </ul>
    290 </li>
    291 </ul>
    292 <h2><a class="anchor" id="autotoc_md236"></a>
    293 Porting to GBDK-2020 4.0.1</h2>
    294 <ul>
    295 <li><b>Important!</b> : The <code>WRAM</code> memory region is no longer automatically initialized to zeros during startup.<ul>
    296 <li>Any variables which are declared without being initialized may have <b>indeterminate values instead of 0</b> on startup. This might reveal previously hidden bugs in your code.</li>
    297 <li>Check your code for variables that are not initialized before use.</li>
    298 <li>In BGB you can turn on triggering exceptions (options panel) reading from unitialized RAM. This allows for some additional runtime detection of uninitialized vars.</li>
    299 </ul>
    300 </li>
    301 <li>In .ihx files, multiple writes to the same ROM address are now warned about using <a class="el" href="docs_toolchain.html#ihxcheck">ihxcheck</a>.</li>
    302 <li><code>set_*_tiles()</code> now wrap maps around horizontal and vertical boundaries correctly. Code relying on it not wrapping correctly may be affected.</li>
    303 </ul>
    304 <h2><a class="anchor" id="autotoc_md237"></a>
    305 Porting to GBDK-2020 4.0</h2>
    306 <ul>
    307 <li>GBDK now requires SDCC 4.0.3 or higher</li>
    308 <li>The old linker <code>link-gbz80</code> has been REMOVED, the linker <a class="el" href="docs_toolchain.html#sdldgb">sdldgb</a> from SDCC is used.<ul>
    309 <li>Due to the linker change, there are no longer warnings about multiple writes to the same ROM address.</li>
    310 </ul>
    311 </li>
    312 <li>GBDK now generates .ihx files, those are converted to a ROM using <a class="el" href="docs_toolchain.html#makebin">makebin</a> (lcc can do this automatically in some use cases)</li>
    313 <li>Setting ROM bytes directly with <code>-Wl-yp0x&lt;address&gt;=0x&lt;value&gt;</code> is no longer supported. Instead use <a class="el" href="docs_toolchain.html#makebin">makebin</a> flags. For example, use <code>-Wm-yC</code> instead of <code>-Wl-yp0x143=0xC0</code>. See <a class="el" href="docs_faq.html#faq_gb_type_header_setting">faq_gb_type_header_setting</a>.</li>
    314 <li>OAM symbol has been renamed to <code>_shadow_OAM</code>, that allows accessing shadow OAM directly from C code</li>
    315 </ul>
    316 <h2><a class="anchor" id="autotoc_md238"></a>
    317 Porting to GBDK-2020 3.2</h2>
    318 <ul>
    319 <li>No significant changes required</li>
    320 </ul>
    321 <h2><a class="anchor" id="autotoc_md239"></a>
    322 Porting to GBDK-2020 3.1.1</h2>
    323 <ul>
    324 <li>No significant changes required</li>
    325 </ul>
    326 <h2><a class="anchor" id="autotoc_md240"></a>
    327 Porting to GBDK-2020 3.1</h2>
    328 <ul>
    329 <li>Behavior formerly enabled by USE_SFR_FOR_REG is on by default now (no need to specify it, it isn't a tested <code>#ifdef</code> anymore). check here why: <a href="https://gbdev.gg8.se/forums/viewtopic.php?id=697">https://gbdev.gg8.se/forums/viewtopic.php?id=697</a></li>
    330 </ul>
    331 <h2><a class="anchor" id="autotoc_md241"></a>
    332 Porting to GBDK-2020 3.0.1</h2>
    333 <ul>
    334 <li>LCC was upgraded to use SDCC v4.0. Makefile changes may be required<ul>
    335 <li>The symbol format changed. To get bgb compatible symbols turn on <code>.noi</code> output (LCC argument: <code>-Wl-j</code> or <code>-debug</code>) and use <code>-Wm-yS</code></li>
    336 <li>?? Suggested: With LCC argument: <code>-Wa-l</code> (sdasgb:<code>-a All user symbols made global</code>)</li>
    337 <li>In SDCC 3.6.0, the default for char changed from signed to unsigned.<ul>
    338 <li>If you want the old behavior use <code>--fsigned-char</code>.</li>
    339 <li>lcc includes <code>--fsigned-char</code> by default</li>
    340 <li>Explicit declaration of unsigned vars is encouraged (for example, '15U' instead of '15')</li>
    341 </ul>
    342 </li>
    343 <li><code>.init</code> address has been removed</li>
    344 </ul>
    345 </li>
    346 </ul>
    347 <hr  />
    348 <h1><a class="anchor" id="autotoc_md243"></a>
    349 Historical GBDK versions</h1>
    350 <h2><a class="anchor" id="autotoc_md244"></a>
    351 GBDK 1.1 to GBDK 2.0</h2>
    352 <ul>
    353 <li>Change your int variables to long if they have to be bigger than 255. If they should only contain values between 0 and 255, use an unsigned int.</li>
    354 <li>If your application uses the delay function, you'll have to adapt your delay values.</li>
    355 <li>Several functions have new names. In particular some of them have been changed to macros (e.g. show_bkg() is now SHOW_BKG).</li>
    356 <li>You will probably have to change the name of the header files that you include. </li>
    357 </ul>
    358 </div></div><!-- contents -->
    359 </div><!-- PageDoc -->
    360 </div><!-- doc-content -->
    361 <!-- start footer part -->
    362 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    363   <ul>
    364     <li class="navelem"><a class="el" href="index.html">General Documentation</a></li>
    365     <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
    366   </ul>
    367 </div>
    368 </body>
    369 </html>

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.