Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Whryy doesnt my code worked :'(

Name: Anonymous 2006-06-01 15:46

                    k = board[x-1][y];
                    if (((k&16384) == 0) && (((ang+512)&1024) > 0))
                    {
                        if (((k&1023) == door1) || ((k&1023) == door1+5))
                        {
                            doorx = x-1, doory = y, doorstat = door1;
                            if ((posx&1023) < 256)
                                posx = (posx&0xfc00)+256;
                        }
                        if (((k&1023) == door2) || ((k&1023) == door2+5))
                        {
                            doorx = x-1, doory = y, doorstat = door2;
                            if ((posx&1023) < 256)
                                posx = (posx&0xfc00)+256;
                        }
                        if (((k&1023) == door3) || ((k&1023) == door3+7))
                        {
                            doorx = x-1, doory = y, doorstat = door3;
                            if ((posx&1023) < 256)
                                posx = (posx&0xfc00)+256;
                        }
                        if ((((k&1023) == door4) && (coins >= 10)) || ((k&1023) == door4+6))
                        {
                            doorx = x-1, doory = y, doorstat = door4;
                            if ((posx&1023) < 256)
                                posx = (posx&0xfc00)+256;
                        }
                        if (((k&1023) == door5) || ((k&1023) == door5+7))
                        {
                            doorx = x-1, doory = y, doorstat = door5;
                            if ((posx&1023) < 256)
                                posx = (posx&0xfc00)+256;
                        }
                    }

fap fap fap

