Skip to content

Instantly share code, notes, and snippets.

/*
MSX2+ YJK colors | MSX2+ / z88dk
Copyright (c) 2019-2024 BALLOON | FU-SEN
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019-2024
zcc +msx -lndos -create-app -subtype=disk -bn yjkcolor yjkcolor.c
--> BLOAD"YJKCOLOR.MSX",R
*/
void ldirvm(int addr, int vaddr, int size)
@fu-sen
fu-sen / balloons.c
Last active April 19, 2025 02:21
钨船 Balloons version 2 | MSX-BASIC 2.0+ (MSX2/MSX2+/turbo R) / z88dk https://msxjpn.jimdofree.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0/%E9%A2%A8%E8%88%B9/
/*
Balloons version 2 | MSX2 / z88dk
Copyright (c) 2019-2025 BALLOON | FU-SEN
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019-2025
zcc +msx -lndos -create-app -subtype=disk -bn balloons balloons.c
--> BLOAD"BALLOONS.MSX",R
*/
void wrtvdp(char reg, char data)
@fu-sen
fu-sen / balloons-dos.c
Last active April 19, 2025 02:21
钨船 Balloons version 2 MSX-DOS .com version | MSX-DOS / MSX2 / z88dk | download: https://msx.surge.sh/balloons.com | https://msxjpn.jimdofree.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0/%E9%A2%A8%E8%88%B9/
/*
Balloons version 2 MSX-DOS .com version | MSX-DOS / MSX2 / z88dk
Copyright (c) 2019-2025 BALLOON | FU-SEN
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019-2025
zcc +msx -subtype=msxdos -bn balloons.com balloons-dos.c
(MSX-DOS 2.30+ set the following: SET EXPERT ON )
--> BALLOONS
*/
/*
Balloons Demo | MSX / z88dk
Copyright (c) 2019-2025 BALLOON | FU-SEN
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019-2025
zcc +msx -lndos -create-app -subtype=disk -bn balldemo balldemo.c
--> BLOAD"BALLDEMO.MSX",R
zcc +msx -lndos -create-app -bn balldemo balldemo.c
--> BLOAD"CAS:",R (BALLDEMO.CAS)
zcc +msx -lndos -create-app -subtype=wav -bn balldemo balldemo.c
@fu-sen
fu-sen / balloon.c
Created July 1, 2019 02:47
z88dk sprite sample 8x8
char sprite[] = { 8, 8,
0x0e /* ....###. */,
0x1d /* ...###.# */,
0x1f /* ...##### */,
0x1f /* ...##### */,
0x0e /* ....###. */,
0x08 /* ....#... */,
0x10 /* ...#.... */,
0xe0 /* ###..... */
};
@fu-sen
fu-sen / 5x5.c
Created July 1, 2019 02:55
z88dk sprite sample 5x5
char sprite[] = { 5, 5,
0x70 /* .###.... */,
0xe8 /* ###.#... */,
0xf8 /* #####... */,
0xf8 /* #####... */,
0x70 /* .###.... */
};
@fu-sen
fu-sen / sprite.c
Last active July 1, 2019 04:26
z88dk sprite sample
#include <graphics.h>
#include <games.h>
#include <stdio.h>
char balloon[] = { 8, 8,
0x0e, 0x1d, 0x1f, 0x1f, 0x0e, 0x08, 0x10, 0xe0
};
void main(){
clg();
@fu-sen
fu-sen / test.c
Last active December 4, 2019 03:39
z88dk PC-E200/G text test
#include <graphics.h>
#include <conio.h>
#include <stdio.h>
main(){
clg();
gotoxy(1,1);
printf("test\n");
@fu-sen
fu-sen / text.c
Last active December 4, 2019 03:38
text sample | z88dk
#include <stdio.h>
void main() {
for (int y=1; y<=6; y++) {
for (int x=1; x<=24; x++) {
printf("%c[%u;%uH ", 27, y, x);
}
}
printf("%c[%u;%uH",27,2,2); // locate
@fu-sen
fu-sen / sin.c
Last active April 19, 2025 02:20
Sine curve | z88dk mono graphics
/*
Sine curve | z88dk mono graphics
Copyright (c) 2019 BALLOON | FU-SEN
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
Colecovision:
zcc +coleco -lm -create-app -bn sin sin.c (generate sin.rom)
MSX (-pragma-define:CLIB_DEFAULT_SCREEN_MODE=3 also works):
zcc +msx -lm -pragma-define:CLIB_DEFAULT_SCREEN_MODE=2 -create-app -bn sin sin.c (Cassette tape image, generate sin.cas)