Basxto

Results 88 comments of Basxto

I’m playing around with banking for non-code: I wrote an image converter that can place images at specific addresses in ROM https://github.com/basxto/png2gb An excerpt from my makefile: ``` CC=$(BIN)/gbdk-n-compile.sh -Wa-l...

Revision 11763 of SDCC adds support for banking with `#pragma bank 1`, RAM banking is still broken. The `.ihx` file has the data at the right place, everything else in...

> How it works: in the linker stage (see the makefile in the game directory), you set the code bank locations to 0x014000, 0x024000, 0x034000, etc. IHX2GB parses the .map...

https://github.com/andreasjhkarlsson/gbdk-n/blob/master/libc/font.s#L514: ```asm .area _CODE ; Support routines _gotoxy:: ; Banked lda hl,.BANKOV(sp) ld a,(hl+) ld (.curx),a ld a,(hl) ld (.cury),a ret ``` `gotoxy()` is quite short, it just sets two...

```c gotoxy(11, 8); setchar('h'); ``` This one works without a problem. ``` void main () { DISPLAY_ON; cls(); printf(" "); gotoxy(11, 8); printf("O HAI!"); } ``` `gotoxy` totally works if...

``` #include void main () { DISPLAY_ON; cls(); gotogxy(11, 8); gprintf("O HAI!"); } ``` I think this is what you are looking for? I never worked with these functions, I...

> but the printf in GBDK-n is from SDCC. That is only partially true. `printf()` relies on `putchar()` and that is implemented by gbdk-n.

~Just use `makebin -Z -yc` or add the `-yc` flag to `gbdk-n-make-rom.sh`~ `gbdk-n-make-rom.sh -yc`

``` set_interrupts(VBL_IFLAG | JOY_IFLAG); ``` I think `set_bkg_data()` needs VBL interrupt active for moving the data into VRAM So it is likely that the emulator does not hang and you...

I never tried https://github.com/untoxa/hUGEBuild and it's possible to could get that to work with gbdk-n somehow, but since it depends on gbdk-2020 v4, it's unlikely it will work unchanged.