Bitmaps in assembly language

This is a discussion on Bitmaps in assembly language within the Game Programming forums, part of the General Programming Boards category; Hay everyone i am making pack man in assembly language i have no problem with the logic, but the objects ...

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    7

    Bitmaps in assembly language

    Hay everyone i am making pack man in assembly language i have no problem with the logic, but the objects are not looking good, all i need is a code to display a bitmap, i'm just a beginner so can't write it myself, i am using windows 7, and masm32, so anyone

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    Copying a single row of pixels from one place to another is just a memcpy().
    Copying a bitmap is just a memcpy() in a loop.

    > but the objects are not looking good,
    Here's an idea - post a picture or two.
    • Press "print screen"
    • run mspaint (or your favourite image editing software)
    • paste the screen snapshot
    • use some clip tool to clip off all the irrelevant info, leaving just your interesting bitmap picture.
    • save and upload
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Maybe you're having trouble with alignment?
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assembly Language
    By vhj6 in forum Tech Board
    Replies: 4
    Last Post: 07-28-2012, 11:03 PM
  2. Assembly Language Help ;)
    By shrink_tubing in forum C++ Programming
    Replies: 24
    Last Post: 03-10-2011, 11:47 PM
  3. Assembly language ???
    By kinda in forum C Programming
    Replies: 7
    Last Post: 11-02-2010, 08:28 PM
  4. Assembly language in C
    By lruc in forum C Programming
    Replies: 5
    Last Post: 08-27-2008, 07:29 AM
  5. Assembly Language...
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 12-20-2001, 09:04 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21