Last active
April 19, 2025 02:13
-
-
Save fu-sen/7fd008fa05b437994e19970149006a4c to your computer and use it in GitHub Desktop.
POKE COM logo - PC-E200 / G siries - z88dk C language https://poke-com.jimdofree.com/z88dk-%E3%81%A7%E3%82%AF%E3%83%AD%E3%82%B9%E9%96%8B%E7%99%BA%E3%81%99%E3%82%8B/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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(); | |
} |
Author
fu-sen
commented
Feb 11, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment