News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Recent posts

#1
A
Programming / Re: triple buffering
Last post by Anthony Flack - Today at 22:52
I'm not aware of any CPC games that use triple buffering, are there? 

I am doing the exact same thing as abalore; I have a front buffer, a back buffer and a clean buffer for restoring the background. I guess we both independently concluded this was fastest. 
#2
Quote from: andycadley on Today at 21:11
Quote from: Prodatron on Today at 21:06Is there any reason why you should know about these undocumented bits in the F-register beside to develop a 100% correct Z80 emulator?
I never understood why this was necessary to know. Does it have any advantages for making code better/faster/shorter? Does anyone have an example for this? Or is this just for fun (which includes detecting, if a Z80 emu is cool or not).
On the Spectrum, at least, the werewolf goes in the wrong direction if you don't emulate them correctly. Apparently a programmer accidentally took advantage of them.
Ok, so it's the Rhino in Sabre Wulf, as well as issues with Ghost and Goblins and speed lock games, but the principle is the same: emulating this stuff actually makes a difference some times.

http://z80.info/z80info.htm
#3
Quote from: Prodatron on Today at 21:06Is there any reason why you should know about these undocumented bits in the F-register beside to develop a 100% correct Z80 emulator?
I never understood why this was necessary to know. Does it have any advantages for making code better/faster/shorter? Does anyone have an example for this? Or is this just for fun (which includes detecting, if a Z80 emu is cool or not).
On the Spectrum, at least, the werewolf goes in the wrong direction if you don't emulate them correctly. Apparently a programmer accidentally took advantage of them.
#4
avatar_Prodatron
Programming / Re: bits 5 and 3 of F register...
Last post by Prodatron - Today at 21:06
Is there any reason why you should know about these undocumented bits in the F-register beside to develop a 100% correct Z80 emulator?
I never understood why this was necessary to know. Does it have any advantages for making code better/faster/shorter? Does anyone have an example for this? Or is this just for fun (which includes detecting, if a Z80 emu is cool or not).
#5
avatar_robcfg
Emulators / Re: CPCEC a new emulator from ...
Last post by robcfg - Today at 20:35
Muchas gracias, César! 
#6
https://theretrohour.com/amstrad-cpc-40th-anniversary-with-roland-perry-pt-1-the-retro-hour-ep425/

Join us on a special journey back in time with Roland Perry, the visionary tech consultant behind the legendary Amstrad CPC, as we celebrate 40 incredible years of this iconic machine. In this not-to-be-missed episode, Roland takes us from his early days tinkering with electronics in school, through the founding of Ambit International, right up to his crucial role in steering the Amstrad CPC to success against heavyweights like the ZX Spectrum and Commodore 64.
#7
avatar_MoteroV4
Programming / Re: bits 5 and 3 of F register...
Last post by MoteroV4 - Today at 20:19
bit   7  6  5  4  3  2  1  0
flag SF ZF YF HF XF PF NF CF

Bits 5 (YF) and 3 (XF) correspond to undocumented flags.

YF flag: A copy of bit 5 of the result.
XF flag: A copy of bit 3 of the result.

http://www.myquest.nl/z80undocumented/

It seems that in practice, on old NMOS Z80, they should follow this behavior pattern. But it is recommended not to base our programs on undocumented features because the current replacement 84C00 CMOS Z80 probably does not meet them.
#8
avatar_McArti0
Programming / Re: bits 5 and 3 of F register...
Last post by McArti0 - Today at 19:55
Copilot from Microsoft Edge say:  :o

The Flag Register (also known as the F register) in the Z80 processor is an 8-bit register that stores information about the results of the last operation performed. Each bit in the flag register represents a specific flag. Here is a description of each bit:
  • Bit 7 (S - Sign Flag): Set to 1 when the result of an operation is negative.
  • Bit 6 (Z - Zero Flag): Set to 1 when the result of an operation is zero.
  • Bit 5 (5 - Flag 5): A replica of the fifth bit of the accumulator (or result).
  • Bit 4 (H - Half Carry Flag): Set to 1 when there is a half carry (or borrow) between bits 3 and 4 during addition or subtraction operations.
  • Bit 3 (3 - Flag 3): A replica of the third bit of the accumulator (or result).
  • Bit 2 (P/V - Parity/Overflow Flag): Set to 1 when the result of an operation has even parity (for logical operations) or when there is an overflow (for arithmetic operations).
  • Bit 1 (N - Add/Subtract Flag): Set to 1 when the last operation was subtraction.
  • Bit 0 (C - Carry Flag): Set to 1 when there is a carry (or borrow) from the most significant bit during addition or subtraction operations.
#9
avatar_McArti0
Programming / Re: bits 5 and 3 of F register...
Last post by McArti0 - Today at 19:46
im testing now  :D
#10
avatar_Fran123
Programming / Re: bits 5 and 3 of F register...
Last post by Fran123 - Today at 19:29
I ask about bits 3 and 5
Powered by SMFPacks Menu Editor Mod