Image Map Image Map
View RSS Feed

Recent Blogs Posts

  1. Fast String Reverse in Assembler

    I became interested in string reversal, a common interview question I remember getting, while investigating methods of converting integers to strings. In the discussion thread I started [1] I used disassembled code from MSC 5.1's itoa() routine. I always feel guilty using someone else's code verbatim in projects written from scratch, even if it was assembly code. Below is the inner loop (14 bytes) assuming a load address of 0x100 using DEBUG.

    Code:
    0100 DEC DI
    0101 LODSB
    0102
    ...
    Categories
    Asm
  2. SCREAMER 4x4 [2000, PC] Review | It's a Pixel THING - Ep. 125

    By the end of 2000, one of the most satisfying off-road experiences passed completely under the radar of many fans of the genre.
    Screamer 4x4 may be an untamed beast, but sure is an amazing ride!

    SCREAMER 4x4 [2000, PC] Review | It's a Pixel THING - Ep. 125
  3. 26 PERFECT AMIGA GAMES to play with the MAVERICK 1 | It's a Pixel THING - Ep. 124

    Iíve been messing around with my QuickShot Maverick 1 and ended up discovering a new and far more enjoyable way of exploring certain games that I used to play with a traditional joystick back in my Amiga years.
    So, hereís a list, with no specific order, of 26 Amiga titles that Iíve found to be more enjoyable when played with an arcadish style of controller like the Maverick 1!

    26 PERFECT AMIGA GAMES to play with the MAVERICK 1 | It's a Pixel THING - Ep. 124
    ...
  4. Random Cubic Polynomial in Assembler

    I finally reached back into some of my first assembler [1] to write a routine called cubicnom() that generates a random cubic polynomial as the title implies. This pulls together several recent bits of code to seed the random number generator using a string and sprintf the results to a location in memory.

    Click image for larger version. 

Name:	cubicnom-magsmaze.jpg 
Views:	17 
Size:	30.0 KB 
ID:	40007

    First, here's a random() function which accepts range parameters BX to CX. Thus if I pass in 1 and 9, respectively, then I'll get back ...
    Categories
    Asm
  5. Seeding Randomness with a String

    Random numbers are great but sometimes you want them to be consistently random (an oxymoron!) so that you can rely on their pattern being the same. For example, in Magenta's Maze everything is generated from random numbers that are seeded by the spell name. This is a string which is boiled down to an integer that is used to reset the pseudo-random number generator. Thus, the level generated for a certain string is always the same even across computers and time.

    In the first version, ...
    Categories
    Uncategorized
Page 1 of 100 123451151 ... LastLast