Search found 23 matches

by VasiliyFamiliya
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...
by VasiliyFamiliya
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...
by VasiliyFamiliya
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...
by VasiliyFamiliya
Wed Oct 19, 2022 2:25 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Tue Oct 18, 2022 5:51 pm You can't do that, because it is not a memory address but a write only mapped port. You can't predict the value you will get, so you'll just add dirt to your values.
So what should I do then?
by VasiliyFamiliya
Tue Oct 18, 2022 7:02 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Mon Oct 17, 2022 3:20 pm char spr0 @0x4FF0;

spr0=0x2c|0x...

You have no way to touch only some bit.
Still there no any visible sprites anyway.
by VasiliyFamiliya
Mon Oct 17, 2022 3:05 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Sun Oct 16, 2022 9:33 pm so, I suppose you solved the compile error.
That bitwise expression seems strange to me:

char spr0 @0x4FF0|0xFC;

what are you willing to do?
To insert a 2c value to the 2-7 bits. FC is a 11111100 number represented in the hex form.
by VasiliyFamiliya
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...
by VasiliyFamiliya
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...
by VasiliyFamiliya
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?
by VasiliyFamiliya
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...
by VasiliyFamiliya
Fri Oct 14, 2022 1:45 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Thu Oct 13, 2022 2:32 pmNo
Then please, send me some demo piece of code of interaction with hardware sprites.
by VasiliyFamiliya
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?
by VasiliyFamiliya
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...
by VasiliyFamiliya
Tue Oct 11, 2022 11:28 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Tue Oct 11, 2022 11:06 am
To fix that, it is simply a matter of adding here and there in dstar.c the following lines:

#asm
ei
#endasm

It will indirectly kick in the ISR code, which knows what to do with the watchdog.
What places of the code have I to put it in?
by VasiliyFamiliya
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,...
by VasiliyFamiliya
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 ...
by VasiliyFamiliya
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:...
by VasiliyFamiliya
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.
by VasiliyFamiliya
Fri Oct 07, 2022 2:31 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Thu Oct 06, 2022 5:27 pm The reason for me asking is that MAME usually quits when the checksum is restricted and unmatched.
I did not expect a blank screen.
Неre is puckmod archive I tested.
by VasiliyFamiliya
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 ...
by VasiliyFamiliya
Wed Oct 05, 2022 9:05 am
Forum: Other targets
Topic: PacMan hardware
Replies: 41
Views: 8444

Re: PacMan hardware

stefano wrote: Tue Oct 04, 2022 4:12 pm in the past the "puckmod" trick, I'm not 100% sure it still works.
It doesn't work anymore. After I swapped the maincpu puckmod roms and launched with a latest official MAME release through the command prompt, all I saw was an empty black screen.
by VasiliyFamiliya
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!
by VasiliyFamiliya
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?