Pause Console (ASM)

This is a discussion on Pause Console (ASM) within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I was wondering if anyone knows how to pause the console in ASM? like with system("pause");...

  1. #1
    Banned
    Join Date
    Oct 2004
    Posts
    250

    Pause Console (ASM)

    I was wondering if anyone knows how to pause the console in ASM? like with system("pause");

  2. #2
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    In school when we programmed for the 68k we used system calls something like
    Code:
    //function similar to getch in c
    trap #15
    dc.w 3
    Donīt know if it helps ...

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    I assume you mean 16 bit assembly for DOS?

    Code:
    mov ah, 01
    int 21h
    Will wait until you press a key and then continue.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    > I assume you mean 16 bit assembly for DOS?
    Except his apparent compilers can't generate 16 bit code.

    The point seems moot, since I doubt there's anything which could be done in ASM which could not be done with the win32 console API.
    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.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Quote Originally Posted by Salem
    The point seems moot, since I doubt there's anything which could be done in ASM which could not be done with the win32 console API.
    Yeah which is why I assumed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  2. how do I pause a console app?
    By Rune Hunter in forum C# Programming
    Replies: 7
    Last Post: 09-30-2004, 06:05 PM
  3. pause program at console
    By datainjector in forum C# Programming
    Replies: 1
    Last Post: 03-26-2003, 11:36 PM
  4. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 09:19 AM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 05:05 PM

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