lol wtf TETRIS!!!

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby Mizu Kitsune » Tue Aug 11, 2009 4:13 pm

i believe we are talking QuakeC rather than C.
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby paperclips » Tue Aug 11, 2009 4:24 pm

hm
[Want to develop? Look HERE]. Image Image Gif sauce.
paperclips
Alien trapper
 
Posts: 346
Joined: Mon Jan 12, 2009 10:27 am
Location: internets

Postby ai » Tue Aug 11, 2009 4:31 pm

Mizu Kitsune wrote:i believe we are talking QuakeC rather than C.

QC and C is basically the same thing right? That's how I understood it, so there shouldn't really be any differences (or the huge at least) in those cases.
ai
Forum addon
 
Posts: 2131
Joined: Sun Mar 05, 2006 3:54 pm
Location: Behind you

Postby Mr. Bougo » Tue Aug 11, 2009 4:31 pm

Code: Select all
void ifelif()
{
   if(TRUE)
   {
      print("true\n");
   } else if(FALSE) {
      print("false\n");
   }
}


fteqcc -Fwasm:
Code: Select all
void () ifelif;
void() ifelif = asm
{
        IFNOT           FILE_APPEND,    4;
        STORE_F "true
",      parm0_x;
        CALL1           print;
        GOTO            4;
        IFNOT           KEY_GAME,       3;
        STORE_F "false
",      parm0_x;
        CALL1           print;
        DONE;
}



---


Code: Select all
void ifelif()
{
   if(TRUE)
   {
      print("true\n");
   } else {
      if(FALSE)
         print("false\n");
   }
}


fteqcc -Fwasm:
Code: Select all
void () ifelif;
void() ifelif = asm
{
        IFNOT           FILE_APPEND,    4;
        STORE_F "true
",      parm0_x;
        CALL1           print;
        GOTO            4;
        IFNOT           KEY_GAME,       3;
        STORE_F "false
",      parm0_x;
        CALL1           print;
        DONE;
}
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby divVerent » Tue Aug 11, 2009 5:09 pm

Don't be so constructive!
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Mr. Bougo » Tue Aug 11, 2009 5:29 pm

But that's deconstructive!
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby Mizu Kitsune » Tue Aug 11, 2009 6:34 pm

ai wrote:
Mizu Kitsune wrote:i believe we are talking QuakeC rather than C.

QC and C is basically the same thing right? That's how I understood it, so there shouldn't really be any differences (or the huge at least) in those cases.

completely different.
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby ai » Tue Aug 11, 2009 7:09 pm

Mizu Kitsune wrote:completely different.

You mean QC and C or just the if statements? Then why do people on these forums say it's very much related to each other? If you know C you definitely can know QC, that's what they say.
ai
Forum addon
 
Posts: 2131
Joined: Sun Mar 05, 2006 3:54 pm
Location: Behind you

Postby Mizu Kitsune » Tue Aug 11, 2009 7:52 pm

quakec and c.
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby ai » Tue Aug 11, 2009 9:39 pm

I meant quakeC. Just that I shortened it cause I thought we all knew what we talked about.
ai
Forum addon
 
Posts: 2131
Joined: Sun Mar 05, 2006 3:54 pm
Location: Behind you

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron