Search found 23 matches
- Thu Nov 17, 2022 10:33 am
- Forum: MSX, SVI, TMS99x8 and Sega Master System
- Topic: [SMS] VRAM tiles and palettes quick swap.
- Replies: 2
- Views: 2153
Re: [SMS] VRAM tiles and palettes quick swap.
Chaotic flashing has ceased, but there is no any text shown. #include <stdlib.h> #include <sms.h> #include <stdio.h> unsigned char title_pal[] = {0x01, 0x01, 0x3F, 0x06, 0x05, 0x16, 0x1A, 0x00, 0x16, 0x2A, 0x1A, 0x1B, 0x3F, 0x2A, 0x2F, 0x2F}; unsigned char text1_pal[] = {0x3F, 0x00, 0x3F, 0x3E, 0x3C...
- Thu Nov 03, 2022 2:11 pm
- Forum: MSX, SVI, TMS99x8 and Sega Master System
- Topic: [SMS] VRAM tiles and palettes quick swap.
- Replies: 2
- Views: 2153
[SMS] VRAM tiles and palettes quick swap.
I tried to overcome the SMS VDP free tiles RAM cells amount and palettes number hardware limitation through the swapping of VRAM and palettes content before each screen refresh. Sega-Retro says , that it can be achieved with a various interrupt tricks. I found an add_pause_int and add_raster_int fun...
- Thu Oct 20, 2022 2:13 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
unsigned char spr0 @0x4FF0; unsigned char spr0_save=0; char spr0_x @0x5060; void main() { int i; SetupLevel(); /* Display the first level */ spr0_save|=0x02c; spr0=spr0_save; spr0=0x2c|0xfc; spr0_x=112; /* Loop keyhandler till you finished the game */ while (CheckNotFinished()) Gamekeys(); } It doe...
- Wed Oct 19, 2022 2:25 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Tue Oct 18, 2022 7:02 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Mon Oct 17, 2022 3:05 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Sun Oct 16, 2022 1:48 pm
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
It must be the '@' hack. Please try compiling it with a normal 'char' declaration, if it works, please try by inserting it back with the address in decimal. char spr0 @0x4FF0|0xFC; char spr0_x @0x5060; void main() { int i; SetupLevel(); /* Display the first level */ spr0=0x2c; spr0_x=112; /* Loop k...
- Sun Oct 16, 2022 8:59 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
That's how the main function looks now: #define spr0 @0x4FF0|0xFC char spr0_x @0x5060; void main() { int i; SetupLevel(); /* Display the first level */ spr0=0x2c; spr0_x=112; /* Loop keyhandler till you finished the game */ while (CheckNotFinished()) Gamekeys(); } But every time I try to build a new...
- Sun Oct 16, 2022 3:28 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
What is the best way to set the sprite ID bits in the 4FF0h register?
- Sat Oct 15, 2022 10:48 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
In my information such examples do not exist. https://www.walkofmind.com/programming/pie/hardware.htm To refer to variable locations you might, in example, use our sccz80 slang: char spr0_x @0x5060; or, you could define a structure Remember that the graphics are in a ROM chip, you'll display PACMAN...
- Fri Oct 14, 2022 1:45 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Thu Oct 13, 2022 3:09 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
Oh, by the way - does dstar program utilize any Pac-Man hardware sprites?
- Tue Oct 11, 2022 1:49 pm
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
My quick win: /* Decompress Level into the Board */ for (x=0; x!=36; x++) { #asm ei #endasm (...) /* Check if a Level is (not) finished: * There are 144 squares in each Level * * Note the use of != instead of < or <= * - this is faster to execute on the Z80! */ char CheckNotFinished(void) { char *p...
- Tue Oct 11, 2022 11:28 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Tue Oct 11, 2022 3:03 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
On my side, I chose the IM1 interrupt mode which PACMAN did not use, I'll try IM2. I have a way to fix the example by simply disabling the interrupts and forcing the watchdog reset in the game loop.. but looks like a regression to me. I think, it's worth at least to try the options you listed, and,...
- Mon Oct 10, 2022 12:30 pm
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
I think I found what's going on, something changed on MAME quite recently. My post above is still valid if you're using MAME 0.194. MAME 0.208 still works, but the ROM files need to be given different names and put in a ROM folder named "pacmod" pacmanh.6e pacman.6f pacmanh.6h pacmanh.6j ...
- Sat Oct 08, 2022 10:57 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
C:\z80\mess>mame puckmod namcopac.6e WRONG CHECKSUMS: EXPECTED: CRC(fee263b3) SHA1(87117ba5082cd7a615b4ec7c02dd819003fbd669) FOUND: CRC(52d84c65) SHA1(d3dc9069176526656cf9d17f89aaf79e15fe985f) namcopac.6f WRONG CHECKSUMS: EXPECTED: CRC(39d1fc83) SHA1(326dbbf94c6fa2e96613dedb53702f8832b47d59) FOUND:...
- Fri Oct 07, 2022 2:47 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
Sorry, I chose a wrong format. Here is the ZIP.
- Fri Oct 07, 2022 2:31 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Thu Oct 06, 2022 3:08 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
I wonder if it is MAME or a regression in z88dk. Are you keeping part of the original ROMs for the graphics etc? All rest ROMs are taken from the non-merged puckmod MAME rom archive. Maybe, the specific version of MAME, where Pac-Man HW roms database not hardcoded into pacman.cpp driver but stored ...
- Wed Oct 05, 2022 9:05 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
- Wed Oct 05, 2022 3:55 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
Do you have a full MSYS set with all necessary packages installed beforehand and MAME sources, whose buildability is tested and proved already? I have tormented so much, when tried to build the custom MAME build by myself!
- Tue Oct 04, 2022 4:35 am
- Forum: Other targets
- Topic: PacMan hardware
- Replies: 41
- Views: 8444
Re: PacMan hardware
What is a fastest and easiest way to edit the MAME games database for Pac-Man HW developers?