Also looking for a game

Page 7/7
1 | 2 | 3 | 4 | 5 | 6 |

By snout

Ascended (15184)

snout's picture

02-03-2004, 18:12

Could you give the rest for us a small in-short explanation? Tongue

By anonymous

incognito ergo sum (116)

anonymous's picture

02-03-2004, 18:39

Ok.. thinlizzy said:
"int is a word and must be used in loop or temp vars because the optimizer likes to map it on a register"

'int' is not a word.
'int' is (depending on the compiler used) the native CPU register size.
A word is the number of bits that a CPU can move between a register and memory.

An 'int' on Z80 could be 8 or 16 bits. On x86 this could be 16 (8086-80268), 32 (80386 and up) or 64 (for AMD64) bits.
A word on Z80 is 16 bit. On 8086 this is also 16. Although the native size of recent generations is 32 bits, the word size in the x86 world has not changed for historic reasons. On native 32 bit CPU's like ARM a word is 32 bits, and the term halfword is used for 16 bits.

Obviously compilers like to map int on a register. Ultimately every datatype gets mapped onto a register in one way or another, so it doesn't say much.

On Z80 a loop variable of type 'char' is a lot faster, because the loop can be optimized into DJNZ form.

thinlizzy also said:
"all good C programmer knows int type must not be used in data structures. char, short or long must be used, instead"

There is no reason not to use 'int' in a data structure. Only when you are porting a C program between different architectures you might be wary about it. But when using the same compiler (like GCC) it will usually try to keep all type sizes the same.

In fact, none of the variable types in C is guaranteed to be the same size on every compiler.
'char' might be 7 or 8 bits (some processors don't support 'unsigned char')
'short' might be 8 or 16 bits
'int' might be 8, 16, 32 or 64 bits (usually register size)
'long' might be 32 or 64 bits (usually pointer size)
'long long ' might be 64 or 128 bits

These are not even all possibilities, as all of them depend on a. the compiler and b. the CPU architecture. C only defines 'char <= short <= int <= long <= long long'.

By Luuk

Ambassador (0)

Luuk's picture

02-03-2004, 21:46

I'm looking for a game too, lemme describe.

In the game u control a robot or something like that. U see the robot from above on your screen. For each second u are playing u get a certain amount of credits whit these you are able to buy tanks (and a few defend towers and lives for your robot) which will move to the enemy base automatically.
The map is like one long road. On the start of the road is your base and on the end of the road is the enemy base.
You are able to play the game against each other in split screen.

As a big MSX-games fan I would really appreciate if somebody would scream out the name of the game in here, since this was probably the most addictive game I ever played on my holy MSX 2.

By Vincent van Dam

Hero (513)

Vincent van Dam's picture

02-03-2004, 22:52

Sounds like "Girly Block".

By Abi

Hero (600)

Abi's picture

02-03-2004, 23:19

mmm i know what game that is:
I played it for hours and hours with my little brother!!!

it's: HERZOG !!!!!
LOL!

By Luuk

Ambassador (0)

Luuk's picture

02-03-2004, 23:53

HERZOG IS IT!!! REALLY THX ALOT!

Just saw a few screenshots, and the flying robots... it definately is it!!! Last time i've played it is like 1398756135 jears ago, so the graphics were heavenly in my mind... but that disapointed me a bit... but still, I don't care, I bet the gameplay is as oraclish as it used to be Big smile

By anonymous

incognito ergo sum (116)

anonymous's picture

03-03-2004, 00:08

Great strategy game indeed.. One of the few good strategy games on MSX, and IMO a perfect balance.

By ronin

Supporter (13)

ronin's picture

06-03-2004, 19:45

Thanx GuyveR800 I´ll try and see what I can get out of there, I dont think this will be much prob to port it since Im not using any pointer, all are arrays with fixed size so well anyway I´ll try

And yeah I agree, Herzog was quite a good strategy game, I even saw a Genesis version (Herzog Zwei) and the balance was quite good such an addictive game, I wonder why they didnt make a newer version since then... well maybe the ones who developed both of them just disappeared or joined another teams? anybody know about em?

By anonymous

incognito ergo sum (116)

anonymous's picture

06-03-2004, 19:58

www.tecnosoft.com, that's them... But I don't know how long this "renewal" message has been there :/

By ronin

Supporter (13)

ronin's picture

08-03-2004, 22:00

ah ic, lets hope they are releasing the 3rd part someday, well thanx anyway GuyveR800

Page 7/7
1 | 2 | 3 | 4 | 5 | 6 |