2458 Commits

Author SHA1 Message Date
Toxa
6522f8e874 Merge pull request #804 from RodrigoCard/fix-advancedtext-example
Fix text_advanced_dialogue example and manual line break support
2025-08-01 09:48:55 +03:00
Toxa
b9169861fc Merge pull request #803 from RodrigoCard/gbcompress-includeguards
Include guards for h files generated with gbcompress
2025-08-01 09:44:46 +03:00
Rodrigo
a49c9b6fe0 Fix text_advanced_dialogue example and manual line break support 2025-07-31 15:18:31 -03:00
Rodrigo
c84ead71d0 Include guards for h files generated with gbcompress 2025-07-31 15:12:00 -03:00
Toxa
dd05ae2c54 Merge branch 'develop' of https://github.com/gbdk-2020/gbdk-2020 into develop 2025-07-29 17:49:02 +03:00
Toxa
a54a099a56 PNG2ASSET: export binary palettes when -bin 2025-07-29 17:48:51 +03:00
bbbbbr
6ef47e6c09 Merge pull request #799 from bbbbbr/docs/gbdk_4_4_0_next
Docs: Minor edits for updated APA mode ISRs, SMS/GG VDP migration note
2025-07-25 01:04:47 -07:00
bbbbbr
cd459e8e0b Docs: Minor edits for updated APA mode ISRs, SMS/GG VDP migration note 2025-07-25 01:04:21 -07:00
Toxa
7d0e389183 EXAMPLES: minor improvements to the scroller example 2025-07-21 18:14:10 +03:00
Toxa
7d64b490f4 Merge branch 'develop' of https://github.com/gbdk-2020/gbdk-2020 into develop 2025-07-21 13:36:29 +03:00
Toxa
fb8d8b8506 EXAMPLES: refactor the cross-platform scroller example 2025-07-21 13:36:17 +03:00
bbbbbr
884aca3113 Merge pull request #798 from bbbbbr/examples/mbc5_rumble_changes
Examples: MBC5 rumble improvements
2025-07-21 03:28:20 -07:00
Toxa
33139f4345 minor style 2025-07-21 11:46:54 +03:00
Toxa
9bc0c38eec EXAMPLES: SMS: the NMI handler example 2025-07-20 00:58:20 +03:00
Toxa
99c2e580b7 GG: rename the "not interrupt" link port control bit 2025-07-19 23:11:39 +03:00
bbbbbr
4cc12e2f73 Examples: MBC5 rumble improvements
- Readme note about SRAM bank changes
- Adjustable duration and intensity (with display)
- VBL handler to update outside of main loop
- Cancel option
- Specific duty cycles based on cart testing (shorter cycle times to make it less lumpy, tuned intensity levels)
2025-07-19 01:54:48 -07:00
bbbbbr
32123ded27 Merge pull request #789 from EV3lindaboi/develop (MBC5 Rumble)
Rumble Pak example
2025-07-18 13:33:04 -07:00
bbbbbr
a5edf665a1 Merge pull request #797 from bbbbbr/examples/printer_megaduck_cable_pinout
Examples: gbprinter: megaduck link port pinout
2025-07-18 12:34:28 -07:00
bbbbbr
0e7a3639c8 Examples: gbprinter: megaduck link port pinout 2025-07-18 12:33:27 -07:00
bbbbbr
ff16680856 Merge pull request #796 from bbbbbr/examples/missing_gbdk_debug
Examples: MBC3 and 7: Add missing GBDK_DEBUG check to Makefiles
2025-07-18 12:04:59 -07:00
bbbbbr
6d56a2bc6b Examples: Add missing GBDK_DEBUG check to Makefiles
- Also remove commented out MegaDuck flags that were copy and pasted
2025-07-18 12:03:52 -07:00
Toxa
b3b9dd6f54 Merge branch 'develop' of https://github.com/gbdk-2020/gbdk-2020 into develop 2025-07-18 14:11:57 +03:00
Toxa
ba6eb00496 EXAMPLES: Convert GBPrinter example to cross-platform (Game Boy/Mega Duck/Game Gear) 2025-07-18 14:11:40 +03:00
bbbbbr
d71b260c1a Merge pull request #795 from bbbbbr/build/update_to_windows_2022
build: windows 2019 runner deprecated, switch to 2022
2025-07-11 22:47:44 -07:00
bbbbbr
b68d07a2ec build: windows 2019 runner deprecated, switch to 2022 2025-07-11 22:46:17 -07:00
VL2M_STUDIO
3be1173afa Is this one good? 2025-07-10 12:01:22 +03:00
Michel Iwaniec
4f7507f94e NES remove broken and unused FAST_DIV8 macro (#794) 2025-06-28 10:31:35 +01:00
bbbbbr
a0cbbae203 Merge pull request #793 from bbbbbr/png2asset/palette_export_format
png2asset: fix palette out line breaks, commas, trailing spaces
2025-06-24 22:51:43 -07:00
bbbbbr
cb893348da png2asset: fix palette out line breaks and trailing spaces
- remove misplaced commas and excessive line breaks
- remove trailing spaces at ends of lines
- remove trailing extra line break at end of array
- update tests
2025-06-24 22:49:50 -07:00
bbbbbr
3e2ff4dcf4 Merge pull request #792 from bbbbbr/png2asset/array_width_output
png2asset: fix line break per tile (mod of 8 x bpp, not 8 / bpp)
2025-06-23 00:27:21 -07:00
bbbbbr
208c4381bd png2asset: fix line break per tile (mod of 8 x bpp, not 8 / bpp)
- udpate png2asset tests
2025-06-23 00:23:56 -07:00
Toxa
16fa2d50b1 png2asset: separate attrib array for: -use_map_attributes + -use_structs + SMS/GG 2025-06-22 20:07:36 +03:00
bbbbbr
9497ec5c43 png2asset: separate attrib array for: -use_map_attributes + -use_structs + SMS/GG
+ 2 new related tests
2025-06-22 00:17:23 -07:00
Toxa
f1c6e82067 Merge pull request #790 from bbbbbr/bankpack/linkerfile_output_order
Bankpack: Linkerfile output order matches internal packing order
2025-06-19 11:17:16 +03:00
bbbbbr
0709146102 Bankpack: Linkerfile output order matches internal packing order
- First will be object files with only non-banked data  (`size Descending`)
- Second will be fixed bank  (`bank num Ascending, size Descending`)
- Third will auto-banked  (`size Descending`)

This might be used with fixed-bank, size-padded object files and the .bndry directive for aligning.
The requirement would be that all files placed in a bank before a file using the .bndry directive have their size padded to the appropriate amount
2025-06-18 19:59:08 -07:00
VL2M_STUDIO
4531d5eb2b Remake 2025-06-17 09:00:32 +03:00
VL2M_STUDIO
f18da7e1b7 Added Rumble Pak example 2025-06-16 19:44:06 +03:00
Toxa
64eb14fb97 SMS/GG/MSX remove broken and unused FAST_DIV8 macro 2025-06-09 00:46:56 +03:00
Toxa
6228cdd920 Merge branch 'develop' of https://github.com/gbdk-2020/gbdk-2020 into develop 2025-06-08 21:21:32 +03:00
Toxa
74cfc853da fix escaping % symbol in printf and sprintf 2025-06-08 21:21:21 +03:00
bbbbbr
d164c9f751 Merge pull request #788 from bbbbbr/makenes/help_info_typo
makenes: fix help typo/warning (stray printf comma)
2025-05-27 12:37:30 -07:00
bbbbbr
a9c8c4729a makenes: fix help typo/warning (stray printf comma) 2025-05-19 14:42:25 -07:00
bbbbbr
b0837f2cbf Merge branch 'master' into develop 2025-05-19 14:06:50 -07:00
Michel Iwaniec
62de8abb87 NES: Add support for various tilemap layout (mirroring) configurations (#783)
* NES: Add support for various tilemap layout (mirroring) configurations

- Introduce platform configuration, mainly to define tilemap layout NES_TILEMAP_[F|H|V|S] in platform_cfg.s
  + Add NES_TILEMAP_S|H|V|F setting for tilemap layout, and hard-code to NES_TILEMAP_S for now
  + Add NES_LOMEM setting to enable current default of using part of stack instead of BSS for attribute shadow buffer
  + Edit Makefile to copy platform_cfg.s (if it exists) to platform directory after build

- Updates to attribute shadow buffer and dirty bits:
  + Add NUM_NT define for number of nametables used by a layout, and AT_SHADOW_WIDTH/_HEIGHT to denote the variable dimensions
  + Add convenience defines NT_2W / NT_2H to quickly test whether tilemap layout is two screens wide / high
  + Define _attribute_shadow and _attribute_row/_column_dirty in terms of NUM_NT
  + Update flush_attributes to support all layouts
  + Update get_bkg_xy_addr / set_bkg_tile_xy to support all layouts
  + Update set_bkg_attribute_xy[_nes16x16] to support all layouts
  + Update set_bkg_attributes[_nes16x16] to support all layouts, and correctly wrap to next AT in both directions
  + Update set_bkg_submap_attributes[_nes16x16] to support all layouts
  + Update set_bkg_submap to support all layouts, and contain common inner subroutine .set_bkg_common
  + Replace set_bkg_tiles with simpler implementation calling .set_bkg_common, and correctly wraps to next NT in both directions
  + Add set_bkg_based_tiles / set_bkg_based_submap implementations using the new common subroutine

- Updates to C include files:
  + Define DEVICE_SCREEN_BUFFER_WIDTH/_HEIGHT based on NES_TILEMAP_ setting, doubling high-level size of WIDTH / HEIGHT conditionally
  + Add typedefs scroll_x_t / scroll_y_t as uint8_t or uint16_t based on NES_TILEMAP_ setting
  + Make move_bkg use scroll_x/y_t typedefs, set 9th scroll bit in shadow_PPUCTRL where needed, and compensate for 239->0 y wrapping

- Updates to examples:
  + Update large_map example to use platform-agnostic settings for scroll wrapping and offset
  + Update rle_map to use a uint16_t for scroll position, to support NES_TILEMAP_H and NES_TILEMAP_F settings
2025-05-19 12:44:45 +01:00
bbbbbr
2186bc60ec Merge pull request #782 from bbbbbr/lcc/postproc_detection
lcc: fix sometimes incorrect detection of postproc step
2025-05-14 15:53:04 -07:00
bbbbbr
dd25cbfc9e Build: Examples: turn on GBDK_DEBUG=1 for github example building 2025-05-14 15:19:35 -07:00
bbbbbr
c9cad4789e lcc: fix sometimes incorrect detection of postproc step
- Use bool to indicate postproc stage present instead of setting char pointer to null then later calling strlen on possible null pointer
2025-05-14 15:18:55 -07:00
bbbbbr
25a7b2b822 Merge pull request #781 from bbbbbr/docs_4_4_0
Docs: update for NES description
2025-05-14 01:16:00 -07:00
bbbbbr
0767534dfd Docs: update for NES description 2025-05-14 01:14:44 -07:00
bbbbbr
533ca107c7 Merge pull request #780 from michel-iwaniec/nes_update_docs_palette
NES: Simplify description of palette fading caveat in docs
2025-05-14 01:12:00 -07:00