Results 1 to 8 of 8

Thread: My first ASM game!!! [source/exe]

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    My first ASM game!!! [source/exe]

    I've been learning ASM casually for a couple of weeks now and I thought I'd show off my efforts

    Its just a text-based number game. But I was mainly playing with pointers and offsets and it turned into a game.

    The ASM source and the EXE are in there for you to laugh at
    Attached Files Attached Files
    Last edited by wossname; Oct 16th, 2005 at 07:55 AM.
    I don't live here any more.

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: My first ASM game!!! [source/exe]

    Man, that's not bad for how long? A couple of weeks? Is the randomize procedurein the "Irvine32" include? If it is, gimme gimme

    If not, reckon you could find which include its in for me?

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: My first ASM game!!! [source/exe]

    Yeah 2 weeks, I've got the ASM bug I love it. Wish I'd started it years ago now.

    I'll have a scout around tonight for that function. I think the Irvine32.inc file only has a couple of includes in it, SmallWin.inc/lib and windows.inc/lib. I'll confirm it and let you know.
    I don't live here any more.

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: My first ASM game!!! [source/exe]

    Nice work man. You don't know how long it took me to write ½ a line of executable ASM code. Although you have a book, I had crappy tutorials Still, very nice.

    I've wanted to create my own random number generator for a while, but just haven't had the inspiration. The ASM for one would no doubt re-kindle my dream

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: My first ASM game!!! [source/exe]

    Actually, thats my next project in ASM. Knuth* has full pseudo-ASM listings for several RNG's.

    *
    Donald Knuth: "The Art of Computer Programming", Vol 1, 1997

    I'll post it when I've finished translating it. If its Knuth, then its probably optimal
    I don't live here any more.

  6. #6
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: My first ASM game!!! [source/exe]

    i did one myself a very long time ago but mine had a counter.
    "The dark side clouds everything. Impossible to see the future is."

  7. #7

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: My first ASM game!!! [source/exe]

    I need to find out how the one in my game works. It seems to keep a running count of the last number it gave and I don't know where it stores it.
    I don't live here any more.

  8. #8

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: My first ASM game!!! [source/exe]

    Quote Originally Posted by chemicalNova
    Man, that's not bad for how long? A couple of weeks? Is the randomize procedurein the "Irvine32" include? If it is, gimme gimme

    If not, reckon you could find which include its in for me?

    chem
    Well I can't seem to find exactly where the function is kept so you'll have to download this instead...

    http://www.nuvisionmiami.com/books/a...ine32_beta.zip

    It contains the libraries and inc files that I am using.

    Hope that's some help.
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width