100 goals you said? Here you go!

Talk about EVERYTHING related to Kick Off 1 + 2.

Moderator: Moderators

User avatar
manicx
Site Admin
Site Admin
Posts: 8783
Joined: Mon Mar 11, 2002 12:00 am
Location: Athens, Hellas
Contact:

Postby manicx » Fri Aug 01, 2003 9:11 am

It's because he was using this:

http://www.proxyone.com
User avatar
alkis21
Moderator
Moderator
Posts: 15015
Joined: Wed Jul 04, 2001 12:00 am
Location: Athens, Greece
Contact:

Postby alkis21 » Thu Oct 11, 2007 11:54 am

Wow, I didn't remember this one... I really did have a lot of time in my hands back then.
Remember, remember, the 4th and the 3rd of November
Image
User avatar
Bounty Bob
5000+ Poster!
5000+ Poster!
Posts: 5261
Joined: Sun Sep 19, 2004 7:16 pm

Postby Bounty Bob » Thu Oct 11, 2007 11:57 am

How are you getting on with the 128 and 255 goal tests?
User avatar
alkis21
Moderator
Moderator
Posts: 15015
Joined: Wed Jul 04, 2001 12:00 am
Location: Athens, Greece
Contact:

Postby alkis21 » Thu Oct 11, 2007 11:59 am

If only I could play Kick Off in the office...
Remember, remember, the 4th and the 3rd of November
Image
User avatar
VKafiris
6000+ Poster!
6000+ Poster!
Posts: 6847
Joined: Sat Oct 06, 2001 12:00 am
Location: Athens, Greece
Contact:

Postby VKafiris » Thu Oct 11, 2007 12:00 pm

alkis21 wrote:If only I could play Kick Off in the office...


That's it, you're FIRED! :evil:

in courtesy of Alkis' Boss.
Vassilis - Official KOA Black Sheep
2016 World Cup XVI (Milan) - Silver Cup Winner
Image
User avatar
Bounty Bob
5000+ Poster!
5000+ Poster!
Posts: 5261
Joined: Sun Sep 19, 2004 7:16 pm

Postby Bounty Bob » Thu Oct 11, 2007 12:07 pm

alkis21 wrote:If only I could play Kick Off in the office...
If you spent less time on here you probably could. :wink: :lol:
User avatar
karios
Newbie
Newbie
Posts: 220
Joined: Tue Oct 22, 2002 12:00 am
Location: Geneva, Switzerland
Contact:

Postby karios » Thu Oct 11, 2007 4:27 pm

Steve Camber wrote:Good work Alkis !

I can't see your pic, cos I still can't access the forum properly. The next challenge is to beat 127, cos the score might be stored as a signed 8 bit integer which could mean all sorts of entertainment when reaching 128. Or maybe not ;)

Why on Earth would anyone use a signed integer to store a football score? Are there any negative scores I am not aware of?
:lol: :lol:
Image
User avatar
alkis21
Moderator
Moderator
Posts: 15015
Joined: Wed Jul 04, 2001 12:00 am
Location: Athens, Greece
Contact:

Postby alkis21 » Thu Oct 11, 2007 8:23 pm

It is unlikely, but not impossible... I mean you have to assign some kind of attribute to a variable, and if it's not important what that attribute is you usually use the first that comes to mind... at least that's what I do. :oops:

But those are old posts... Steve has cracked the code now so all he has to do is look!
Remember, remember, the 4th and the 3rd of November
Image
User avatar
karios
Newbie
Newbie
Posts: 220
Joined: Tue Oct 22, 2002 12:00 am
Location: Geneva, Switzerland
Contact:

Postby karios » Thu Oct 11, 2007 8:29 pm

alkis21 wrote:It is unlikely, but not impossible... I mean you have to assign some kind of attribute to a variable, and if it's not important what that attribute is you usually use the first that comes to mind... at least that's what I do. :oops:

But those are old posts... Steve has cracked the code now so all he has to do is look!


Trust me, for us informaticians it's more than important, I would laugh at someone for a week if he actually spent half the byte's capacity to store something that he never will use.
Especially in the old days where every byte counted.
Btw, in assembly there is no difference since everything is just bytes, but I am pretty sure that Dini used the full potential of the little resources he had. It is one of the reasons we are all writing in this forum today.
Image
User avatar
Bounty Bob
5000+ Poster!
5000+ Poster!
Posts: 5261
Joined: Sun Sep 19, 2004 7:16 pm

Postby Bounty Bob » Thu Oct 11, 2007 8:37 pm

karios wrote:
Steve Camber wrote:Good work Alkis !

I can't see your pic, cos I still can't access the forum properly. The next challenge is to beat 127, cos the score might be stored as a signed 8 bit integer which could mean all sorts of entertainment when reaching 128. Or maybe not ;)

Why on Earth would anyone use a signed integer to store a football score? Are there any negative scores I am not aware of?
:lol: :lol:
My fixture software uses -1 to signify that no score has been entered. Seemed logical to me.
User avatar
alkis21
Moderator
Moderator
Posts: 15015
Joined: Wed Jul 04, 2001 12:00 am
Location: Athens, Greece
Contact:

Postby alkis21 » Thu Oct 11, 2007 8:46 pm

I guess you're right Marios. That's probably the difference between people who studied programming and those who are self taught such as myself. Well, I was supposedly taught at the University but I never attended the classes.

Are you still in Athens? We have a tournament on Sunday you know.
Remember, remember, the 4th and the 3rd of November
Image
User avatar
Steve Camber
Mad! 7000+ poster!
Mad! 7000+ poster!
Posts: 7530
Joined: Sat Jun 16, 2001 12:00 am
Location: Sheffield, England
Contact:

Postby Steve Camber » Fri Oct 12, 2007 8:47 am

As it has been mentioned, at the low level that KO2 was programmed, a byte is a byte. Scores are stored as 2 byte words (16-bit), so that can store 0 to 65535 in theory. The signed nature only comes into effect when scores are compared. Here Dino uses the signed compare instead of the unsigned compare, so if you are winning 32767 - 0 and you score another goal to make it 32768 - 0 the comparison will treat your 32768 goals as -32768 goals.. and you will lose the match. The number display system uses 5 digits, but it's not clear what happens if 32768 or bigger is displayed, that's one thing left to try!
--
SteveC - Kick Off engineer - Ranked somewhere waaaay down the list
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "

Ask me about online KO2 :)
User avatar
Abyss
Moderator
Moderator
Posts: 5901
Joined: Wed Sep 18, 2002 12:00 am
Location: Athens, Greece
Contact:

Postby Abyss » Fri Oct 12, 2007 9:03 am

Using two bytes to hold a football score seems a bit optimistic (or pessimistic, depending on your point of view) to me.

Who is online

Users browsing this forum: No registered users and 3 guests