(http://www.advsys.net/ken/klab/labflsrc.zip ;) )

Name: Anonymous 2006-06-01 15:48 (sage)

Could it be related to this???? (my argument checking code that is)

    if (argc >= 2)
    {
        for(i=0;i<8;i++)
            ksmfile[i] = argv[argc-1][i];
        i = 0;
        while ((ksmfile[i] != 0) && (i < 8))
        {
            ksmfile[i] = (ksmfile[i]^(i<<1))+7;
            i++;
        }
        if (i == 7)
        {
            ksmfile[7] = 0;
            if (strcmp(ksmfile,"zslz<82><85>|") == 0)
                cheatenable = 1;
        }
    }

Name: Anonymous 2006-06-01 20:59

You like magic numbers waaaaay too much. Replace all that gibberish with some #define symbols.

Also, most of the code in >>1 is redundant. All those deepest if statements should be moved to a seperate function. You could make it half the size while being just as readable, easy.

Lastly, "if (((k&16384) == 0) && (((ang+512)&1024) > 0))" is needlessly verbose. This works exactly the same: "if (k&16384 && !(ang+512&1024)"

For >>2, you really ought to use getopt().

Name: Anonymous 2006-06-01 21:01 (sage)

Errata: it works exactly the same if you're using unsigned numbers.

Name: Anonymous 2006-06-02 8:17

>>3
what's a function???? is that like that main thing you write code in??? mine is 3363 lines long and 85Kb large! :) i guess that is pretty good!

Nah, just kidding, I have some subroutines in SUBS.C which is 5984 lines long and 136Kb large!

Here is one of the subs:
youarehere()
{
    unsigned l;

    if (memtype[map-1] != 65535)
    {
        if (vms == 1)
            if (memtype[map-1] == 0)
                loadvms(map-1);
        if ((emswalls > 0) && ((memtype[map-1]&1024) > 0))
            emsetpages(memtype[map-1]-1024,0);
        else if ((xmswalls > 0) && ((memtype[map-1]&2048) > 0))
            xmsmemmove(xmshandle,((long)(memtype[map-1]-2048))<<12,0,((long)xmsp
ageframe)<<16,4096L);
    }
    _asm \
    {
        mov es, walseg[(map-1)+(map-1)]
        mov di, yourhereoldpos
        mov bx, di
        mov al, byte ptr board[di+bx]
        mov byte ptr es:[di], al
    }
    yourhereoldpos = ((posx>>10)<<6)+(posy>>10);
    _asm \
    {
        mov es, walseg[(map-1)+(map-1)]
        mov di, yourhereoldpos
        mov al, 255
        mov byte ptr es:[di], al
    }
    if ((xmswalls > 0) && ((memtype[map-1]&2048) >= 0) && (memtype[map-1] != 655
35))
        xmsmemmove(0,((long)xmspageframe)<<16,xmshandle,((long)(memtype[map-1]-2
048))<<12,4096L);
}

Name: Anonymous 2006-06-02 8:18 (sage)

Hm, now that I think of it... I can't remember what that function does... better just not think of it.

Name: Anonymous 2006-06-02 8:19

This can only be some sort of genius troll.

Name: Anonymous 2006-06-02 8:43

I'm not a troll you meanie :'(

Here's some of the better code to prove it:
pressakey()
{
    int bstatus, obstatus;

    bstatus = 1;
    obstatus = 1;
    keystatus[0x1c] = 0, keystatus[0x9c] = 0, keystatus[0x1] = 0, keystatus[0x39] = 0;
    while (((keystatus[0x1c]|keystatus[0x9c]|keystatus[1]|keystatus[0x39]) == 0) && (bstatus <= obstatus))
    {
        obstatus = bstatus;
        if (moustat == 0)
            _asm \
            {
                mov ax, 5
                int 0x33
                mov bstatus, ax
            }
    }
    ksay(27);
}

Name: Anonymous 2006-06-02 9:34 (sage)

the more functions you use, the better.  if they're over one line long, you automatically fail.

Name: Anonymous 2006-06-02 11:50 (sage)

xmsmemmove()? 16-bit asm? interrupts?

Geez, man, this is ancient.

Name: Anonymous 2006-06-02 12:06 (sage)

>>10
Oh yeah, if you want to compile the code you need the 16-bit version of Microsoft C 6.00A from '90 or earlier.

Name: Anonymous 2006-06-02 15:51

>>11
Where is the problem if people still use vi from '76?

Name: Anonymous 2006-06-02 16:01 (sage)

>>12
There is no problem.  But damn, what was thinking when wrote this?:
        if ((stat&0xff) == 1)
        {
            _asm \
            {
;yl0 = (int)(((((x1>>6)-((long)posxs))>>2)*sintable[(angs+512)&2047]
;            +(((y1>>6)-((long)posys))>>2)*sintable[angs])>>16);
                mov ax, word ptr y1[0]
                mov di, word ptr y1[2]
                mov cl, 6
                ror ax, cl
                ror di, cl
                and ax, 0x03ff
                and di, 0xfc00
                or ax, di
                sub ax, posys
                jnc skipnegate1a
                neg ax
skipnegate1a:
                mov bx, angs
                and bx, 1023
                shl bx, 1
                shl bx, 1
                mov cx, word ptr sintable[bx]
                mul cx
                mov si, dx
                mov ax, word ptr x1[0]
                mov di, word ptr x1[2]
                mov cl, 6
                ror ax, cl
                ror di, cl
                and ax, 0x03ff
                and di, 0xfc00
                or ax, di
                sub ax, posxs
                jnc skipnegate1b
                neg ax
skipnegate1b:
                mov bx, angs
                add bx, 512
                and bx, 1023
                shl bx, 1
                shl bx, 1
                mov cx, word ptr sintable[bx]
                mul cx
                mov ax, angle
                mov bx, angs
                xor ax, bx
                test ax, 1024
                jz skipnegate1c
                neg si
skipnegate1c:
                mov ax, angle
                mov bx, angs
                add ax, 512
                add bx, 512
                xor ax, bx
                test ax, 1024
                jz skipnegate1d
                neg dx
skipnegate1d:
                add si, dx
                shr si, 1
                shr si, 1
                mov yl0, si
            }
            j = ((int)(board[x1>>16][y1>>16]-1)&1023);
            picplc = ((((int)y1)>>4)&0xfff);
            if (((angle+512)&2047) >= 1024)
            {
                picplc ^= 0xfff;
                k = board[(x1+1)>>16][y1>>16];
            }
            else
                k = board[(x1-1)>>16][y1>>16];
            if ((k&8192) == 0)
            {
                k &= 1023;
                if ((k >= door1) && (k <= door1+5)) j = doorside1-1;
                if ((k >= door2) && (k <= door2+5)) j = doorside2-1;
                if ((k >= door3) && (k <= door3+7)) j = doorside3-1;
                if ((k >= door4) && (k <= door4+6)) j = doorside4-1;
                if ((k >= door5) && (k <= door5+7)) j = doorside5-1;
            }
            _asm \
            {
                mov al, byte ptr x1[2]
                mov ah, byte ptr y1[2]
                mov bx, i
                shl bx, 1
                mov linplc[bx], ax
            }
        }

Name: Anonymous 2006-06-03 0:39 (sage)

Premature optimization, obviously.

I used to do the same dumb shit back then too. In retrospect, I don't think it made my programs faster at all, but it made them a bitch to understand.

Name: Anonymous 2006-06-03 10:29

Premature ejaculation

Name: Anonymous 2006-06-04 8:02

fap fap

Name: Anonymous 2006-06-04 21:43

faster doesn't make it better.  in fact, that's why most programmers are lousy in bed.

Name: Anonymous 2006-06-05 7:18

>>17
DID YOU JUST INSULT MY HONOR!!!!!!!!!!!!!!?

Name: Anonymous 2006-06-05 14:51 (sage)

>>18

What honor? Most coders are virgins.

Name: Anonymous 2006-06-08 22:26

that is true i know nothing of programing and am not a virgin

Name: Anonymous 2006-06-10 10:32

o rleh.

Name: Anonymous 2006-06-18 6:11 (sage)

Moot or somebody, ban this fucker and delete its shit at once.

Like we are going to buy that piece of shit from untrustable spamming sites, this is stupid.

Name: Anonymous 2006-06-18 9:51

>>24
I know where you can buy <!@#!>@#$!@#! private area of haxxxx ;)

Name: Anonymous 2006-06-20 1:44

moot should autoban ip's that are available on public spammer lists.
phentermine-discount.ownsite.ru :
Net 81.19.69.0/24 is Level 3 listed at UCEPROTECT-Network. See http://www.uceprotect.net/en/rblcheck.php?ipr=81.19.69.0

Name: Anonymous 2006-06-20 2:22 (sage)

moot should give a damn

Name: Anonymous 2006-06-20 3:36

Hey moot, please stop fscking that Mexican girl for a min and get rid of this; thank you, and happy holidays in Mexico.

Name: Anonymous 2006-06-22 14:27

>>31
Fuck you fag

Moooooooooooooooooooooooooooooooooooot fix this dammit

Name: Anonymous 2006-06-24 23:03 (sage)

this spam looks only slightly worse than the code in the OP.

Name: mae 2006-07-05 7:32

esrbesawehsej

Name: carole 2006-07-05 7:37

esrbesawehsej

Name: caryl 2006-07-05 13:07

aweg346agwe34

Name: naomi 2006-07-05 13:11

aweg346agwe34

Name: Anonymous 2006-07-05 16:19

Here's all of the code, in case anyone is interested: http://www.advsys.net/ken/klab.htm

In 1993, people paid $30 for this!

Name: Anonymous 2006-07-07 4:06

Habeeb it

Name: Anonymous 2010-06-07 6:52

Hi, I can spam /prog/ too, you faggot.

Also, smoke weed everyday.

Name: Anonymous 2011-02-15 17:32

Hi, /prog/ from 2006. /prog/ in 2011 still sucks.

Name: Anonymous 2011-02-18 13:07

that's cool and all, but check 'em

Name: Anonymous 2011-06-16 8:08

x

Name: Sgt.Kabu첅퇗kiman䶀 2012-05-28 19:10

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List