User Tools

Site Tools


wswan:tutorial:your_first_program

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wswan:tutorial:your_first_program [2025/12/31 12:35] asiewswan:tutorial:your_first_program [2025/12/31 15:32] (current) asie
Line 1: Line 1:
-===== Your first program ======+====== Your first program =======
  
 In this chapter, you're going to learn the basics of compiling and testing a homebrew project targetting the WonderSwan. In this chapter, you're going to learn the basics of compiling and testing a homebrew project targetting the WonderSwan.
  
-==== Creating a project ====+===== Creating a project =====
  
 First, set up a new project: First, set up a new project:
Line 32: Line 32:
 Finally, you can run the ROM file using your emulator of choice. Finally, you can run the ROM file using your emulator of choice.
  
-==== Editing source code ====+===== Editing source code =====
  
 The program is not displaying anything - after all, there's no code written yet! The program is not displaying anything - after all, there's no code written yet!
Line 63: Line 63:
 With only an infinite loop in ''main'', it's clear that the code won't do anything. Let's make it do something! With only an infinite loop in ''main'', it's clear that the code won't do anything. Let's make it do something!
  
-==== Throwing shade ====+===== Throwing shade =====
  
 For now, we're going to assume a "mono" program - we'll introduce the color mode in a later chapter. On the "mono" WonderSwan, the palette pipeline that converts tile information to display shades consists of two parts: the //palette//, mapping each of the four possible palette //indexes// to one of eight color values; and a //shade look-up table//, mapping each of the color values to one of the sixteen total shades which the panel can display. For now, we're going to assume a "mono" program - we'll introduce the color mode in a later chapter. On the "mono" WonderSwan, the palette pipeline that converts tile information to display shades consists of two parts: the //palette//, mapping each of the four possible palette //indexes// to one of eight color values; and a //shade look-up table//, mapping each of the color values to one of the sixteen total shades which the panel can display.
wswan/tutorial/your_first_program.1767184509.txt.gz · Last modified: by asie