Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active April 19, 2025 02:13
Show Gist options
  • Save fu-sen/7fd008fa05b437994e19970149006a4c to your computer and use it in GitHub Desktop.
Save fu-sen/7fd008fa05b437994e19970149006a4c to your computer and use it in GitHub Desktop.
/*
POKE COM logo | PC-E200 / G series | z88dk C language
Copyright (c) 2025 BALLOON | FU-SEN
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2025
zcc +g800 -create-app -bn logo logo.c
--> MON
R
G100
*/
void putimg(char posx, char posy, int addr, char size)
{
#asm
ld ix,0
add ix,sp
ld b,(ix+2) ; size
ld l,(ix+4) ; addr
ld h,(ix+5)
ld d,(ix+6) ; posy
ld e,(ix+8) ; posx
call 0bfd0h
#endasm
}
void getcode()
{
#asm
call 0bcfdh
ld l,a
ld h,0
#endasm
}
char logo[] ={
0xf0,0xf0,0xf0,0x70,0x70,0x70, 0x70,0x70,0x70,0x70,0x70,0x70,
0x80,0x80,0x80,0x00,0x00,0x00, 0x80,0x80,0x80,0x70,0x70,0x70,
0x70,0x70,0x70,0x70,0x70,0x70, 0x80,0x80,0x80,0x00,0x00,0x00,
0xf0,0xf0,0xf0,0x00,0x00,0x00, 0x00,0x00,0x00,0x80,0x80,0x80,
0x70,0x70,0x70,0x00,0x00,0x00, 0xf0,0xf0,0xf0,0x70,0x70,0x70,
0x70,0x70,0x70,0x70,0x70,0x70, 0x70,0x70,0x70,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x80,0x80,0x80,0x70,0x70,0x70,
0x70,0x70,0x70,0x70,0x70,0x70, 0x80,0x80,0x80,0x00,0x00,0x00,
0x80,0x80,0x80,0x70,0x70,0x70, 0x70,0x70,0x70,0x70,0x70,0x70,
0x80,0x80,0x80,0x00,0x00,0x00, 0xf0,0xf0,0xf0,0x80,0x80,0x80,
0x00,0x00,0x00,0x80,0x80,0x80, 0xf0,0xf0,0xf0,0x00,0x00,0x00,
0xff,0xff,0xff,0xe0,0xe0,0xe0, 0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,
0x1f,0x1f,0x1f,0x00,0x00,0x00, 0xff,0xff,0xff,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0xff,0xff,0xff,0x00,0x00,0x00,
0xff,0xff,0xff,0xe0,0xe0,0xe0, 0x1c,0x1c,0x1c,0x03,0x03,0x03,
0x00,0x00,0x00,0x00,0x00,0x00, 0xff,0xff,0xff,0xe0,0xe0,0xe0,
0xe0,0xe0,0xe0,0xe0,0xe0,0xe0, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0xff,0xff,0xff,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x03,0x03,0x00,0x00,0x00,
0xff,0xff,0xff,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0x03,0x03,0x03,
0xfc,0xfc,0xfc,0x03,0x03,0x03, 0xff,0xff,0xff,0x00,0x00,0x00,
0xff,0xff,0xff,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x3f,0x3f,0x3f,0xc0,0xc0,0xc0,
0xc0,0xc0,0xc0,0xc0,0xc0,0xc0, 0x3f,0x3f,0x3f,0x00,0x00,0x00,
0xff,0xff,0xff,0x00,0x00,0x00, 0x07,0x07,0x07,0x38,0x38,0x38,
0xc0,0xc0,0xc0,0x00,0x00,0x00, 0xff,0xff,0xff,0xc0,0xc0,0xc0,
0xc0,0xc0,0xc0,0xc0,0xc0,0xc0, 0xc0,0xc0,0xc0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x3f,0x3f,0x3f,0xc0,0xc0,0xc0,
0xc0,0xc0,0xc0,0xc0,0xc0,0xc0, 0x38,0x38,0x38,0x00,0x00,0x00,
0x3f,0x3f,0x3f,0xc0,0xc0,0xc0, 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
0x3f,0x3f,0x3f,0x00,0x00,0x00, 0xff,0xff,0xff,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0xff,0xff,0xff,0x00,0x00,0x00,
0x01,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x00,0x00,0x00, 0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01, 0x01,0x01,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x01,0x01, 0x01,0x01,0x01,0x01,0x01,0x01,
0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x01,0x00,0x00,0x00
};
void main() {
for(int y=0; y<4; y++) {
for(int x=0; x<24; x++) {
/* PC-G850 */
/* putimg(x, y+1, logo+(y*24+x)*6, 6);
/* PC-G815 /
/* putimg(x, y, logo+(y*24+x)*6, 6); */
/* PC-E200 / G series */
putimg(x, y, logo+(y*24+x)*6, 5);
}
}
getcode();
}
@fu-sen
Copy link
Author

fu-sen commented Feb 11, 2025

スクリーンショット 2025-02-11 21 30 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment